I need the following Android implementation:How do I get the Google Maps API to set the correct zoom level for the country?
For those who don’t want to click:How to zoom in to the country by name in the Android application?
Has anyone got a pointer on how to complete this task?
Edit: I think I can parse this file .But then the question arises: the map.fitBounds()kind of method in Android?
map.fitBounds()
Thanks in advance
, . :
MapController controller = mapView.getController(); controller.zoomToSpan( (maxLat - minLat), (maxLong - minLong)); controller.animateTo(new GeoPoint( (maxLat + minLat)/2, (maxLong + minLong)/2 ));