From bc6b5845f908780bc722e6fea417c5180e9a9af5 Mon Sep 17 00:00:00 2001 From: Joe Duncko Date: Wed, 22 Sep 2021 16:55:25 -0400 Subject: [PATCH 1/2] Fix examples --- examples/dual.html | 8 ++++---- examples/multiple.html | 10 +++++----- examples/multiple_offset.html | 8 ++++---- examples/nowrap.html | 6 +++--- examples/select_syncs.html | 2 +- examples/syncCursor_dual.html | 4 ++-- examples/syncCursor_multiple.html | 10 +++++----- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/examples/dual.html b/examples/dual.html index 0fe6a15..2b2cf79 100644 --- a/examples/dual.html +++ b/examples/dual.html @@ -24,12 +24,12 @@ var layer1 = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { maxZoom: 17, - attribution: 'Map data: © OpenStreetMap, SRTM | Map style: © OpenTopoMap (CC-BY-SA)' + attribution: 'Map data: © OpenStreetMap, SRTM | Map style: © OpenTopoMap (CC-BY-SA)' }); - var layer2 = L.tileLayer('https://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', { - maxZoom: 18, - attribution: 'Tiles courtesy of OpenStreetMap Sweden — Map data © OpenStreetMap' + var layer2 = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + maxZoom: 17, + attribution: '© OpenStreetMap contributors', }); var map1 = L.map('map1', { diff --git a/examples/multiple.html b/examples/multiple.html index cf00261..c7a1905 100644 --- a/examples/multiple.html +++ b/examples/multiple.html @@ -29,17 +29,17 @@ var stamenOptions = { attribution: - 'Map tiles by Stamen Design, ' + - 'CC BY 3.0 — ' + + 'Map tiles by Stamen Design, ' + + 'CC BY 3.0 — ' + 'Map data OpenStreetmap', subdomains: 'abcd', minZoom: 0, maxZoom: 20 }; - var toner = L.tileLayer('http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png', stamenOptions); - var tonerLite = L.tileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', stamenOptions); - var watercolor = L.tileLayer('http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg', stamenOptions); + var toner = L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', stamenOptions); + var tonerLite = L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', stamenOptions); + var watercolor = L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg', stamenOptions); var map = L.map('map', { layers: [toner], diff --git a/examples/multiple_offset.html b/examples/multiple_offset.html index a08fd9a..8877e1f 100644 --- a/examples/multiple_offset.html +++ b/examples/multiple_offset.html @@ -28,15 +28,15 @@ var center = [52.517, 13.388]; var options = { - attribution: '© OpenStreetmap and Contributors', + attribution: '© OpenStreetmap and Contributors', subdomains: 'abc', minZoom: 0, maxZoom: 20 }; - var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', options); - var osmfr = L.tileLayer('http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', options); - var osmbw = L.tileLayer('http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', options); + var osm = L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', options); + var osmfr = L.tileLayer('https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', options); + var osmbw = L.tileLayer('https://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', options); var mapA = L.map('mapA', { layers: [osmfr], diff --git a/examples/nowrap.html b/examples/nowrap.html index 4932b6e..dd891f8 100644 --- a/examples/nowrap.html +++ b/examples/nowrap.html @@ -33,15 +33,15 @@ zoomControl: false }).setView(center, zoom); - L.tileLayer('http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png', { + L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', { subdomains: 'abcd', minZoom: 0, maxZoom: 20, noWrap: true }).addTo(map1); - L.tileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', { - attribution: 'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap', + L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', { + attribution: 'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap', subdomains: 'abcd', minZoom: 0, maxZoom: 20, diff --git a/examples/select_syncs.html b/examples/select_syncs.html index 693cdad..76b3d66 100644 --- a/examples/select_syncs.html +++ b/examples/select_syncs.html @@ -38,7 +38,7 @@ var options = { attribution: - '' + + '' + '© OpenStreetmap and Contributors', subdomains: 'abc', minZoom: 0, diff --git a/examples/syncCursor_dual.html b/examples/syncCursor_dual.html index a161c4a..c67eb52 100644 --- a/examples/syncCursor_dual.html +++ b/examples/syncCursor_dual.html @@ -22,9 +22,9 @@ + +