NASA-AMMOS / MMGIS

Multi-Mission Geographical Information System - Web-based Mapping and Spatial Data Infrastructure for Planetary Science Operations - https://nasa-ammos.github.io/MMGIS/
Apache License 2.0
148 stars 46 forks source link

[New Feature]: mmgisAPI.getActiveTools() #572

Closed tariqksoliman closed 5 months ago

tariqksoliman commented 5 months ago

Checked for duplicates

Yes - I've already checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

mmgisAPI.getActiveTool() (without an s) does not indicate whether separated tools (Identifier and Legend) are active.

Describe the feature request

Add mmgisAPI.getActiveTools() (with an s) that indicate whether any tool, separated or not are active.

Something like:

mmgisAPI.getActiveTools()
returns
[
{ tool: {}, toolName: "IdentifierTool"},
{ tool: {}, toolName: "LegendTool"},
{ tool: {}, toolName: "DrawTool"},
]