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

__init__

Customized Control to zoom in and out on the map.

zoom

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

ZoomControl.zoom(widget, *args)[source]#

update the zoom according to the clicked btn.

Parameters:

widget (MapBtn)

Return type:

None