tuyen-vuduc / mapbox-maui

Mapbox library for MAUI
Other
35 stars 6 forks source link

Update method for annotation managers #33

Closed DincaAndrei2410 closed 1 month ago

DincaAndrei2410 commented 1 month ago

image

In addition to Add, Remove and RemoveAll, would be good to have also an Update method. Use case would be to move annotation to a different coordinate without Removing and then adding a new one

tuyen-vuduc commented 1 month ago

@DincaAndrei2410 I added updateAnimations method.

Let me know if you find out any issues.

https://www.nuget.org/packages/Mapbox.Maui/11.5.1-alpha02

DincaAndrei2410 commented 1 month ago

I see the Update method, but I also need Geometry property setter to be exposed publicly, otherwise I can't move the same annotation to another position. image

tuyen-vuduc commented 1 month ago

@DincaAndrei2410 It's readonly aligned with the native impl. :D .

I recommend creating a new instance with the same ID for now.

DincaAndrei2410 commented 1 month ago

Ok, let me check how it behaves with new instance, but same id. Indeed, I did not keep id, so maybe that's why flickering problem occurred

tuyen-vuduc commented 1 month ago

Report another issue if that tip doesn't work then.