AnsweredAssumed Answered

Measure distances sample - written in AMD

Question asked by schlot on Nov 7, 2014
Latest reply on Nov 7, 2014 by timw1984

I want to do a very basic distance measure, but I also need identify in my project.  I'm not seeing/understanding whether or not I can manage the listeners for that dijit in order to pause and remove my identify task as needed.  I thought about using the Measure Distances example Measure distances | ArcGIS API for JavaScript which uses the GeometryService to get the length. 


That example is written in legacy.  When I tried to rewrite it in AMD, I'm getting an error, "Cannot read property 'setImmediateClick' of undefined"  That seems like I'm trying to use something before it's initialized or loaded, but I'm not sure what.


Maybe someone can figure out what I did wrong.  I haven't used the LengthsParameters before in GeometryService and I haven't used the Draw toolbar much either.