Thanks pclinux :)
thats what I was after.

To fit my code example I just replaced the end bracket & semicolon
with a comma

heres the above code in my basic map example for others that want to
know:

        import flash.events.Event;
        import com.google.maps.LatLng;
        import com.google.maps.Map;
        import com.google.maps.MapEvent;
        import com.google.maps.MapMouseEvent;
        import com.google.maps.MapType;
        import com.google.maps.controls.MapTypeControl;
        import com.google.maps.controls.ZoomControl;
        import com.google.maps.overlays.Marker;
    import com.google.maps.overlays.MarkerOptions;
    import com.google.maps.styles.FillStyle;
    import com.google.maps.styles.StrokeStyle;


var map:Map = new Map();
map.key =
"ABQIAAAAtBM6Nx9YRYNohePLc8qC7xTovViODZS-2gPQGT5YvR89FM8GRRRn5usK_wnzRXi36po4CMrwH_eN-
w";
map.setSize(new Point(stage.stageWidth, stage.stageHeight));

map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);

function onMapReady(event:Event):void {
    map.setCenter(new LatLng(-35.189416, 173.99898), 11,
MapType.NORMAL_MAP_TYPE);

map.addControl(new ZoomControl());
map.addControl(new MapTypeControl());

// heres that block of code from above
var latlong:String = '-35.191374, 174.035009';
var latLongParts:Array = latlong.split(',');
var point:LatLng = new LatLng(Number(latLongParts[0]),Number
(latLongParts[1]));
var marker:Marker = new Marker(point,

   new MarkerOptions({
                strokeStyle: new StrokeStyle({color: 0x000000}),
                                fillStyle: new FillStyle({color: 0xe31e24, 
alpha: 0.8}),
                radius: 12,
                hasShadow: true
      }));
  map.addOverlay(marker);
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to