From 7bdc42eac385557fb302065755edd4ceadf72e19 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 22 Jan 2021 18:57:24 +0000 Subject: [PATCH] Updating mapbox URL schema --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b7890d5..14903cb 100644 --- a/index.html +++ b/index.html @@ -52,9 +52,13 @@ zoomDelta: 0.25, zoomSnap: 0 }).setView([52.0, 4.7], 11); - L.tileLayer('https://api.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoic3ZlbjRhbGwiLCJhIjoiY2pndHI1Zjk5MTRleTJxczM1cXp0dDFmYyJ9.q2gfHAYo0g84ltS2pzWJ-Q', { + L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic3ZlbjRhbGwiLCJhIjoiY2pndHI1Zjk5MTRleTJxczM1cXp0dDFmYyJ9.q2gfHAYo0g84ltS2pzWJ-Q', { attribution: 'Mapbox; OpenStreetMap;OpenBike ', - maxZoom: 18 + tileSize: 512, + maxZoom: 18, + zoomOffset: -1, + id: 'mapbox/streets-v11', + accessToken: 'eyJ1Ijoic3ZlbjRhbGwiLCJhIjoiY2pndHI1Zjk5MTRleTJxczM1cXp0dDFmYyJ9' }).addTo(map);