Hi,
I have a MapActivity, using Google Maps and need to center that map on my
current position.
The map is displayed correctly and I can even mark my current location with
MyLocationOverlay here = new MyLocationOverlay(this, mapView);
here.enableCompass(); // compass is displayed
here.enableMyLocation(); // blue circle is displayed correctly
mapOverlays.add(here);
GeoPoint p = here.getMyLocation(); // p is null ???
if (p != null) mapController.animateTo(p);
If the blue circle marks my position correctly, how do I get this position
so that I can animate there?
thanks,
Stephan
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en