use internal zoomLevel limits for now

This commit is contained in:
Hannes Janetzek
2012-11-26 12:44:05 +01:00
parent 7f598f5ccf
commit 74b5de13b8
2 changed files with 19 additions and 9 deletions

View File

@@ -552,13 +552,13 @@ public class MapView extends RelativeLayout {
return true;
}
byte limitZoomLevel(byte zoom) {
if (mMapZoomControls == null)
return zoom;
return (byte) Math.max(Math.min(zoom, getMaximumPossibleZoomLevel()),
mMapZoomControls.getZoomLevelMin());
}
// byte limitZoomLevel(byte zoom) {
// if (mMapZoomControls == null)
// return zoom;
//
// return (byte) Math.max(Math.min(zoom, getMaximumPossibleZoomLevel()),
// mMapZoomControls.getZoomLevelMin());
// }
/**
* Sets the center and zoom level of this MapView and triggers a redraw.