Hermes David
unread,Jan 27, 2012, 10:07:48 AM1/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openscales-dev
Hi,
the code below draws a line in NY. After your map loads fust zomm
there and you will see
var featureLayer:VectorLayer = new VectorLayer("Drawing");
var style:Style = new Style();
style.rules.push(new Rule());
style.rules[0].symbolizers.push(new LineSymbolizer(new
Stroke(0xFF0000,2)));
var points:Vector.<Number> = new Vector.<Number>();
points.push(-74.0061344408378);
points.push(40.7133534576121);
points.push(-74.0058367156372);
points.push(40.7137275408995);
points.push(-74.0056382321701);
points.push(40.7136380863915);
featureLayer.addFeature(new LineStringFeature(new
LineString(points),null,style));
fxmap.map.addLayer(featureLayer);
Hermes David