Select to view content in your preferred language

Extending Draw tool to add cursor snapping

361
1
02-05-2024 02:39 PM
Labels (2)
JustinOBrien_SSP
New Contributor

I've been tasked with creating a drawing tool that has a 'snapping' feature. Is it possible or advisable to try to extend the OOTB Draw tool to add this functionality? The EB codebase is not easy to understand but it looks like it may be possible to slap a new React component into the widget, I'm wondering if anyone here has gone that route.

0 Kudos
1 Reply
FredericPoliart_EsriAU
Frequent Contributor

We have, for the https://fam.brisbane.qld.gov.au [link] (<< 100% made in ExB)
We cloned , renamed and hacked the Esri ExB map widget (extra onclick action), search widget (we made it self clearing after 2 sec), sidebar widget, we even created our own "locateMe" button 🙂 

Cloning EsriInc widgets is not hard (copy in your widget folder, rename it and make sure the manifest.,json name matches exactly) , but modifying it can be tricky and most importantly, if EsriInc comes up with a different OOTB map widget in the next release of ExB dev edition, your cloned-version might no longer work. 


0 Kudos