Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. setting defined zoom range for google maps in android
  2. @Override
  3. public void draw(Canvas canvas, MapView mapView, boolean shadow) {
  4.     super.draw(canvas, mapView, shadow);
  5.     if (mapView.getZoomLevel() < 2)
  6.         mapView.getController().setZoom(2);
  7. }