Hi,
I'm trying to use an Esri symbol object to create a legend (basically display some small rectangles with a border and a fill color). I'm wandering why this solution doesn't work:
var vgroup:VGroup = new VGroup();
for each(var symbol:Symbol in symbols)
{
var ring:Array = new Array();
ring.push(new MapPoint(0,0));
ring.push(new MapPoint(0,5));
ring.push(new MapPoint(5,5));
ring.push(new MapPoint(5,0));
var geometry:Geometry = new Polygon(ring);
var graphic:Graphic = new Graphic(geometry, symbol);
vgroup.addElement(graphic);
}
Some elements are added into the vgroup but it appears empty. In other words, how can I display a com.esri.ags.Graphic outside of a Map ?
Thanks in advance !