not sure why there is removelistener function. Maybe its good practice, or that the Tour de Flex app has different functions so if you view a different part it stops listening. If all your app does is geolocation then closing the app will remove the listener automatically.
Its not that you cant change a latlng, but the scope of the latlng was local to the onUpdate function. Moving the declaration outside the function would work. But, onMapReady only fires once, when the map is ready. The onUpdate event fires continuously every time gps takes a reading. On my HTC this seems to default to 40 seconds, although you can change the sample rate. So if you want the position updated then you need to do the setCentre and marker within the onUpdate event. But the sensor will probably fire before the map is ready so you need to check before trying to setCenter. There is a lag when opening the map because it has to download it first so it depends on your connection, wifi or 3G. I notice the newer crop of phones have the maps loaded into memory. Not sure how this API will work then. WIll we still have to download it or will Android take care of it and fetch from memory when possible (I hope so) :) -- 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.
