VisioMove Essential (iOS)  1.23.0
<VMEMapListener> Protocol Reference


Map listener to be notified of map related events occuring on the VMEMapView object.

- (void)viewDidLoad {
[super viewDidLoad];
[self.mapView setMapListener:(VMEMapListener*)self];
[self.mapView loadMap];
-(void) map:(VMEMapView *)mapView sceneDidUpdate:(VMESceneContext *)scene withMode:(VMEViewMode)viewMode {
NSString* lMsg = [NSString stringWithFormat:@"Mode: %ld Scene: %@", (long)viewMode, scene.description];
NSLog(@"%@", lMsg);
-(void) map:(VMEMapView*)mapView didReceiveTapGesture:(VMEPosition*)position {
if (position == nil) {
NSString* lMsg = [NSString stringWithFormat:@"mapTapGesture outside of map: "];
NSLog(@"%@", lMsg);
} else {
NSString* lMsg = [NSString stringWithFormat:@"mapTapGesture: Position: %@", position];
NSLog(@"%@", lMsg);

Inherits <NSObject>.

Instance Methods

(void) - map:sceneDidUpdate:withMode:
 Notifies the listener that the map's scene or view mode has changed. More...
(void) - map:didReceiveTapGesture:
 Notifies the listener that a tap gesture has occurred on map view. More...
Visioglobe® 2015-2020