Marker

toloka.client.project.template_builder.view.MapViewV1.Marker | Source code

Marker(
self,
position: Optional[Union[BaseComponent, str]] = None,
*,
color: Optional[Union[BaseComponent, str]] = None,
label: Optional[Union[BaseComponent, str]] = None
)

A map marker.

Parameters description

ParametersTypeDescription
positionOptional[Union[BaseComponent, str]]

The coordinates of the marker. You can use:

  • A string. For example, 29.748713,-95.404287.
  • The LocationData to set Toloker's current position.
colorOptional[Union[BaseComponent, str]]

The marker color. Use the hexadecimal values preceded by the #. For example, #f00 makes the marker red.

labelOptional[Union[BaseComponent, str]]

A marker label.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming