Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#572 mmgisAPI.getActiveTools #573

Merged
merged 1 commit into from
Jul 2, 2024
Merged

#572 mmgisAPI.getActiveTools #573

merged 1 commit into from
Jul 2, 2024

Conversation

tariqksoliman
Copy link
Member

Closes #572

Adds:

getActiveTools()

This function returns an object with the currently active tool and the name of the active tool in addition to any active separated tools (such as the Identifier and Legend Tools).

The following is an example of how to call the getActiveTools function:

window.mmgisAPI.getActiveTools();
/* returns (example)
{
  activeToolNames: ['InfoTool', 'LegendTool', 'IdentifierTool']
  activeTools: [
    {activeTool: {…}, activeToolName: 'InfoTool'},
    {activeTool: {…}, activeToolName: 'LegendTool'},
    {activeTool: {…}, activeToolName: 'IdentifierTool'}
  ]
}
*/

Also colors the separated Identifier Button to indicate to users that it's active.

@tariqksoliman tariqksoliman self-assigned this Jul 2, 2024
@tariqksoliman tariqksoliman merged commit 95742cc into development Jul 2, 2024
@tariqksoliman tariqksoliman deleted the ts-572 branch July 2, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[New Feature]: mmgisAPI.getActiveTools()
1 participant