cstories-app / cstories-app.github.io

Community driven story building app to inform offshore energy planning
https://cstories.integral-corp.com/
MIT License
2 stars 0 forks source link

update basemap from defunct Esri.OceanBasemap in infographics/viewshed #12

Closed bbest closed 1 year ago

bbest commented 1 year ago

@jzadra has used MapBox ocean basemaps with rstudio/leaflet

bbest commented 1 year ago

Hi @jzadra,

There are many ways of approaching this, but the most important thing is not putting the password file in the Github repo for public viewing. If you put it in your user folder, then we @geocoug and I can copy it into our system, e.g.:

mb_key <- readLines("~/.mapbox_key_jzadra.txt")

The . prefix hides it from typically directory listing.

jzadra commented 1 year ago

In this case it needs to be in able to grab the tiles from the API each time it runs, but I think I have it figured out.

jzadra commented 1 year ago

I'm not finding a tileset from MapBox that is analogous to the current esri basemap. What is the issue with the esri tile set?

Current map:

image

Mapbox Options:

image

image

bbest commented 1 year ago

Hi @jzadra,

You're showing the previously rendered Ocean Basemap, but now here's what I see from Google Chrome browser:

This map is using the Esri.OceanBasemap per:

https://github.com/cstories-app/cstories-app.github.io/blob/87717709224c37c50e11d3deddac2cbb1e30e65b/infographics/viewshed.qmd#L37

But the problem is that basemap got deprecated, i.e. retired, per:

bbest commented 1 year ago

For now, I applied a different working basemap that has shaded relief ocean bathymetry in commit d52a861: Esri.OceanBasemap -> Esri.NatGeoWorldMap

image