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
Using MapAnnotation I can change the coordinate of an item and it changes on the map. However if I use ViewMapAnnotation, it doesn't change the location.
Here is a code example. Using MapAnnotation you can see the point move around. If you change it to ViewMapAnnotation, the point doesn't move at all.
Hey - sorry for the long wait. I'm not sure how Apple's Map implementation makes sure that that is the case exactly (since it isn't open-source).
In this implementation so far, I was trying to keep the protocols for creating custom annotations and overlays as clean as possible, so I'm not sure, if this would still easily be possible here (since I'm assuming that they simply let MapAnnotation inherit from Equatable or something like that).
In your example, you could easily circumvent the issue you are facing by creating a MyLocation object on each change of the coordinate. I'm not sure, if this plays well with animations and so on, but I unfortunately didn't have time to check whether the Apple approach has animations either.
Using MapAnnotation I can change the coordinate of an item and it changes on the map. However if I use ViewMapAnnotation, it doesn't change the location.
Here is a code example. Using MapAnnotation you can see the point move around. If you change it to ViewMapAnnotation, the point doesn't move at all.
The text was updated successfully, but these errors were encountered: