You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nutiteq edited this page Oct 15, 2013
·
2 revisions
// set how much can be map tilted (to 2.5D view). Allowed and default is 30...90
mapView.getConstraints().setTiltRange(new Range(70, 90));
// do not allow to rotate map with two-finger touch. There is no rotation constraints by degrees, just on/off
mapView.getConstraints().setRotatable(false);
// Set allowed zoom range and bounding box.
// Bounding box must be in layer projection units, so conversion is needed.
mapView.getConstraints().setZoomRange(new Range(10, 16));
MapPos topLeft = mapView.getLayers().getBaseProjection().fromWgs84(-82.5724 , 23.1999);
MapPos bottomRight = mapView.getLayers().getBaseProjection().fromWgs84(-82.1351, 22.8785);
mapView.getConstraints().setMapBounds(new Bounds(topLeft.x, topLeft.y,bottomRight.x, bottomRight.y));