|
2 | 2 |
|
3 | 3 | var L = require('leaflet'); |
4 | 4 |
|
5 | | -var osmAttribution = '© <a href="https://www.openstreetmap.org/copyright/en">OpenStreetMap</a> contributors', |
6 | | - cartoAttribution = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>', |
| 5 | +var osmAttribution = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', |
| 6 | + cartoAttribution = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attribution">CARTO</a>', |
7 | 7 | esriAttribution = 'Tiles © <a href="https://www.esri.com/">Esri</a> — Source: Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community', |
8 | | - waymarkedtrailsAttribution = '© <a href="http://waymarkedtrails.org">Sarah Hoffmann</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'; |
| 8 | + waymarkedtrailsAttribution = '© <a href="https://waymarkedtrails.org/">Sarah Hoffmann</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'; |
9 | 9 |
|
10 | 10 | var streets = L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', { |
11 | 11 | attribution: cartoAttribution, |
12 | 12 | subdomains: 'abcd', |
13 | 13 | maxZoom: 19 |
14 | 14 | }), |
15 | 15 | outdoors = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { |
16 | | - attribution: osmAttribution + ', <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)', |
| 16 | + attribution: osmAttribution + ', <a href="https://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)', |
17 | 17 | maxZoom: 17 |
18 | 18 | }), |
19 | 19 | satellite = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', { |
20 | 20 | attribution: esriAttribution, |
21 | 21 | maxZoom: 19 |
22 | 22 | }), |
23 | | - osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
| 23 | + osm = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { |
24 | 24 | attribution: osmAttribution, |
25 | 25 | }), |
26 | | - osm_de = L.tileLayer('https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png', { |
| 26 | + osm_de = L.tileLayer('https://tile.openstreetmap.de/{z}/{x}/{y}.png', { |
27 | 27 | attribution: osmAttribution, |
28 | 28 | }), |
29 | 29 | hiking = L.tileLayer('https://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', { |
|
0 commit comments