Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Stop user tracking if a gesture occurs #3444

Closed
tobrun opened this issue Jan 6, 2016 · 4 comments
Closed

Stop user tracking if a gesture occurs #3444

tobrun opened this issue Jan 6, 2016 · 4 comments
Assignees
Labels
Android Mapbox Maps SDK for Android GL JS parity For feature parity with Mapbox GL JS

Comments

@tobrun
Copy link
Member

tobrun commented Jan 6, 2016

Currently the iOS and Android library are handling location tracking differently.

  • Android disables certain gestures when locational tracking is enabled
  • iOS enables gestures but will disable tracking if a gesture occurs

We need parity on this for React Native as documented in nitaliano/react-native-mapbox-gl#222

@tobrun tobrun added GL JS parity For feature parity with Mapbox GL JS Android Mapbox Maps SDK for Android P1 labels Jan 6, 2016
@tobrun tobrun added this to the android-v3.1.0 milestone Jan 6, 2016
@tobrun
Copy link
Member Author

tobrun commented Jan 6, 2016

I will have to add a listener to react to state changes for both location tracking as for direction tracking.

@tobrun
Copy link
Member Author

tobrun commented Jan 6, 2016

You can see the result of this change here:
https://www.dropbox.com/s/noxfuzpetgh6rk8/device-2016-01-06-091241.mp4?dl=0
In the clip you can see that location tracking is enabled and when you pan it becomes disabled.

@tobrun
Copy link
Member Author

tobrun commented Jan 6, 2016

Going to pickup #3435 now, this is the same feature

tobrun added a commit that referenced this issue Jan 6, 2016
…nd bearing tracking, added requires permissions checks and handled them in the test app, update javadoc to reflect changes, formatting commit of MapView, Reposition UserLocationView when location tracking becomes active
@Tyler-V
Copy link

Tyler-V commented Mar 11, 2020

@tobrun sorry for commenting in a very old PR but I couldn't find any updated references.

How do we go about solving this in iOS? The location libraries appear to be so different, I'm unable to apply any custom zoom/tilt operators to the ios map and even stop tracking / remove the user tracking annotation on the Map.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android GL JS parity For feature parity with Mapbox GL JS
Projects
None yet
Development

No branches or pull requests

3 participants