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 | Type | Description |
---|---|---|
position | Optional[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. |
color | Optional[Union[BaseComponent, str]] | Determines the marker color. Use the hexadecimal values preceded by the # sign to specify the color. |
label | Optional[Union[BaseComponent, str]] | The label for the marker that tells Tolokers what this marker is for and helps distinguish it from other markers. |