deselectMapFeature method

  1. @override
bool deselectMapFeature(
  1. String featureId
)
override

Deselects a map feature by its feature ID. featureId The feature ID from the mapFeaturePickResult PickListener. Returns true if the operation is successful, false otherwise.

Example:

// Deselect specific map feature
bool deselected = _locationWindow!.deselectMapFeature(featureId);
print("Deselected map feature $featureId: $deselected");

Implementation

@override
bool deselectMapFeature(String featureId) {
    final _deselectMapFeatureFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, NativeString),
        int Function(Pointer<Void>, NativeString)
      >('navigine_sdk_flutter_LocationWindow_deselectMapFeature__FeatureId'));
    final __resultHandle = _deselectMapFeatureFfi(this.ptr, toNativeString(featureId));
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}