The way I do it is to read data out off my SQLite database use this function to display it
[Bindable]
public var bridgeList:Object;
private function bridgeResult():void {
[Embed(source='assets/point.png')]
var bridgePicClass:Class;
var bridgePoint:PictureMarkerSymbol = new PictureMarkerSymbol(bridgePicClass);
for (var i:int; i < this.employeeCollection.length; i++) {
var bridgeGraphic:Graphic = new Graphic(new WebMercatorMapPoint(employeeCollection.GPSLong, employeeCollection.GPSLat), bridgePoint);
bridgePointsLayer.add(bridgeGraphic);
}
How would I do it for polygons?