//Create and add Identify hydrantsLayer = new esri.layers.FeatureLayer(hydrantsUrl, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, outFields: ["*"] }); hydrantsLayer.on("error", function (error) { alert("Error loading hydrants Layer."); }); //Also tried this format: hydrantsLayer.on("click", executeIdentifyTask); dojo.connect(hydrantsLayer, 'onClick', executeIdentifyTask);
Solved! Go to Solution.
I am having this issue but do not see the solution provided. Has this been removed?