MarkerCollection class Maps & 3D Scene

Marker collection class

Holds markers of a single visual style and geometry class for a map view.

Common tasks are creating a collection for a specific marker kind and adding or removing markers, looking up markers by position or identifier, iterating or counting entries, querying the collection’s geographic extent for layout or hit‑testing, grouping and retrieving related components.

Can be presented on a map via the MapViewMarkerCollections object associated with a GemMapController.

Also see MarkerSketches for a specialized marker collection with per-marker render settings.

Implementers

Constructors

MarkerCollection.new({required MarkerType markerType, required String name})
factory

Properties

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

Methods

add(Marker marker, {int index = -1}) → void
Add a new marker to collection.
clear() → void
Delete all markers.
delete(int index) → void
Delete a marker by index.
dispose() → void
getMarkerAt(int index) Marker?
Get the marker at the given index.
getMarkerById(int id) Marker?
Get the marker with the given id.
getPointsGroupComponents(int groupId) List<Marker>
Gets the points group components.
getPointsGroupHead(int markerId) Marker?
Gets the points group head for the given marker id.
indexOf(Marker marker) int
Get the index of the given marker.
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
toString() String
A string representation of this object.
inherited

Operators

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