sepal_ui.mapping.zoom_control.ZoomControl#
- class sepal_ui.mapping.zoom_control.ZoomControl(**kwargs)[source]#
Customized
Control
to zoom in and out on the map.Replace the built-in zoom control of ipyleaflet to match the theme of sepal-ui based applications. It is by default positioned in the top-right corner
- Parameters:
m (Map | None) – the map to manipulate
kwargs – any
ipyleaflet.widgetControl
arguments
Attributes
m
the map to manipulate
minus
the minus btn
plus
The plus btn
Methods
Customized
Control
to zoom in and out on the map.update the zoom according to the clicked btn.
- ZoomControl.__init__(m, **kwargs)[source]#
Customized
Control
to zoom in and out on the map.Replace the built-in zoom control of ipyleaflet to match the theme of sepal-ui based applications. It is by default positioned in the top-right corner
- Parameters:
m (Map) – the map to manipulate
kwargs – any
ipyleaflet.widgetControl
arguments
- Return type:
None