LayerButtonο
- class eomaps.widgets.LayerButton(**kwargs: Any)ο
A Button to show a selected layer.
- Parameters:
m (eomaps.Maps) β The Maps-object to use.
layer (str, list or tuple) β
The layer to overlay. Can be eiter a string, a tuple of a layer and a transparency or a list of the aforementioned types.
See
Maps.show_layer()
for more details.kwargs β Additional kwargs passed to the used ipywidgets.FloatSlider.
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 button. |
|
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 |
|
Programmatically trigger a click event. |
|
|
|
Close method. |
|
|
|
A trait which allows any value. |
|
A contextmanager for running a block with our cross validation lock set to True. |
|
Button label. |
|
Enable or disable user changes. |
|
Focus on the widget. |
|
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. |
|
Font-awesome icon names, without the 'fa-' prefix. |
|
The traits which are synced. |
|
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. |
|
Register a callback to execute when the button is clicked. |
|
(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. |
|
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. |
|
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. |
|
|
|