Use humanitarian instead of carto tiles
This commit is contained in:
+4
-3
@@ -17,9 +17,10 @@ let layerOrder = ['diff', 'osm', 'county']; // Default layer order (top to botto
|
|||||||
function initMap() {
|
function initMap() {
|
||||||
map = L.map('map').setView([28.7, -81.7], 12);
|
map = L.map('map').setView([28.7, -81.7], 12);
|
||||||
|
|
||||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
|
L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
|
||||||
attribution: '© OpenStreetMap contributors © CARTO',
|
attribution: '© OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France',
|
||||||
subdomains: 'abcd',
|
subdomains: 'abc',
|
||||||
|
maxNativeZoom: 19,
|
||||||
maxZoom: 20
|
maxZoom: 20
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
function initBaseMap(elementId, view, zoom) {
|
function initBaseMap(elementId, view, zoom) {
|
||||||
const map = L.map(elementId).setView(view || [28.7, -81.7], 12);
|
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', {
|
L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
|
||||||
attribution: '© OpenStreetMap contributors © CARTO',
|
attribution: '© OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France',
|
||||||
subdomains: 'abcd',
|
subdomains: 'abc',
|
||||||
|
maxNativeZoom: 19,
|
||||||
maxZoom: 20
|
maxZoom: 20
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user