LayerSlider

class eomaps.utilities.LayerSlider(m, layers=None, pos=None, txt_patch_props=None, exclude_layers=None, name=None, **kwargs)

Methods

__init__(m[, layers, pos, txt_patch_props, ...])

Get a slider-widget that can be used to switch between layers.

connect_event(event, callback)

Connect a callback function with an event.

disconnect(cid)

Remove the observer with connection id cid.

disconnect_events()

Disconnect all events created by this widget.

get_active()

Get whether the widget is active.

ignore(event)

Return whether event should be ignored.

on_changed(func)

Connect func as callback function to changes of the slider value.

remove()

Remove the widget from the map

reset()

Reset the slider to the initial value.

set_active(active)

Set whether the widget is active.

set_layers(layers)

set_val(val)

Set slider value to val.

Attributes

active

Is the widget active?

drawon

eventson