views:

91

answers:

1

Using the MapView in android, how can I set a default location, so that everytime I load up this application, it automatically centers/zooms location in on London?

+4  A: 

Firstly, get the controler for given map:

MapController myMapController = myMapView.getController();

and thet call:

myMapConotrller.setCenter(new GeoPint())

This will set the center of the map on the given GeoPoint.

See docs for MapView and MapController for more info

matekm
Brilliant, just what I need. Thanks :)
James.Elsey