My graphics layer is shotLayer and the individual graphics is the shot variable (both declared globally)
/ Function to show the shots that were returned in the table query (attached to graphics) function showResults(results) { dojo.forEach(results.features, function (resultsFeature) { dojo.forEach(shotLayer.graphics, function (shotLayerGraphic) { if (resultsFeature.attributes.LOC == shotLayerGraphic.attributes.Path) { shot.show(); alert("test"+ resultsFeature.attributes.LOC "and" + shotLayerGraphic.attributes.Path); } }); }); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.