switch_layerο
- keypress_callbacks.switch_layer(layer, key='x')ο
Change the default layer of the map.
Use the keyboard events to set the default layer (e.g. the visible layer) displayed in the plot.
- Parameters
layer (str) β The layer-name to use. If a non-string value is provided, it will be converted to string!
Parameters (Additional) β
--------------------- β
key (str, optional) β The key to use for triggering the callback. Modifiers are indicated with a β+β, e.g. βalt+xβ. The default is βxβ.