tuyen-vuduc / mapbox-maui

Mapbox library for MAUI
Other
39 stars 7 forks source link

AnnotationManager, Add changes given Id #36

Closed DincaAndrei2410 closed 2 months ago

DincaAndrei2410 commented 2 months ago

On nuget version 11.5.1-alpha02, every time I try to add an annotation with a given id, after calling [manager].AddAnnotations(), that id is changed automatically

tuyen-vuduc commented 2 months ago

@DincaAndrei2410 On Android, the id is generated when we adding a new annotation. That ID will be reassigned back to the shared instance. Check the source you will see that logic.

I believe the ID won't change for the update.

DincaAndrei2410 commented 2 months ago

Could you provide an example with a PointAnnotation which moves to a different position 2 times every second?

tuyen-vuduc commented 2 months ago

@DincaAndrei2410 You're right. Actually, we should be able to change to geometry property.

I adjusted the logic so we can do that and also created an example for reference MovingCarExample.

To use in your project, please update the nuget package to v11.5.1-alpha04