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 | Type | Description |
---|---|---|
points | Optional[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". |
color | Optional[Union[BaseComponent, str]] | Determines the polygonal selection area color. Use the hexadecimal values preceded by the # sign to specify the color. |