To add scale bar, new a ScaleBarOverlay object and add it in the overlays of the mapView.
Example:
myMapController = mapView.getController();
myMapController.setZoom(3);
ScaleBarOverlay myScaleBarOverlay = new ScaleBarOverlay(this);
mapView.getOverlays().add(myScaleBarOverlay);
Previous:
- Display Compass on osmdroid MapView

0 Response to "osmdroid MapView: set zoom level and add scale bar."
Posting Komentar