Skip to content

Commit

Permalink
Merge pull request #6776 from plotly/switch-to-stadiamaps-for-stamen-…
Browse files Browse the repository at this point in the history
…styles

stamen styles are now served by stadiamaps.com
  • Loading branch information
archmoj authored Nov 7, 2023
2 parents bd366e8 + e8727d0 commit 9156bd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions draftlogs/6776_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Change stamen styles to point to stadiamaps.com, please note that in addition
the users now need to provide their own API_KEY via MAPBOX_ACCESS_TOKEN
6 changes: 3 additions & 3 deletions src/plots/mapbox/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var stylesNonMapbox = {
'plotly-stamen-terrain': {
type: 'raster',
attribution: stamenTerrainOrToner,
tiles: ['https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png'],
tiles: ['https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png'],
tileSize: 256
}
},
Expand All @@ -130,7 +130,7 @@ var stylesNonMapbox = {
'plotly-stamen-toner': {
type: 'raster',
attribution: stamenTerrainOrToner,
tiles: ['https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'],
tiles: ['https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png'],
tileSize: 256
}
},
Expand All @@ -150,7 +150,7 @@ var stylesNonMapbox = {
'plotly-stamen-watercolor': {
type: 'raster',
attribution: stamenWaterColor,
tiles: ['https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'],
tiles: ['https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg'],
tileSize: 256
}
},
Expand Down

0 comments on commit 9156bd7

Please sign in to comment.