Marker
A marker displayed on the Map at the specified location
through the MarkerLayer.
Inherits: BaseControl
Properties
alignment- Alignment of the marker relative to the normal center atcoordinates.content- The content to be displayed atcoordinates.coordinates- The coordinates of the marker.height- The height of thecontentControl.rotate- Whether to counter rotate this marker to the map's rotation, to keep a fixed orientation.visible- Whether this marker is rendered on the map.width- The width of thecontentControl.
Properties
alignmentclass-attributeinstance-attribute
alignment: Alignment | None = NoneAlignment of the marker relative to the normal center at coordinates.
Defaults to the value of the parent MarkerLayer.alignment.
contentinstance-attribute
content: ControlThe content to be displayed at coordinates.
Raises:
- ValueError - If it is not
visible.
coordinatesinstance-attribute
coordinates: MapLatitudeLongitudeThe coordinates of the marker.
This will be the center of the marker,
if alignment is Alignment.CENTER.
heightclass-attributeinstance-attribute
height: Number = 30.0The height of the content Control.
Raises:
- ValueError - If it is less than
0.0.
rotateclass-attributeinstance-attribute
rotate: bool | None = NoneWhether 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.
This is not used to apply a custom rotation in degrees to this marker.
visibleclass-attributeinstance-attribute
visible: bool = TrueWhether this marker is rendered on the map.