VisioMove Essential (iOS)  1.27.8

◆ addPlaceID:imageURL:data:position:size:anchorMode:altitudeMode:displayMode:orientation:visibilityRamp:

- (BOOL) addPlaceID: (NSString *_Nonnull)  placeID
imageURL: (NSURL *_Nullable)  imageURL
data: (NSDictionary *_Nullable)  data
position: (VMEPosition *_Nonnull)  position
size: (VMEPlaceSize *_Nullable)  size
anchorMode: (VMEPlaceAnchorMode anchorMode
altitudeMode: (VMEPlaceAltitudeMode altitudeMode
displayMode: (VMEPlaceDisplayMode displayMode
orientation: (VMEPlaceOrientation *_Nullable)  orientation
visibilityRamp: (VMEPlaceVisibilityRamp *_Nullable)  visibilityRamp 

Adds a dynamic place to the map.

Parameters
placeIDThe ID of the place. If the ID corresponds to an existing dynamic place, then it will be replaced. If the ID corresponds with a static place ID, then this call will fail.
imageURLA URL that references an image that will be used to represent the place within the map. Secure http (i.e. https) is not currently supported.
dataA data object for populating the place information. For the expected format, please see Place data format.
positionThe place's position within the map
sizeControls the place's size
anchorModeDetermines how the place will be anchored to the map.
altitudeModeDetermines how to interpret the altitude attribute of the position parameter.
displayModeDetermines how the place is displayed
orientationControls the place's orientation
visibilityRampControls the place's visibility
Returns
YES if the place was successfully added to the map, otherwise NO.
Note
Will only work if called during or after the mapDidLoad: (VMELifeCycleListener-p) method. It will not work if called within the mapDidInitializeEngine: (VMELifeCycleListener-p).
Applies to:
  • dynamic places
Example
VMEPosition* lPos = [[VMEPosition alloc] initWithLatitude:45.74131
longitude:4.88216
altitude:0.0
buildingID:nil
floorID:nil];
NSDictionary *placeData = [NSDictionary dictionaryWithObjectsAndKeys:
@"Cat tracker", @"name",
@"https://en.wikipedia.org/wiki/Cat", @"description",
@"http://www.clipartbest.com/cliparts/aTe/K4e/aTeK4en8c.png", @"icon",
@[@"2", @"3", @"99"], @"categories",
nil];
NSURL* lIconUrl = [NSURL URLWithString:@"http://www.clipartbest.com/cliparts/aTe/K4e/aTeK4en8c.png"];
[self.mapView addPlaceID:@"cat_tracker_id"
imageURL:lIconUrl
data:placeData
position:lPos
size:[[VMEPlaceSize alloc] initWithScale:50.0]
orientation:[VMEPlaceOrientation placeOrientationFacing]
visibilityRamp:[[VMEPlaceVisibilityRamp alloc] init]
];
@ VMEPlaceAnchorModeBottomCenter
Anchor to the bottom center.
Definition: VMEPlaceAnchorMode.h:64
@ VMEPlaceAltitudeModeRelative
The altitude is interpreted relative to the terrain.
Definition: VMEPlaceAltitudeMode.h:21
@ VMEPlaceDisplayModeOverlay
The place is displayed on top of all map surfaces, regardless of whether they are physical infront of...
Definition: VMEPlaceDisplayMode.h:28
VMEPlaceOrientation represents an orientation element that may be associated with a place object.
Definition: VMEPlaceOrientation.h:19
An object that determines the size of the place within the map.
Definition: VMEPlaceSize.h:14
An object that controls the place's visibility as a function of the camera's altitude.
Definition: VMEPlaceVisibilityRamp.h:16
A VMEPosition object represents a position incorporating the geographical coordinates,...
Definition: VMEPosition.h:20
Version
1.1
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy