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
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 → dynamic
-
no setter
- 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.
-
dispose(
) → void -
getCoordinates(
{int part = 0}) → List< Coordinates> - Get marker coordinates list.
-
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