You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLAnnotationView not update location immediately on setCoordinate: #5230
At one point, I think this code was getting lucky and causing all annotations to be redrawn, including view-backed annotations. But we should add something explicit here to update the annotation views.
Actually, I’m seeing a somewhat different bug. The iosapp demo application is configured so that tapping on an annotation’s callout view changes the annotation’s coordinates to the screen center. But if I remove the (otherwise unused) implementation of -[MGLMapViewDelegate imageForAnnotation:], when tapping a view-backed annotation’s callout, an annotation image (with the default red pin image) also appears at the screen center in addition to the annotation view:
Activity
1ec5 commentedon Jun 3, 2016
At one point, I think this code was getting lucky and causing all annotations to be redrawn, including view-backed annotations. But we should add something explicit here to update the annotation views.
/cc @boundsj
1ec5 commentedon Jun 5, 2016
Actually, I’m seeing a somewhat different bug. The iosapp demo application is configured so that tapping on an annotation’s callout view changes the annotation’s coordinates to the screen center. But if I remove the (otherwise unused) implementation of
-[MGLMapViewDelegate imageForAnnotation:], when tapping a view-backed annotation’s callout, an annotation image (with the default red pin image) also appears at the screen center in addition to the annotation view:[ios] Made annotation view position animatable
[ios] Made annotation view position animatable
1ec5 commentedon Jun 20, 2016
#5245 would fix this issue for sure by introducing an explicit update of the annotation view in response to the KVO change notification.
[ios] Made annotation view position animatable
1ec5 commentedon Jul 3, 2016
Fixed in #5550, which will be in v3.3.0-beta.3 shortly.
Gerz-inc commentedon Aug 1, 2016
I tested on version 3.3.3, no change. The marker position are updated immediately only if to move the map, or after few seconds

1ec5 commentedon Aug 1, 2016
That sounds similar to the issue described in #5755 (comment).
prgorasiya commentedon Apr 22, 2020
@Gerz-inc Could you provide the sample code for the animated car movement animation as I am unable to achieve the same results for my project?
Thanks