// create new GeoLocation object var loc : GeoLocation = new GeoLocation( map, "Redlands, CA", 34.0527, -117.1531); // now we have the location object with the x and y coordinates in map units Response.Write( loc.x + ", " + loc.y); // output for the Cylindrical projection: // -1160.8126558920917, 2355.4452265504783 public class GeoLocation { public var label : String; public var x : double; public var y : double; public function GeoLocation( map : Map, label : String, lat : double, lon : double) { var proj : Projection = map.getProjection(); var pt : GeoPoint = proj.project( lat, lon); this.label = label; this.x = pt.x; this.y = pt.y; } }