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); } }); }); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.