Select to view content in your preferred language

Esri’s Move Tool stops custom Tool from working

430
5
12-05-2024 06:19 AM
StevenCorpus
Emerging Contributor

Have a custom MapTool that generally works well. When a point that has a path to a file in its attribute table is clicked using the tool, the file is opened. But when Esri’s Move Tool is used to select a point (point doesn’t need to be moved) and then the Tool is activated, the  OnToolDeactivateAsync runs, but when point is clicked with the tool, the OnSketchCompleteAsync is not triggered and the tool stops working.

Has anyone run into this issue, and did they find a solution? Thanks in advance.

5 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Activating next tool deactivates previous tool. Why do you use Move tool to select point? You can select it from code

0 Kudos
StevenCorpus
Emerging Contributor

The reason for the tool is not to move anything. The issue is that once Esri's move tool is used and then the custom tool is activated sometime after, the custom tool activates (OnToolDeactivateAsync runs), but OnSketchCompleteAsync is no longer triggered and the tool stops working

0 Kudos
StevenCorpus
Emerging Contributor

So if a user uses Esri's move tool, our tool no longer works.

 

StevenCorpus
Emerging Contributor

The reason for the tool is not to move anything. The issue is that once Esri's move tool is used and then the custom tool is activated sometime after, the custom tool activates (OnToolDeactivateAsync runs), but OnSketchCompleteAsync is no longer triggered and the tool stops working

0 Kudos
jseger5
New Contributor

Same problem...  I concur it's the "Move" tool that disables all of my custom map tools.  The "Edit" tool does not cause a problem.  In fact, if I perform a subsequent "Edit", my tools will begin working again.

@Esri fix it!

0 Kudos