VisioMove Essential (iOS)  1.27.8

◆ addOverlayViewID:view:position:anchorMode:

- (BOOL) addOverlayViewID: (NSString *_Nonnull)  overlayViewID
view: (UIView *_Nonnull)  view
position: (VMEPosition *_Nonnull)  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];
@ VMEAnchorModeCenterLeft
Anchor to the center left.
Definition: VMEAnchorMode.h:39
A VMEPosition object represents a position incorporating the geographical coordinates,...
Definition: VMEPosition.h:20
Version
1.14
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy