removeIconMapObject abstract method

bool removeIconMapObject(
  1. IconMapObject iconMapObject
)

Removes an icon map object from the location view. iconMapObject The icon map object instance IconMapObject. Returns true if the operation is successful, false otherwise.

Example:

// Remove icon map object
if (_iconMapObject != null) {
 bool removed = _locationWindow!.removeIconMapObject(_iconMapObject!);
 print("Removed icon map object: $removed");
 _iconMapObject = null;
}

Implementation

bool removeIconMapObject(IconMapObject iconMapObject);