you have to add the controls to the map object:
map.addControl(new PositionControl());
map.addControl(new ZoomControl());
map.addControl(new MapTypeControl());
On Oct 9, 2008, at 9:04 AM, Thanweb wrote:
>
> thank you but....
>
> i added those parts and still not working....
>
> my code below...
>
> import com.google.maps.Map;
> import com.google.maps.MapEvent;
> import com.google.maps.LatLng;
> import com.google.maps.MapType;
>
> import com.google.maps.controls.MapTypeControl;
> import com.google.maps.controls.ZoomControl;
> import com.google.maps.controls.PositionControl;
>
> var map:Map = new Map();
> map.key = "ABQIAAAAz8iw-
> iT8aLDubbfIocloIhTFSl41XVZrV3xPbrJOD1pq6Pe68BT249miG-
> suJlrbXRACei7GA2jyog";
> map.setSize(new Point(stage.stageWidth, stage.stageHeight));
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> this.addChild(map);
>
>
> function onMapReady(event:MapEvent):void {
> map.setCenter(new LatLng(51.37206,1.13034), 14,
> MapType.NORMAL_MAP_TYPE);
> addControl(new ZoomControl());
> addControl(new PositionControl());
> addControl(new MapTypeControl());
> }
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---