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
2010-08-30 12:00:31
Brilliant, just what I need. Thanks :)
James.Elsey
2010-08-30 13:48:34