fix map URLs (#1265)

Fix attribution and URL for basemaps as in https://github.com/CartoDB/basemap-styles. Disclaimer: I'm PM for CARTO basemaps.
This commit is contained in:
Jaak Laineste 2018-06-07 21:09:01 +03:00 committed by Paulus Schoutsen
parent ab16a3712e
commit bb442c824b

View File

@ -64,9 +64,9 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
this.$.map.parentNode.appendChild(style);
map.setView([51.505, -0.09], 13);
Leaflet.tileLayer(
'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
{
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://cartodb.com/attributions">CartoDB</a>',
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 18,
}
).addTo(map);