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”.