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
)

Marker parameters.

Parameters Description

ParametersTypeDescription
positionOptional[Union[BaseComponent, str]]

Determines the marker position. Specify the coordinates in the string format, for example, "29.748713,-95.404287", or use the data.location component to set the marker to the Toloker's current position.

colorOptional[Union[BaseComponent, str]]

Determines the marker color. Use the hexadecimal values preceded by the # sign to specify the color.

labelOptional[Union[BaseComponent, str]]

The label for the marker that tells Tolokers what this marker is for and helps distinguish it from other markers.

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