feat: set map to cartocdn
This commit is contained in:
parent
6666401a7f
commit
811328dda7
1 changed files with 4 additions and 3 deletions
|
@ -14,9 +14,10 @@
|
|||
|
||||
const map = L.map('map').setView([centerLat, centerLon], 13);
|
||||
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||
L.tileLayer(`https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png`, {
|
||||
attribution:
|
||||
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
|
||||
maxZoom: 20
|
||||
}).addTo(map);
|
||||
|
||||
lignes.features.forEach((feature) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue