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
I have several polygons on my map with each polygon having its own click listener using my defined _AnnotationClickListener
import 'package:dartz/dartz.dart' show Function1;
final class _AnnotationClickListener extends OnPolygonAnnotationClickListener {
_AnnotationClickListener(
Function1<PolygonAnnotation, void> onAnnotationClick,
) : _onAnnotationClick = onAnnotationClick;
final Function1<PolygonAnnotation, void> _onAnnotationClick;
@override
void onPolygonAnnotationClick(PolygonAnnotation annotation) =>
_onAnnotationClick(
annotation,
);
}
However on iOS onPolygonAnnotationClick is triggered 6 times which in actuality I only clicked the Polygon once.
This problem does not happen on Android
The text was updated successfully, but these errors were encountered:
Daeon97
changed the title
PolygonAnnotationClickListener is triggered 6 times on iOSonPolygonAnnotationClick is triggered 6 times on iOS when Polygon is clicked only once
Aug 8, 2024
Daeon97
changed the title
onPolygonAnnotationClick is triggered 6 times on iOS when Polygon is clicked only onceonPolygonAnnotationClick is triggered 6 times on iOS
Aug 8, 2024
Hi @Daeon97, can you provide which SDK version you are using? It looks like that in iOS if you have overlapping polygons, tapping the overlapping area will result in multiple triggers, can you also provide a sample code where you setup the polygon annotations?
I have several polygons on my map with each polygon having its own click listener using my defined
_AnnotationClickListener
However on iOS
onPolygonAnnotationClick
is triggered 6 times which in actuality I only clicked the Polygon once.This problem does not happen on Android
The text was updated successfully, but these errors were encountered: