Skip to content

Commit

Permalink
Add Jawg.Lagoon layer
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgayvallet authored and brunob committed Oct 24, 2023
1 parent 7cf1cec commit 08d5301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
8 changes: 4 additions & 4 deletions leaflet-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,22 +365,22 @@
}
},
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:
'<a href="http://jawg.io" title="Tiles Courtesy of Jawg Maps" target="_blank">&copy; <b>Jawg</b>Maps</a> ' +
'<a href="https://jawg.io" title="Tiles Courtesy of Jawg Maps" target="_blank">&copy; <b>Jawg</b>Maps</a> ' +
'{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: '<insert your access token here>',
},
variants: {
Streets: 'jawg-streets',
Terrain: 'jawg-terrain',
Lagoon: 'jawg-lagoon',
Sunny: 'jawg-sunny',
Dark: 'jawg-dark',
Light: 'jawg-light',
Expand Down

0 comments on commit 08d5301

Please sign in to comment.