Marker
Inherits: Control
A marker displayed on the Map at the specified location
through the MarkerLayer
.
Raises:
Properties
-
alignment
(Alignment | None
) –Alignment of the marker relative to the normal center at
coordinates
. -
content
(Control
) –The content to be displayed at
coordinates
. -
coordinates
(MapLatitudeLongitude
) –The coordinates of the marker.
-
height
(Number
) –The height of the
content
Control. -
rotate
(bool | None
) –Whether to counter rotate this marker to the map's rotation,
-
width
(Number
) –The width of the
content
Control.
Properties#
alignment
#
alignment: Alignment | None = None
Alignment of the marker relative to the normal center at coordinates
.
Defaults to the value of the parent MarkerLayer.alignment
.
content
#
content: Control
The content to be displayed at coordinates
.
Note
Must be provided and visible.
coordinates
#
coordinates: MapLatitudeLongitude
The coordinates of the marker.
This will be the center of the marker,
if alignment
is Alignment.CENTER
.
rotate
#
rotate: bool | None = None
Whether to counter rotate this marker to the map's rotation,
to keep a fixed orientation.
So, when True
, this marker will always appear upright and
vertical from the user's perspective.
If None
, defaults to the value of the parent MarkerLayer.rotate
.
Note
This is not used to apply a custom rotation in degrees to this marker.