mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
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:
parent
ab16a3712e
commit
bb442c824b
@ -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: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://cartodb.com/attributions">CartoDB</a>',
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>',
|
||||
maxZoom: 18,
|
||||
}
|
||||
).addTo(map);
|
||||
|
Loading…
x
Reference in New Issue
Block a user