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); } }); }); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.