AnsweredAssumed Answered

Capturing the onClick event of a map when a graphics layer is present

Question asked by jamesandrewmuir on Jan 29, 2014
Latest reply on Feb 10, 2014 by jamesandrewmuir
I have an identify tool that listens for the onClick event of the map like so

handle = dojo.connect(, 'onClick', function (evt) {...}

When i run a query against the map i am highlighting the returned features by adding the geometries as graphics to a map like so

var layerId = "query-graphics-layer"           var queryGraphicsLayer = new esri.layers.GraphicsLayer({id: layerId});            map.addLayer(queryGraphicsLayer);            //Add the graphics to the query-graphics-layer           $.each(queryFeatureSet.features, function( index, feature) {             queryGraphicsLayer.add(new esri.Graphic(feature.geometry, feature.symbol));           });

The problem is that when i go to click on the feature to get the identify, the onClick event of the map does not fire. I tried to use


but that didn't work. It appears that the graphics in the graphics layer is taking the click event and that it is not getting propagated to the map which seems to be by design

However, i would like to know if there is some way to allow that event to propagate up to the map or possibly a way to propagate it myself?