AnsweredAssumed Answered

Draw toolbar not showing extent while click-dragging...

Question asked by jwhitey2000 on Jan 9, 2014
Latest reply on Jan 10, 2014 by jwhitey2000
I have a strange one here and am sure that I am just missing something silly. I am using the latest version of the API in conjunction with ESRI's world street map service. Basically when clicking-dragging the mouse with the draw toolbar, nothing but the tool tip appears on the map. After letting go of the mouse button, the draw-end event fires correctly and I am able to draw the geometry on the map... It works - but is confusing. I have similar code working using an older version of the API.

ESRI's samples all work as expected in the same browser above as doos my older API code - so not a browser issue. There is a graphics layer on the map, but it still doesn't work even if remove that.

Anyone seen something similar or have any thoughts?

Code:

(Initialization)
   scToolBar = new esri.toolbars.Draw(self.map);                    
   scToolBar.on("draw-end", spatialConstraintDrawn);      

...

(when drawing starts - this is in another function activated by a button click)
  self.map.disableMapNavigation();
  scToolBar.activate(esri.toolbars.Draw.EXTENT);


Thank you for any thoughts or ideas!

Justin

Outcomes