removePolygonMapObject abstract method

bool removePolygonMapObject(
  1. PolygonMapObject polygonMapObject
)

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

bool removePolygonMapObject(PolygonMapObject polygonMapObject);