-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map takes tap event when tap is performed on marker #29
Comments
I have a similar problem: when I tap on a marker onTap callback is triggered. The second time I tap on the same marker the onTap callback is NOT triggered. |
I have same issue @dev4jam. Have you found any solution? |
I faced the same issue and found a very hacky workaround for it. I just append a random uuid to the marker id and call PlatformMap(
initialCameraPosition: initialCamera,
markers: locations.map(
(location) {
return Marker(
markerId:
MarkerId(location.locationId + uuid.v4()),
position: LatLng(
location.geoCoordinate.latitude,
location.geoCoordinate.longitude,
),
consumeTapEvents: true,
onTap: () {
// handle tap logic
setState(() {});
},
);
},
).toSet(),
gestureRecognizers: const {
Factory<OneSequenceGestureRecognizer>(
EagerGestureRecognizer.new,
),
},
) |
We are still experiencing this issue. Any ideas? |
Hello,
I have added a feature to add pins on tap of map. Pin also displays info window when tap is performed on pin. When I tap on pin to open info window, map also adds new pin because map takes tap event. I could not find anything to fix it and looks like a defect.
The text was updated successfully, but these errors were encountered: