VisioMove Essential (iOS)  1.21.0

◆ addOverlayViewID:view:position:anchorMode:()

- (BOOL) addOverlayViewID: (NSString *)  overlayViewID
view: (UIView *)  view
position: (VMEPosition *)  position
anchorMode: (VMEAnchorMode anchorMode 

Adds a native overlay view above the map that's associated with a position.

Parameters
overlayViewIDThe id to given to overlay view. Must be unique.
viewThe native view to added to the map.
positionThe position to which the overlay view will be anchored. The bottom center of the view will be tied to the position.
anchorModeThe part of the view to be anchored to the map.
Returns
YES if the overlay was added to the map, otherwise NO.
Example
View* lView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 100)];
VMEPosition* lPos = [[VMEPosition alloc] initWithLatitude:45.740876918853147
longitude:4.8805385544669795
altitude:3
buildingID:@"B3"
floorID:@"B3-UL01"];
[self.mapView addOverlayViewID:@"info_overlay_id" view:lView position:lPos anchorMode:VMEAnchorModeCenterLeft];
Version
1.14
Visioglobe® 2015-2020