Open anuroopsinghal07 opened 3 years ago
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 setState()
when tapping the marker. E.g.
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.