AnsweredAssumed Answered

onMouseMove/onMouseOut events of GraphicLayer not called when a Draw tool is activated with "Draw.EXTENT" or "Draw.RECTANGLE" mode

Question asked by ahuarte47 on Nov 7, 2016
Latest reply on Nov 7, 2016 by rscheitlin

Hi, I have an issue in a widget. I found that "onMouseMove" or "onMouseOut" events of a GraphicLayer are not called when a Draw tool is activated with "Draw.EXTENT" or "Draw.RECTANGLE" modes. But, they work with "Draw.POINT" and "Draw.POLYGON" modes.

 

Sample code;

 

widget.selectingTool = new esri.toolbars.Draw(widget.map);

 

dojo.connect(widget.map.graphics, 'onMouseMove', function (evt) {

... bla bla
});
dojo.connect(widget.map.graphics, 'onMouseOut', function (evt) {
... bla bla

});

 

... bla bla

 

widget.selectingTool.activate(Draw.RECTANGLE);

 

Is it a bug?

Thanks in advance.

Outcomes