AnsweredAssumed Answered

Map onDblClick event

Question asked by jadams52451 on Jun 9, 2011
Latest reply on Jun 10, 2011 by jadams52451
I am working on a project where the map will give users the option click and recieve an infoWindow containg quereied Parcel data.  I also want to use the measureing widgit.  The problem is that if I click the measure widgit and then click the map, it not only starts measureing, but it also displayes the infoWindow.

My work around i think should be to have the infoWindow display when a user double clicks.  So i changed my listener from 'onClick' event to  'onDblClick' even.

function init() {
..
dojo.connect(map, "onDblClick", myClickHandler);
..
}

But that doesnt fire off myClickHandler fucntion, instead it simply center and zooms the map.  I have tried to disable double click and zoom:

function init() {
..
        map = new esri.Map("map", {infoWindow: Popup, logo: false});
         dojo.place(Popup.domNode,map.root);
         dojo.addClass(map.infoWindow.domNode, "myTheme");
         map.disableDoubleClickZoom();
...
        dojo.connect(map, "onDblClick", myClickHandler);
...
}

But the map still zooms when double clicked, and the function myClickHandler is not fired.  It works just fine if I use "onClick" instead of "onDblClick".

Any help is appreciated.

Outcomes