VisioMove Essential (iOS)  1.23.0

◆ updatePlaceData:()

- (void) updatePlaceData: (NSDictionary *)  data

Update the place data content within the map.

Note
Should be called within the mapDidInitializeEngine: (VMELifeCycleListener-p) notification.
Parameters
dataAn NSDictionary object that contains the updated place data. For the expected format, please see Place data format.
Note
Applies to:
  • static places
Version
1.0
Example
-(void) mapDidInitializeEngine:(VMEMapView *)mapView
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"visio_island_cms_update" ofType:@"json"];
NSData *returnedData = [[NSFileManager defaultManager] contentsAtPath:path];
if(NSClassFromString(@"NSJSONSerialization"))
{
NSError *error = nil;
id object = [NSJSONSerialization
JSONObjectWithData:returnedData
options:0@
error:&error];
if(error == nil
&& [object isKindOfClass:[NSDictionary class]])
{
NSDictionary *results = object;
[mapView updatePlaceData:[results valueForKeyPath:@"locale.en"]];
}
}
}
Visioglobe® 2015-2020