zoom mapView to a certain bounding box on osmdroid
问题 I want to use the zoomToBoundingBox method to zoom a map to a specific bounding box. The method does nothing but display the map on zoom level 0. In the mapView.java source code I found this: /** * Zoom the map to enclose the specified bounding box, as closely as possible. * Must be called after display layout is complete, or screen dimensions are not known, and * will always zoom to center of zoom level 0. * Suggestion: Check getScreenRect(null).getHeight() > 0 */ I checked getScreenRect