maps icon indicating copy to clipboard operation
maps copied to clipboard

Update documentation with new v7.0.0 features

Open EricPKerr opened this issue 7 years ago • 9 comments

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?

EricPKerr avatar Jun 05 '19 18:06 EricPKerr

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

tylergaw avatar Jun 06 '19 16:06 tylergaw

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 .

kristfal avatar Jun 06 '19 16:06 kristfal

<Mapbox.Images images={[]}>

karlguillotte avatar Jun 27 '19 18:06 karlguillotte

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) Captura de pantalla 2019-07-08 a las 12 18 50

I'm sorry if this should go on stackoverflow but I do not know if the API is specific to this component.

Thanks!

luisfuertes avatar Jul 08 '19 10:07 luisfuertes

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) Captura de pantalla 2019-07-08 a las 12 18 50

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.

AbdullahADhaim avatar Jul 09 '19 09:07 AbdullahADhaim

Thanks for clarification @AbdullahADhaim

we will wait for @EricPKerr 's answer

luisfuertes avatar Jul 09 '19 09:07 luisfuertes

@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.

AbdullahADhaim avatar Jul 11 '19 07:07 AbdullahADhaim

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.

stale[bot] avatar Sep 09 '19 07:09 stale[bot]

It worked for me removing styleUrl too. Close it please

luisfuertes avatar Sep 09 '19 07:09 luisfuertes