osm_flutter icon indicating copy to clipboard operation
osm_flutter copied to clipboard

No method to listen click on Marker

Open zatovagul opened this issue 2 years ago • 6 comments

 await _mapController?.addMarker(
        GeoPoint(latitude: 55.809845, longitude: 37.167080),
        markerIcon: const MarkerIcon(
          key: Key('1'),
          iconWidget: MapClusterIcon(),
        ),
      );
      await _mapController?.addMarker(
        GeoPoint(latitude: 55.751255, longitude: 37.618423),
        markerIcon: const MarkerIcon(
          key: Key('2'),
          iconWidget: MapMarkerIcon(),
        ),
      );

I have already added two markers, but I didn't find any method to listen click on marker. Is it possible to receive click on Marker?

I also can use _mapController?.listenerMapSingleTapping, but it will give me GeoPoints instead of information about marker

zatovagul avatar Feb 24 '23 13:02 zatovagul