<esri:GraphicsLayer id="myGraphicsLayer" graphicRemove="updateGrid()" graphicAdd="updateGrid()"/> private function updateGrid():void { // Clear grid dg.dataProvider.removeAll(); results = new ArrayCollection; for (var i:int = myGraphicsLayer.numGraphics - 1; i >= 0; i--) { var g:Graphic = myGraphicsLayer.getChildAt(i) as Graphic; results.addItem({PARCEL:g.attributes.PARCEL, OWNER:g.attributes.OWNER, STRNO:g.attributes.STRNO, STRNAME:g.attributes.STRNAME, STRTYPE:g.attributes.STRTYPE}) } lblParCount.text = results.length.toString(); dg.dataProvider=results; }
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.