Skip to content

Can't use in Chrome Extension because of dynamically fetched Maps js API #407

Answered by usefulthink
laugri asked this question in Q&A
Discussion options

You must be logged in to vote

I have to say, I have no experience with the new extension APIs, so maybe there are ways to make this work that I am missing at the moment. As far as I can tell from a brief look into the documentation, this isn't going to work.

Is there any way to pre-package the API?

As far as I know, this isn't going to happen.

At this point I'd recommend you use something like maplibre or mapbox with react-map-gl. Those allow you to bundle the entire codebase and will only request configuration data and vector-tiles from the server.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@laugri
Comment options

Answer selected by laugri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants