I'm trying to implement a MapView using the osmdroid library.
However at the moment the furthest I seem to be able to zoom in isn't sufficient enough for my purposes.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Setup map view:
mapView = new MapView(this, 256);
setContentView(mapView);
// Parse parameters
Intent intent = getIntent();
center = intent.getDoubleArrayExtra(INITIAL_CENTER);
multiTouch = intent.getBooleanExtra(MULTI_TOUCH, DEFAULT_MULTI_TOUCH);
zoomButtons = intent.getBooleanExtra(ZOOM_BUTTONS, DEFAULT_ZOOM_BUTTONS);
zoomLevel = intent.getIntExtra(ZOOM_LEVEL, DEFAULT_ZOOM_LEVEL);
if (center == null)
center = DEFAULT_INITIAL_CENTER;
// Applying parameters
mapView.setClickable(true);
mapView.setMultiTouchControls(multiTouch);
mapView.setBuiltInZoomControls(zoomButtons);
mapView.getController().setZoom(zoomLevel);
mapView.getController().setCenter(new GeoPoint(center[0], center[1]));
mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
mapView.setMaxZoomLevel(18);
// Show current location coordinates
Toast.makeText(
getApplicationContext(),
"Latitude:\t\t" + center[0] + "\n" +
"Longitude:\t" + center[1],
Toast.LENGTH_LONG).show();
// Offline maps:
mapView.setUseDataConnection(true);
}
Is there anyway to zoom in further (I've already tried setting zoom level to 18)?