var arrSavedGraphics:Array = new Array();var objGeom:Object = JSON.decode(objJson.geometry);var poly:Polygon = new Polygon();poly.rings = objGeom.rings;arrSavedGraphics.push(new Graphic(poly, shpSymbol));}myLoadGraphicsLayer.graphicProvider = new ArrayCollection(arrSavedGraphics);where,objJson reporesent the JSON that I posted aboveshpSymbol: <shp:ShpSymbol id="shpSymbol"/>myLoadGraphicsLayer: var myLoadGraphicsLayer:GraphicsLayer = new GraphicsLayer;
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.