Home > @magiclane/maps-sdk > Marker
Marker class
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.
Signature:
export declare class Marker Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Get marker enclosing area. | ||
|
|
number |
Get marker unique id. | |
|
|
number | ||
|
string |
Get marker name. | ||
|
|
number |
Get marker parts count. | |
|
|
number | bigint |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
| ||
|
| ||
|
Add a new coordinate to the marker. | ||
|
Delete a coordinate from the marker. | ||
|
Delete a part from marker. | ||
|
Delete a range of coordinates from the marker between given indexes. | ||
|
Delete a range of coordinates from a specific part of the marker between given indexes. | ||
|
|
Create marker from a geographic area. | |
|
|
Create marker from circle with center and radius. | |
|
|
Create marker from circle with center and horizontal/vertical radii. | |
|
|
Construct from a list of coordinates. | |
|
|
Create marker from rectangle with top-left and bottom-right corners. | |
|
Get coordinate from the given part, at the given index. | ||
|
Get marker coordinates list. | ||
|
Get marker coordinates count. | ||
|
Get marker part enclosing area. | ||
|
Set marker part coordinates. | ||
|
Update a coordinate in the marker. |