How to set up offline vector tile maps with CapacitorJS Mapbox GL JS

  softwareengineering

I think the Mapbox Maps are best in terms of UX. The option to have a world when the eastern end of the map is reached, modulo to the western end of the world map is great too. And pins etc. automatically decrease in size.

I would want to use vector maps offline with mapbox in a CapacitorJS Hybrid Native app that uses mapbox-gl-js.

That this works in True Native Apps was already mentioned in this stackoverflow post, but do note that it’s from 7 years ago:
https://stackoverflow.com/a/43484182/20009330

So the native version for sure supports offline maps in some way:
https://docs.mapbox.com/help/troubleshooting/mobile-offline/

According to this it does not work:
https://github.com/mapbox/mapbox-gl-js/issues/7508#issuecomment-2048033252

But maybe this is unrelated to hosting a local server yourself? Since a local server emulates a real online server connection?

I need this to work offline.

New contributor

Felix Olszewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT