From 72cc151a32cbc507650e9779092bf226704de6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4rtl?= Date: Wed, 11 Nov 2020 12:24:49 +0100 Subject: [PATCH] Add Waymarked Trails overlay provider --- index.html | 8 +++++++- leaflet-providers.js | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 016f09ce..fb84fc92 100644 --- a/index.html +++ b/index.html @@ -81,7 +81,13 @@ 'OpenWeatherMap Wind': L.tileLayer.provider('OpenWeatherMap.Wind'), 'OpenWeatherMap Temperature': L.tileLayer.provider('OpenWeatherMap.Temperature'), 'OpenWeatherMap Snow': L.tileLayer.provider('OpenWeatherMap.Snow'), - 'Geoportail France Parcels': L.tileLayer.provider('GeoportailFrance.parcels') + 'Geoportail France Parcels': L.tileLayer.provider('GeoportailFrance.parcels'), + 'Waymarked Trails Hiking': L.tileLayer.provider('WaymarkedTrails.hiking'), + 'Waymarked Trails Cycling': L.tileLayer.provider('WaymarkedTrails.cycling'), + 'Waymarked Trails MTB': L.tileLayer.provider('WaymarkedTrails.mtb'), + 'Waymarked Trails Ski Slopes': L.tileLayer.provider('WaymarkedTrails.slopes'), + 'Waymarked Trails Riding': L.tileLayer.provider('WaymarkedTrails.riding'), + 'Waymarked Trails Skating': L.tileLayer.provider('WaymarkedTrails.skating') }; L.control.layers(baseLayers, overlayLayers, {collapsed: false}).addTo(map); diff --git a/leaflet-providers.js b/leaflet-providers.js index 098777e0..e905edb9 100644 --- a/leaflet-providers.js +++ b/leaflet-providers.js @@ -1016,6 +1016,21 @@ url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}' } } + }, + WaymarkedTrails: { + url: 'https://tile.waymarkedtrails.org/{variant}/{z}/{x}/{y}.png', + options: { + maxZoom: 18, + attribution: 'Map data: {attribution.OpenStreetMap} | Map style: © waymarkedtrails.org (CC-BY-SA)' + }, + variants: { + hiking: 'hiking', + cycling: 'cycling', + mtb: 'mtb', + slopes: 'slopes', + riding: 'riding', + skating: 'skating' + } } };