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); } }); }); }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.