disallow/undo rotation at low zooms and near world edge

This commit is contained in:
Justin R. Miller
2014-05-23 18:24:58 -07:00
parent 07e15927af
commit 3c5a2c7935
6 changed files with 70 additions and 10 deletions

View File

@@ -312,6 +312,14 @@ void Map::stopScaling() {
update();
}
double Map::getMinZoom() {
return transform.getMinZoom();
}
double Map::getMaxZoom() {
return transform.getMaxZoom();
}
#pragma mark - Rotation
@@ -356,6 +364,10 @@ void Map::stopRotating() {
update();
}
bool Map::canRotate() {
return transform.canRotate();
}
#pragma mark - Toggles