Issue — Mapbox CSS elements don’t appear in Embedded Notebook, unless explicit call made to link
Mapbox CSS in embed. Mapbox CSS elements work fine in Observable Notebook.
I have a workaround in the HTML that wraps the Embedded Notebook, I simply include the same link
to the Mapbox CSS that is already in the Observable cell. It feels like I’m doing something wrong in the Observable Notebook which is forcing me to include the Mapbox CSS a second time.
Background
I have a Notebook that uses Mapbox GL JS, which I’m now trying to port to an Embedded Notebook. Following the lead from @jashkenas and notes on how to embed, https://beta.observablehq.com/@jashkenas/downloading-and-embedding-notebooks.
The Observable Notebook has a cell that includes Mapbox CSS, and everything works fine. But the Embedded Notebook does not show the Mapbox CSS elements (such as Mapbox logo, Full Screen & Zoom controls), unless an explicit call is made.
Observable Notebook
- Observable hosted, see the Appendix for how the Mapbox CSS is included — https://beta.observablehq.com/@roblabs/united-states-active-fire-perimeters
- Error Case, Using the Embedded Notebook module, as is.
- Mapbox Logo does not show
- embedded notebook, with no Mapbox CSS — https://www.RobLabs.com/projects/fire/index-no-mapbox-css.html
- Work around, Mapbox Logo does show. Using the Embedded Notebook
module, but forced to include - embedded notebook — https://www.RobLabs.com/projects/fire/index.html