New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map view sometimes fails to update with user location anchor point #13041

Open
captainbarbosa opened this Issue Oct 6, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@captainbarbosa
Contributor

captainbarbosa commented Oct 6, 2018

Steps to reproduce

  1. Run iosapp in this branch: https://github.com/mapbox/mapbox-gl-native/tree/user-location-delegate-demo
  2. Select the Offset user location annotation option and enter any value, such as 100/100
  3. After selecting Okay, [MGLMapView updateUserLocationAnnotationView] is called to update the anchor point of the user location annotation. However, the map view does not update along with the center point. If you toggle the tracking mode again, or the location manager receives a new location update, the map view appears to update to the new anchor point as expected.

This is a bit of an edge case, as I suspect that this only happens when calling [MGLMapView updateUserLocationAnnotationView] with a new, dynamic value.

Expected behavior

The map view should update immediately when dynamically changing the anchor point of the user location annotation.

Actual behavior

The map view may lag when dynamically changing the anchor point of the user location annotation.

Configuration

Mapbox SDK versions: 4.5.0-alpha.2
iOS/macOS versions: iOS 11.4
Device/simulator models: iPhone X physical device (doesn't reproduce well on simulator)
Xcode version: 9.4

cc @1ec5 @julianrex @friedbunny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment