Skip to main content

Marker

A marker displayed on the Map at the specified location through the MarkerLayer.

Inherits: Control

Properties

Properties

alignmentclass-attributeinstance-attribute

alignment: Optional[Alignment] = None

Alignment of the marker relative to the normal center at coordinates.

Defaults to the value of the parent flet_map.MarkerLayer.alignment.

contentinstance-attribute

content: Control

The content to be displayed at coordinates.

Raises:

coordinatesinstance-attribute

coordinates: MapLatitudeLongitude

The coordinates of the marker.

This will be the center of the marker, if alignment is flet.Alignment.CENTER.

heightclass-attributeinstance-attribute

height: Number = 30.0

The height of the content Control.

Raises:

  • ValueError - If it is less than 0.0.

rotateclass-attributeinstance-attribute

rotate: Optional[bool] = 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 flet_map.MarkerLayer.rotate.

Note

This is not used to apply a custom rotation in degrees to this marker.

widthclass-attributeinstance-attribute

width: Number = 30.0

The width of the content Control.

Raises:

  • ValueError - If it is less than 0.0.