All i want to do is add pan and zoom controls to my map using as3.

This is the action script i have in the first frame of my movie:

import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;

var map:Map = new Map();

map.key = "mymapkeyishere";
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( 48.861000,-123.500000), 14,
MapType.NORMAL_MAP_TYPE);

}

Can someone please re-write this code so that it includes pan and zoom
controls and also so that it opens in a window 700 X 500 pixels???

Cheers, Morley

--

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