React Native Map offline mode

How the user can download google maps (or Mapbox/openstreetmap) when they are in offline mode (in react native)? Please suggest

If you’re using react-native-maps, no.

If you’re using react-mapbox-gl, yes

Unsure about react-map-gl. Both of those are just RN wrappers around mapbox-gl though, so same functionality should be available. Openstreetmap _directly- (rather than having Mapbox over the top) doesn’t have any particularly great RN wrapper libraries, you can d/l and cache map tiles just fine, but afaik you’d then need to implement that logic yourself.

Note that you need to know exactly what you want implented here: offline maps tens to equal enormous amounts of data, so you need to be careful with this, else it’ll chew through your device storage pretty sharpish

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.