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
)

Polygon parameters.

Parameters Description

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

The list of the polygonal selection area points. Specify the coordinates in the string format, for example, "29.748713,-95.404287".

colorOptional[Union[BaseComponent, str]]

Determines the polygonal selection area color. Use the hexadecimal values preceded by the # sign to specify the color.

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