Hi,I have a map with some CartographicLineSymbol on a graphic layer and I'm trying to build a legend.I tried 2 solutions to draw a line symbol into an UIComponent but none of them works.Solution 1:var uic:UIComponent = symbol.createSwatch(20,15);
Solution 2:var uic:UIComponent = new UIComponent();
uic.width = 20;
uic.height = 15;
var polyLine:Polyline = new Polyline();
var p1:MapPoint = new MapPoint(0,0);
var p2:MapPoint = new MapPoint(15,0);
var path:Array = new Array(p1,p2);
polyLine.addPath(path);
symbol.draw(uic, polyLine, null, this._map);
The line symbol has a width, a color. Any idea how to solve that problem?Thanks!