Closed Tristan-2021 closed 1 year ago
I facing the same issue, how did you resolve this issue?.
same problem :/
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We also received this error lately in our application
Same issue in web as well
I did find a workaround. I see that the event is triggering, although no feature is being passed. So, I used the onFeatureTapped event to trigger a method that queries the rendered features by layerIds.
List features = await mapController.queryRenderedFeaturesInRect(
Rect.fromCenter(
center: Offset(point.x, point.y), width: 5, height: 5),
layerIds,
null);
I haven't had success adding filters to this method but this works for me on web and mobile.
Make sure your feature has an id ... on Android, if your feature does not have an id, and you click on it, the onFeatureTapped is triggered. On IOS, the onMapClick is triggered. Hope this helps...
someone had problems with it, on android it works correctly but on IOS never " apController.onFeatureTapped.add(id, point, coordinates){ } "