removePolygonMapObject method
Removes a polygon map object from the location view.
polygonMapObject The polygon map object instance PolygonMapObject.
Returns true if the operation is successful, false otherwise.
Example:
// Remove polygon map object
if (_polygonMapObject != null) {
bool removed = _locationWindow!.removePolygonMapObject(
_polygonMapObject!,
);
print("Removed polygon map object: $removed");
_polygonMapObject = null;
}
Implementation
@override
bool removePolygonMapObject(PolygonMapObject polygonMapObject) {
final _removePolygonMapObjectFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Pointer<Void>),
int Function(Pointer<Void>, Pointer<Void>)
>('navigine_sdk_flutter_LocationWindow_removePolygonMapObject__PolygonMapObject'));
final __resultHandle = _removePolygonMapObjectFfi(this.ptr, PolygonMapObject$Impl.getNativePtr(polygonMapObject));
final _result = (__resultHandle != 0);
exception.checkCallResult();
return _result;
}