Marker class Maps & 3D Scene

Marker

A compact map model representing a visual geometry (icon, point, polyline or polygon) placed at geographic coordinates for annotations, waypoints or temporary content.

Common operations include creating, managing their geometric parts and coordinates (adding, updating and removing points or parts), querying the enclosing bounds and coordinate lists for layout or hit‑testing, reading and setting basic metadata such as title and identifier.

Can be added to a MarkerCollection and displayed on the map using the MapViewMarkerCollections object associated with a GemMapController. The appearance is highly customizable using the MarkerRenderSettings and MarkerCollectionRenderSettings class.

Constructors

Marker.new()
factory
Marker.fromArea(GeographicArea area)
Construct a marker from a geographic area.
factory
Marker.fromCircle(Coordinates centerCoords, double radius)
Construct a circle shape marker.
factory
Marker.fromCircleRadii({required Coordinates centerCoords, required double horizRadius, required double vertRadius})
Construct a rectangle shape marker.
factory
Marker.fromCoords(List<Coordinates> coordinates)
Construct from a list of coordinates.
factory
Marker.fromRectangle(Coordinates topLeft, Coordinates bottomRight)
Construct a rectangle shape marker.
factory

Properties

area RectangleGeographicArea
Get marker enclosing area.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
Get marker unique id.
no setter
name String
Get marker name.
getter/setter pair
partCount int
Get marker parts count.
no setter
pointerId int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Coordinates coord, {int index = -1, int part = 0}) → void
Add a new coordinate to the marker.
delete(int index, {int part = 0}) → void
Delete a coordinate from the marker.
deletePart(int part) → void
Delete a part from marker.
deleteRange(int from, int to, {int part = 0}) → void
Delete a range of coordinates from the marker between given indexes.
dispose() → void
inherited
getCoordinate(int index, int part) Coordinates
Get coordinate from the given part, at the given index
getCoordinates({int part = 0}) List<Coordinates>
Get marker coordinates list.
getCoordinatesCount({int part = 0}) int
Get marker coordinates count.
getPartArea(int part) RectangleGeographicArea
Get marker part enclosing area.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
setCoordinates(List<Coordinates> coords, {int? part}) → void
Set marker part coordinates.
toString() String
A string representation of this object.
inherited
update(Coordinates coord, int index, {int? part}) → void
Update a coordinate in the marker.

Operators

operator ==(Object other) bool
The equality operator.
inherited