tuyen-vuduc / mapbox-maui

Mapbox library for MAUI
Other
39 stars 7 forks source link

PolygonAnnotationManager, Update issue #37

Closed DincaAndrei2410 closed 2 months ago

DincaAndrei2410 commented 2 months ago

Trying to use Update() method on a polygon annotations leads to annotation being removed.

Following error observed in logs: [maps-android\AnnotationManagerImpl]: Can't update annotation: com.mapbox.maps.plugin.annotation.generated.PolygonAnnotation@f450df5, the annotation isn't an active annotation.

tuyen-vuduc commented 2 months ago

@DincaAndrei2410 I made an example for your reference. I can change a polygon annotation's geometry value, fill color, and fill outline color.

Plz check it out.

BTW: The opacity was default to null, then the annotation might not shown, you can upgrade to the newly built version to avoid setting a opacity value.

DincaAndrei2410 commented 2 months ago

Right, the issue was on my side. Thanks for help!