toloka.client.project.template_builder.view.MapViewV1
| Source code
MapViewV1( self, center: Optional[Union[BaseComponent, str]] = None, *, markers: Optional[Union[BaseComponent, List[Union[BaseComponent, Marker]]]] = None, polygons: Optional[Union[BaseComponent, List[Union[BaseComponent, Polygon]]]] = None, zoom: Optional[Union[BaseComponent, int]] = None, hint: Optional[Any] = None, label: Optional[Any] = None, validation: Optional[BaseComponent] = None, version: Optional[str] = '1.0.0')
A component for displaying a map.
Parameters | Type | Description |
---|---|---|
center | Optional[Union[BaseComponent, str]] | The coordinates of the map center. You can use:
|
markers | Optional[Union[BaseComponent, List[Union[BaseComponent, Marker]]]] | A list of map markers. |
polygons | Optional[Union[BaseComponent, List[Union[BaseComponent, Polygon]]]] | A list of areas highlighted on the map. |
zoom | Optional[Union[BaseComponent, int]] | An initial map scale. Use values from 0 to 19. Higher values zoom in the map. |
hint | Optional[Any] | A hint text. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023