Authored by Obrand69

Added event in delegate when touch is finished

... ... @@ -24,6 +24,7 @@
BOOL delegateHasAfterMapZoomByFactor;
BOOL delegateHasDoubleTapOnMap;
BOOL delegateHasTapOnMarker;
BOOL delegateHasAfterMapTouch;
@end
@implementation RMMapView
... ... @@ -116,6 +117,8 @@
delegateHasDoubleTapOnMap = [(NSObject*) delegate respondsToSelector: @selector(doubleTapOnMap:At:)];
delegateHasTapOnMarker = [(NSObject*) delegate respondsToSelector:@selector(tapOnMarker:onMap:)];
delegateHasAfterMapTouch = [(NSObject*) delegate respondsToSelector: @selector(afterMapTouch:)];
}
- (id<RMMapViewDelegate>) delegate
... ... @@ -319,6 +322,8 @@
}
}
if (delegateHasAfterMapTouch) [delegate afterMapTouch: self];
// [contents recalculateImageSet];
}
... ...
... ... @@ -25,4 +25,6 @@
- (void) tapOnMarker: (RMMarker*) marker onMap: (RMMapView*) map;
- (void) afterMapTouch: (RMMapView*) map;
@end
... ...