Original User: SmithPeterAI've got a similar issue with the AttributeInspector and no features selected for points. In jsFiddle, I tried adding the code to watch for the layer click.
operationalLayer.on("click", function (e) {
dojo.byId("details").innerHTML = "";
selectQuery.objectIds = [e.graphic.attributes.ID];
operationalLayer.selectFeatures(selectQuery);
});
and removing the code to watch for the map click
dojo.connect(map, "onClick", function (evt) {
dojo.byId('details').innerHTML = '';
selectQuery.geometry = evt.mapPoint;
operationalLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW, null);
});
and keeping everything else the same. The application would then not select the geology polygon. Is there something else that I need to do to make the click event for the layer to work. Thanks