VisioMove Essential (iOS)  1.27.8
<VMEMapListener> Protocol Reference

Description

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

Example
- (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);
}
}
VMEViewMode
The view mode controls certain elements of the scene and possibly the camera's viewpoint.
Definition: VMEViewMode.h:15
Definition: VMEMapView.h:58
A VMEPosition object represents a position incorporating the geographical coordinates,...
Definition: VMEPosition.h:20
A VMESceneContext object represents a physical location within the map.
Definition: VMESceneContext.h:15
Map listener to be notified of map related events occuring on the VMEMapView object.
Definition: VMEMapListener.h:42
Version
1.0

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...
 
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy