stevengriffith

Odd Pan and Drawing behavior

Discussion created by stevengriffith on Aug 27, 2012
Latest reply on Aug 30, 2012 by stevengriffith
I'm experiencing some odd conflicts with drawing and map panning (mouse drag). The sequence of events is:

toolbar.activate(esri.toolbars.Draw.EXTENT);
toolbar.deactivate();
toolbar.activate(esri.toolbars.Draw.POINT);
querytask - get feature at selected point
add returned feature to a graphics layer
toolbar.deactivate();
toolbar.activate(esri.toolbars.Draw.POINT);

And at this point, mouse dragging to pan the map is disabled in my application. What's interesting is two things: First, if the initial toolbar activation as "EXTENT" is left off, the map dragging is not disabled. Second, when the map dragging is disabled, activating the toolbar with drawing shape "EXTENT" and then deactivating the toolbar fixes the mouse dragging to pan the map.

Any clues or help would be appreciated.

Steve G.
County of SLO

Outcomes