Android: How do I set the zoom level of map view to 1 km radius around my current location?
问题 I want to set the map view zoomed to 1km radius but cant figure out how? The doc says that the zoom level 1 will map earths equator to 256 pixels. So how do I calculate which zoom level I need to set so that the map view shows area in 1KM radius? UPDATE: After reading a few blog posts I wrote the following code: private int calculateZoomLevel() { double equatorLength = 6378140; // in meters double widthInPixels = screenWidth; double metersPerPixel = equatorLength / 256; int zoomLevel = 1;