LayerToggleButtonsο
- class eomaps.widgets.LayerToggleButtons(**kwargs: Any)ο
Toggle buttons to select a single visible layer.
For more information on how to customize the widgets, have a look at the documentation for Jupyter Widgets (https://ipywidgets.readthedocs.io).
- Parameters:
m (eomaps.Maps) β The Maps-object to use.
layers (list, optional) β
A list of layer-names to use. If None, all available layers of the provided Maps-object are used.
The following options are possible:
A list of layer-names
>>> ["layer1", "layer2", ...]
A list of layer-names and/or layer-names with transparency-assignments
>>> ["layer1", "layer2", ("layer", 0.4)]
To provide explict display-names for a layer, pass a list of the form [display-name, <layer-assignment>]
>>> [["My Layer", "layer1"], >>> ["My secondl lyer", "layer2"], >>> ["Multiple layers", ("layer1", >>> ("layer", 0.4))] >>> ]
Members
|
Adds a class to the top level element of the widget. |
|
Dynamically add trait attributes to the Widget. |
|
Blur the widget. |
|
Use a predefined styling for the buttons. |
|
|
|
Get a dict of all event handlers defined on this class, not a parent. |
|
Get a dict of all the traitlets defined on this class, not a parent. |
|
Get a list of all the names of this class' traits. |
|
Get a |
|
Close method. |
|
|
|
A trait which allows any value. |
|
A contextmanager for running a block with our cross validation lock set to True. |
|
Description of the control. |
|
Accept HTML in the description. |
|
The tooltip information. .. deprecated :: 8.0.0 Use tooltip attribute instead. |
|
Enable or disable user changes |
|
Focus on the widget. |
|
Return the value for this widget which should be passed to interactive functions. |
|
Returns the full state for a widget manager for embedding |
|
Gets the widget state, or a piece of it. |
|
|
|
Static method, called when a widget is constructed. |
|
Class method, called when the comm-open message on the "jupyter.widget.control" comm channel is received |
|
Returns True if the object has a trait with the specified name. |
|
Hold syncing any state until the outermost context manager exits |
|
Context manager for bundling trait change notifications and cross validation. |
|
Icons names for each button (FontAwesome names without the fa- prefix). |
|
Selected index |
|
The traits which are synced. |
|
Selected label |
|
An instance trait which coerces a dict to an instance. |
|
A trait whose value must be an instance of a specified class. |
|
Gets the model id of this widget. |
|
Called when a property has changed. |
|
Setup a handler to be called when a trait changes. |
|
(Un)Register a custom msg receive callback. |
|
DEPRECATED: Setup a handler to be called when a trait changes. |
|
Registers a callback to be called when a widget is constructed. |
|
Open a comm to the frontend if one isn't already open. |
|
Iterable of values, (label, value) pairs, or Mapping between labels and values that the user can select. |
|
Removes a class from the top level element of the widget. |
|
Sends a custom msg to the widget model in the front-end. |
|
Sends the widget state, or a piece of it, to the front-end, if it exists. |
|
Called when a state is received from the front-end. |
|
Forcibly sets trait attribute, including read-only attributes. |
|
This is called before self.__init__ is called. |
|
An instance trait which coerces a dict to an instance. |
|
Is widget tabbable? |
|
A tooltip caption. |
|
Tooltips for each button. |
|
Return a trait's default value or a dictionary of them |
|
Get a |
|
Returns True if the specified trait has a value. |
|
Get metadata values for trait by key. |
|
Get a list of all the names of this class' traits. |
|
A |
|
Get a |
|
Remove a trait change handler. |
|
Remove trait change handlers of any type for the specified name. |
|
Selected value |
|
|
|