new module:ToolActivateMgr($rootScope)
Provides a service to manage the activation of ngeo.misc.ToolActivate objects.
Example:
Each tool must be registered before using it.
let tool = new ngeo.misc.ToolActivate(interaction, 'active');
ngeoToolActivateMgr.registerTool('mapTools', tool);A tool will be registered in a group identified by a group name. Once registered a tool can be activated and deactivated. When activating a tool, all others tools in the same group will be deactivated.
ngeoToolActivateMgr.activateTool(tool);
ngeoToolActivateMgr.deactivateTool(tool);See our live examples: ../examples/mapquery.html ../examples/toolActivate.html
Parameters:
| Name | Type | Description |
|---|---|---|
$rootScope |
angular.Scope | The rootScope provider. |