MarkerCollection

Marker collection

Inheritors

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(address: Long, isRef: Boolean)
constructor(type: EMarkerType, name: String)

Types

Link copied to clipboard
object Companion

Marker Collection companion

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Whole source enclosing area

Link copied to clipboard

Returns the list of markers.

Link copied to clipboard
var name: String?

Collection name

Link copied to clipboard
val size: Int

Markers count

Link copied to clipboard

Collection type

Functions

Link copied to clipboard
external fun add(marker: Marker = Marker(), index: Int = -1)

Add a new marker to collection

Link copied to clipboard
external fun clear()

Delete all markers

Link copied to clipboard
external fun del(index: Int)

Delete an marker by index

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getMarkerAt(index: Int): Marker?

Get the marker at the given index Return empty if index is not valid

Link copied to clipboard
external fun getMarkerById(id: Long): Marker?

Get the marker with the given id

Link copied to clipboard
external fun getPointsGroupComponents(groupId: Long): ArrayList<Marker>?

Gets the points group components

Link copied to clipboard
external fun getPointsGroupHead(markerId: Long): Marker?

Gets the points group head marker for the given marker id

Link copied to clipboard
external fun hitTest(area: RectangleGeographicArea, ignore: Marker? = null): MarkerMatchList?

Hit test in collections markers

Link copied to clipboard
external fun indexOf(value: Marker): Int

Get the index of the given marker

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun save(buffer: DataBuffer): Int

Serialize to buffer