From 08d5301a9fabab3faadcc46fc6a89c36e66f19ff Mon Sep 17 00:00:00 2001 From: clementgayvallet Date: Thu, 19 Oct 2023 11:26:41 +0200 Subject: [PATCH] Add Jawg.Lagoon layer --- index.html | 4 ++++ leaflet-providers.js | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index cf03ad68..ce172c42 100644 --- a/index.html +++ b/index.html @@ -56,6 +56,10 @@ 'Stadia Outdoors': L.tileLayer.provider('Stadia.Outdoors'), 'Jawg Streets': L.tileLayer.provider('Jawg.Streets'), 'Jawg Terrain': L.tileLayer.provider('Jawg.Terrain'), + 'Jawg Lagoon': L.tileLayer.provider('Jawg.Lagoon'), + 'Jawg Sunny': L.tileLayer.provider('Jawg.Sunny'), + 'Jawg Dark': L.tileLayer.provider('Jawg.Dark'), + 'Jawg Light': L.tileLayer.provider('Jawg.Light'), 'Esri WorldStreetMap': L.tileLayer.provider('Esri.WorldStreetMap'), 'Esri DeLorme': L.tileLayer.provider('Esri.DeLorme'), 'Esri WorldTopoMap': L.tileLayer.provider('Esri.WorldTopoMap'), diff --git a/leaflet-providers.js b/leaflet-providers.js index 4975b0dc..716b8b56 100644 --- a/leaflet-providers.js +++ b/leaflet-providers.js @@ -365,15 +365,14 @@ } }, Jawg: { - url: 'https://{s}.tile.jawg.io/{variant}/{z}/{x}/{y}{r}.png?access-token={accessToken}', + url: 'https://tile.jawg.io/{variant}/{z}/{x}/{y}{r}.png?access-token={accessToken}', options: { attribution: - '© JawgMaps ' + + '© JawgMaps ' + '{attribution.OpenStreetMap}', minZoom: 0, maxZoom: 22, - subdomains: 'abcd', - variant: 'jawg-terrain', + variant: 'jawg-streets', // Get your own Jawg access token here : https://www.jawg.io/lab/ // NB : this is a demonstration key that comes with no guarantee accessToken: '', @@ -381,6 +380,7 @@ variants: { Streets: 'jawg-streets', Terrain: 'jawg-terrain', + Lagoon: 'jawg-lagoon', Sunny: 'jawg-sunny', Dark: 'jawg-dark', Light: 'jawg-light',