OnFeatureInteractionCallback typedef
OnFeatureInteractionCallback =
void Function(Point<double> point, LatLng coordinates, String id, String layerId, Annotation? annotation)
A tap on a feature of an interactive layer. id is the feature id as text,
such as '2' for the id 2, on every platform. annotation is the
annotation the feature belongs to, or null for a feature of your own layers.
Implementation
typedef OnFeatureInteractionCallback =
void Function(
Point<double> point,
LatLng coordinates,
String id,
String layerId,
Annotation? annotation,
);