onFeatureTap property

void Function(VmapFeature feature, LatLng point)? onFeatureTap
final

Called with the topmost feature under a tap, when there is one: a road, a place, a building, a feature of the overlay. It reads the tiles off the UI thread, so it comes a moment after onTap.

Implementation

final void Function(VmapFeature feature, LatLng point)? onFeatureTap;