Thanks, thought it would be simple, hadn't come accross MapController
yet. Cheers.

Liam

On Sep 28, 12:21 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> Ne0 wrote:
> > Hi,
>
> > Thought this might have been covered already, but i cant seem to find
> > it anywhere. My app reads GPS positions from a file and overlays them
> > on the mapView. All very simple stuff, but how to get the map view to
> > go to and zoom in on a point?
>
> Given a MapView named "map":
>
> MapController mc=map.getController();
>
> mc.animateTo(...); // where ... is your GeoPoint to move to
> mc.setZoom(...);   // where ... is the zoom level, 1-21
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android_ from Apress Now Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to