sepal_ui.mapping.inspector_control.InspectorControl#
- class sepal_ui.mapping.inspector_control.InspectorControl(**kwargs)[source]#
Widget control displaying a btn on the map.
When clicked the menu expand to show the values of each layer available on the map. The menu values will be change when the user click on a location on the map. It can digest any Layer added on a SepalMap.
- Parameters:
m (Map | None) – the map on which he vinspector is displayed to interact with it’s layers
open_tree (Bool)
Attributes
m
the map on which he vinspector is displayed to interact with it's layers
marker
The marker of the last visited point
menu
The menu displayed when the map btn is clicked
open_tree
Either or not the tree should be opened automatically
text
The text element from the card that is edited when the user click on the map
w_loading
The progress bar on top of the Card
fullscreen
Either or not the Menu container should be displayed in fullscreen on top of the map
Methods
Widget control displaying a btn on the map.
Read the data when the map is clicked with the vinspector activated.
Toggle the cursor and marker display.
- InspectorControl.__init__(m, open_tree=True, **kwargs)[source]#
Widget control displaying a btn on the map.
When clicked the menu expand to show the values of each layer available on the map. The menu values will be change when the user click on a location on the map. It can digest any Layer added on a SepalMap.
- Parameters:
m (Map) – the map on which he vinspector is displayed to interact with it’s layers
open_tree (bool)
- Return type:
None