minor formatting

This commit is contained in:
Justin R. Miller
2014-02-19 12:27:23 -08:00
parent 7f5a674a91
commit cbf96ba1c6

View File

@@ -237,6 +237,7 @@ class MBXMapView
if (pinch.state == UIGestureRecognizerStateBegan)
{
mapView->map.startScaling();
self.scale = mapView->map.getScale();
}
else if (pinch.state == UIGestureRecognizerStateChanged)
@@ -260,6 +261,7 @@ class MBXMapView
else if (pinch.state == UIGestureRecognizerStateEnded)
{
mapView->map.stopScaling();
if (fabsf(pinch.velocity) < 20)
return;
@@ -272,7 +274,8 @@ class MBXMapView
mapView->map.scaleBy(new_scale / scale, [pinch locationInView:pinch.view].x, [pinch locationInView:pinch.view].y, duration);
}
else if (pinch.state == UIGestureRecognizerStateCancelled) {
else if (pinch.state == UIGestureRecognizerStateCancelled)
{
mapView->map.stopScaling();
}
@@ -286,6 +289,7 @@ class MBXMapView
if (rotate.state == UIGestureRecognizerStateBegan)
{
mapView->map.startRotating();
self.angle = mapView->map.getAngle();
}
else if (rotate.state == UIGestureRecognizerStateChanged)