We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc903da commit 1196e29Copy full SHA for 1196e29
projects/map/src/lib/openlayers-map/open-layers-tool-manager.ts
@@ -86,13 +86,13 @@ export class OpenLayersToolManager implements ToolManagerModel {
86
}
87
88
public disableTool(toolId: string, preventAutoEnableTools?: boolean): ToolManagerModel {
89
+ if (!preventAutoEnableTools && !this.switchedTool) {
90
+ this.enableAutoEnabledTools();
91
+ }
92
if (!this.tools.get(toolId)?.isActive) {
93
return this;
94
95
this.tools.get(toolId)?.disable();
- if (!preventAutoEnableTools && !this.switchedTool) {
- this.enableAutoEnabledTools();
- }
96
this.toolsDisabled.next(null);
97
98
0 commit comments