Hi,

add the following to your imports and it should be ok:

com.google.maps.controls.ZoomControl;
com.google.maps.controls.PositionControl;
com.google.maps.controls.MapTypeControl;

Greetings, Darek


On 4 Feb., 09:01, Jose <[email protected]> wrote:
> Hi,
>
> I looked at the source code on the samples page and have a actions
> script my test app like this
> import com.google.maps.LatLng;
> import com.google.maps.Map;
> import com.google.maps.MapEvent;
> import com.google.maps.MapType;
> import com.google.maps.InfoWindowOptions;
> import com.google.maps.LatLngBounds;
> import com.google.maps.MapMoveEvent;
> import com.google.maps.overlays.Marker;
> import com.google.maps.overlays.MarkerOptions;
> import com.google.maps.interfaces.IPolyline;
> import com.google.maps.services.*;
>
> var map:Map = new Map();
> map.key = "your_api_key";
> 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(42.366662,-71.106262), 11,
> MapType.NORMAL_MAP_TYPE);
>   map.addControl(new ZoomControl());
>   map.addControl(new PositionControl());
>   map.addControl(new MapTypeControl());
>
> }
>
> Error message for all map.addControl call is like this: 1180: Call to
> a possibly undefined method ZoomControl.

-- 
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