onMapReady means the map is ready. What you want to do is set the maps
latlng in the in the preinitilize event so you aren't drawing the map twice.
Then add overlays in the onmapready event.
On May 24, 2011 6:14 PM, "Mere Mortal" <[email protected]> wrote:
>
> ah, sorry
> initialized is for the Flex container, not the content loaded. Not sure
what
> to test for to see if the map has loaded before you mark it.I'm sure there

> must be a property but in the meantime
>
> private var mapIsReady:Boolean = false;
>
> private function onMapReady(event:Event):void
> {
> map.setCenter(new LatLng(51.50831,-0.126763), 8 ,
> MapType.NORMAL_MAP_TYPE);
> mapIsready = true;
> }
>
> private function onUpdate(event:GeolocationEvent):void
> {
> if(mapIsReady)
> //do your thing
> }
>
>
> fingers crossed that works
>
> --
> 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.
>

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