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;
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.