Update documentation with new v7.0.0 features
Couple new things in v7.0.0 that aren't documented yet:
- https://github.com/react-native-mapbox-gl/maps/blob/master/javascript/modules/location/locationManager.js
- https://github.com/react-native-mapbox-gl/maps/blob/master/docs/UserLocation.md (examples?)
- https://github.com/react-native-mapbox-gl/maps/blob/master/docs/Camera.md
- any others?
This isn't a new 7.x thing, but I noticed today that telemetry methods added in https://github.com/nitaliano/react-native-mapbox-gl/pull/1096 aren't documented.
There are:
MapboxGL.isTelemetryEnabled = () => Promise<boolean>MapboxGL.setTelemetryEnabled = (enabled: Boolean) => void
Started to open a PR, but I wasn't sure the best place to put them since they're not on a component, but the base object.
Happy to add them in a PR if someone can point me to the best place to put 'em
FYI, think isTelemetryEnabled is no longer available in the native side. I may be wrong, so please double check.
Update: Confirming isTelemetryEnabled is removed from Android. I've removed all traces of the code on our end is gone as well. Docs for setTelemetryEnabled is more than welcome.
On Thu, 6 Jun 2019 at 18:50, Tyler Gaw [email protected] wrote:
This isn't a new 7.x thing, but I noticed today that telemetry methods added in nitaliano/react-native-mapbox-gl#1096 https://github.com/nitaliano/react-native-mapbox-gl/pull/1096 aren't documented.
There are:
- MapboxGL.isTelemetryEnabled = () => Promise
- MapboxGL.setTelemetryEnabled = (enabled: Boolean) => void
Started to open a PR, but I wasn't sure the best place to put them since they're not on a component, but the base object.
Happy to add them in a PR if someone can point me to the best place to put 'em
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/react-native-mapbox-gl/maps/issues/88?email_source=notifications&email_token=ABLAPWYP3DO2Z6RD55W6I6TPZE56LA5CNFSM4HUCBPOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXDPHYA#issuecomment-499577824, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLAPWY6QAAUMRCLXEFZZYTPZE56LANCNFSM4HUCBPOA .
<Mapbox.Images images={[]}>
I have an offline map downloaded. Does anyone know how I can load it? I get it with the "getPack" but it will not be added to the MapView.
const offlinePack = await MapboxGL.offlineManager.getPack(OFFLINE_ZONE_NAME)

I'm sorry if this should go on stackoverflow but I do not know if the API is specific to this component.
Thanks!
I have an offline map downloaded. Does anyone know how I can load it? I get it with the "getPack" but it will not be added to the MapView.
const offlinePack = await MapboxGL.offlineManager.getPack(OFFLINE_ZONE_NAME)
I'm sorry if this should go on stackoverflow but I do not know if the API is specific to this component.
Thanks!
I'm also curious how to load the offline pack in the MapView, I have my pack downloaded 100% but the mapview turns black when I'm in offline mode. PS: in the deprecated version of RNMapBox it should work automatically when you're offline but doesn't seem to work in this verison.
Thanks for clarification @AbdullahADhaim
we will wait for @EricPKerr 's answer
@luisfuertes Finally it worked for me,currently maps is automatically working in offline mode, I was using a corrupted custom styleUrl and that's why the offline map wasn't working. I used MapBox's styleUrl and it's working now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It worked for me removing styleUrl too. Close it please