Now using this JSON, I want user to reload the polygon on the map.
I tried writing code,
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 above shpSymbol: <shp:ShpSymbol id="shpSymbol"/> myLoadGraphicsLayer: var myLoadGraphicsLayer:GraphicsLayer = new GraphicsLayer;
I dont get any error but the shapes are not re drawn. So anyone here can tell me where I am wrong or if some alternate solution is there please tell