VisioMove Essential (iOS)  1.23.0

◆ addPlaceID:imageURL:data:position:()

- (BOOL) addPlaceID: (NSString *)  placeID
imageURL: (NSURL *)  imageURL
data: (NSDictionary *)  data
position: (VMEPosition *)  position 

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
Returns
YES if the place was successfully added to the map, otherwise NO.
Note
When using this method, the other properties of the object are initialized to appropriate values:
See also
- addPlaceID:imageURL:data:position:size:anchorMode:altitudeMode:displayMode:orientation:visibilityRamp:
Note
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];
];
Version
1.1
Visioglobe® 2015-2020