Skip to content

Commit

Permalink
Fix doc map tiles url and attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
manubb committed Nov 4, 2023
1 parent 03908e6 commit 8151fff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions docs/city-mesh.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@
getJSON('data/city-mesh.json', function(graph) {
var map = L.map('map').setView([47.0149, -1.4571], 10);
var hash = new L.Hash(map);
L.tileLayer('//stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
subdomains: 'abcd',
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
L.tileLayer('https://tiles.stadiamaps.com/tiles/stamen_toner_lite/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>, &copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> &copy; <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> contributors',
minZoom: 2,
maxZoom: 18
}).addTo(map);
Expand Down
5 changes: 2 additions & 3 deletions docs/polyline.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@
getJSON('data/polyline.json', function(graph) {
var map = L.map('map').setView([38.90864, -77.04407], 18);
var hash = new L.Hash(map);
L.tileLayer('//stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
subdomains: 'abcd',
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
L.tileLayer('https://tiles.stadiamaps.com/tiles/stamen_toner_lite/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>, &copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> &copy; <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> contributors',
minZoom: 14,
maxZoom: 20
}).addTo(map);
Expand Down
5 changes: 2 additions & 3 deletions docs/railways.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@
getJSON('data/railways.json', function(graph) {
var map = L.map('map').setView([49.7918, 18.3084], 15);
var hash = new L.Hash(map);
L.tileLayer('//stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
subdomains: 'abcd',
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
L.tileLayer('https://tiles.stadiamaps.com/tiles/stamen_toner_lite/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>, &copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> &copy; <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> contributors',
minZoom: 6,
maxZoom: 20
}).addTo(map);
Expand Down

0 comments on commit 8151fff

Please sign in to comment.