pickMapFeatureAt method

  1. @override
void pickMapFeatureAt(
  1. Point<double> point
)
override

Selects visible map features (e.g., venues) at the specified screen position. Results are delivered to the PickListener via onMapFeaturePickComplete PickListener. point Position in screen pixels to pick from.

Example:

// Pick map feature at screen position
math.Point<double> featurePoint = math.Point<double>(150.0, 250.0);
_locationWindow!.pickMapFeatureAt(featurePoint);
print("Picked map feature at screen position (${featurePoint.x}, ${featurePoint.y})");

Implementation

@override
void pickMapFeatureAt(math.Point<double> point) {
    final _pickMapFeatureAtFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Void Function(Pointer<Void>, Pointer<Void>),
        void Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_LocationWindow_pickMapFeatureAt__Point'));
    final _pointHandle = navigine_sdk_flutter_math_Point_double_ToFfi(point);
    final _handle = this.handle;
    _pickMapFeatureAtFfi(_handle, _pointHandle);
    navigine_sdk_flutter_math_Point_double_ReleaseFfiHandle(_pointHandle);
}