...
|
...
|
@@ -1561,6 +1561,8 @@ |
|
|
|
|
|
- (void)doubleTapAtPoint:(CGPoint)aPoint
|
|
|
{
|
|
|
if (self.zoom < self.maxZoom)
|
|
|
{
|
|
|
[self registerZoomEventByUser:YES];
|
|
|
|
|
|
if (self.zoomingInPivotsAroundCenter)
|
...
|
...
|
@@ -1577,6 +1579,7 @@ |
|
|
|
|
|
[self zoomInToNextNativeZoomAt:aPoint animated:YES];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (_delegateHasDoubleTapOnMap)
|
|
|
[_delegate doubleTapOnMap:self at:aPoint];
|
...
|
...
|
@@ -1615,6 +1618,8 @@ |
|
|
|
|
|
- (void)handleTwoFingerSingleTap:(UIGestureRecognizer *)recognizer
|
|
|
{
|
|
|
if (self.zoom > self.minZoom)
|
|
|
{
|
|
|
[self registerZoomEventByUser:YES];
|
|
|
|
|
|
CGPoint centerPoint = [self convertPoint:self.center fromView:self.superview];
|
...
|
...
|
@@ -1623,6 +1628,7 @@ |
|
|
centerPoint = [self coordinateToPixel:self.userLocation.location.coordinate];
|
|
|
|
|
|
[self zoomOutToNextNativeZoomAt:centerPoint animated:YES];
|
|
|
}
|
|
|
|
|
|
if (_delegateHasSingleTapTwoFingersOnMap)
|
|
|
[_delegate singleTapTwoFingersOnMap:self at:[recognizer locationInView:self]];
|
...
|
...
|
|