Thanks for that code, Pericius.
I've replicated the issue and reported here:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=849

Please star that issue to be notified when it's fixed.

- pamela


On Tue, Nov 4, 2008 at 4:59 AM, Pericius <[EMAIL PROTECTED]> wrote:

>
> Same issue here.
>
> Code (flex, as3) is:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" width="640" height="480">
> <maps:Map xmlns:maps="com.google.maps.*" id="map"
> mapevent_mapready="onMapReady(event)" width="512" height="368" key=""/
> >
> <mx:Script>
>    <![CDATA[
>
>    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.overlays.Marker;
>    import com.google.maps.overlays.MarkerOptions;
>    import com.google.maps.controls.ZoomControl;
>    import com.google.maps.controls.PositionControl;
>
>    private function onMapReady(event:Event):void {
>                 this.map.setCenter(new LatLng(45.7924, 15.9696), 10,
> MapType.NORMAL_MAP_TYPE);
>                this.map.addControl(new ZoomControl());
>                this.map.addControl(new PositionControl());
>
>
>      addMarkers();
>    }
>
>    private function addMarkers():void{
>        var markers:Array = new Array();
>
>        markers.push(new Marker(
>                                                                new
> LatLng(45.7924, 15.9696),
>                                                                new
> MarkerOptions({tooltip:"Hello, world!"})));
>
>        markers.push(new Marker(
>                                                                new
> LatLng(45.7, 15.9),
>                                                                new
> MarkerOptions({tooltip:"Hello, world2\nDruga
> linija."})));
>
>        for(var i:int = 0; i < markers.length; i++){
>                markers[i].addEventListener(MapMouseEvent.CLICK,
> markerClicked);
>                this.map.addOverlay(markers[i]);
>        }
>    }
>
>    private function markerClicked(event:MapMouseEvent):void{
>        this.map.setCenter(event.target.getLatLng());
>        this.map.setZoom(15);
>    }
>    ]]>
> </mx:Script>
> </mx:Application>
> >
>

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