Polygon

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

Polygon(
self,
points: Optional[Union[BaseComponent, List[Union[BaseComponent, str]]]] = None,
*,
color: Optional[Union[BaseComponent, str]] = None
)

A map polygon.

Parameters description

ParametersTypeDescription
pointsOptional[Union[BaseComponent, List[Union[BaseComponent, str]]]]

A list of polygon coordinates. Specify the coordinates in the string format, for example 29.748713,-95.404287.

colorOptional[Union[BaseComponent, str]]

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

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