You declare the latlng in the onUpdate function, its local and the
onMapReady cant see it
I would put the addOverlay and setCenter in the onUpdate function but, check
the map has loaded first
if(map.initialized)
{
map.addOverlay(new Marker(latlng));
map.setCenter(latlng, 17, MapType.NORMAL_MAP_TYPE);
}
--
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.