diff --git a/web/app.js b/web/app.js index f6d9a37..792897b 100644 --- a/web/app.js +++ b/web/app.js @@ -17,9 +17,10 @@ let layerOrder = ['diff', 'osm', 'county']; // Default layer order (top to botto function initMap() { map = L.map('map').setView([28.7, -81.7], 12); - L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', { - attribution: '© OpenStreetMap contributors © CARTO', - subdomains: 'abcd', + L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France', + subdomains: 'abc', + maxNativeZoom: 19, maxZoom: 20 }).addTo(map); diff --git a/web/static/map-ui.js b/web/static/map-ui.js index 84e5b11..902904f 100644 --- a/web/static/map-ui.js +++ b/web/static/map-ui.js @@ -5,9 +5,10 @@ function initBaseMap(elementId, view, zoom) { const map = L.map(elementId).setView(view || [28.7, -81.7], 12); - L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', { - attribution: '© OpenStreetMap contributors © CARTO', - subdomains: 'abcd', + L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France', + subdomains: 'abc', + maxNativeZoom: 19, maxZoom: 20 }).addTo(map);