nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

How to render a Offline-Map #1625

Closed robert599 closed 5 years ago

robert599 commented 5 years ago

Hi, i've downloaded the offlinePack (see console output). But when I cut the internet, the mapScreen is still empty. What I need to do, to render this map. Is this a out of the box solution by mapbox or is there something in need to do? In the documentation I found good descriptions how to download, get and delete a map, but not how to display the offline map.

here is the output of my downloaded map: downloaded mapview

robert599 commented 5 years ago

I found the solution by my self. Mapbox is rendering the offline map automatically if there is an offline map available and there is no connection to the internet. My problem was that my emulator had location coordinates far away from my offline map detail. And when the zoom is also far away, the map seems to be empty.

Babar-Memon commented 2 years ago

same issue any help??