Visioglobe Developer SiteVisioglobe Developer SiteVisioglobe Developer SiteVisioglobe Developer Site
  • PRODUCTS
    • VISIO MOVE ESSENTIAL
    • VISIO WEB
    • VISIO MAP EDITOR
  • BLOG
  • Q&A FORUM
  • VISIOGLOBE.COM
  • Log in
  • Questions
  • Unanswered

Place name not appearing within map after calling setPlaceID:data:

0

Hello,

There are no place names embedded in the map bundle and I call setPlaceID:data: however the place name is not being displayed in the map.

Any advice?

Jon

Category: visiomove Tags: VisioMoveEssential asked January 30, 2018
link
Jon Bryant
562

1 Answer

0
UPDATE
Since v1.10 of VisioMove Essential, this is no longer an issue.

Hello,
There is an issue within the VisioMoveEssential SDK (Android and iOS) when trying to use setPlaceID:data: on a place ID which hasn’t been assigned already a name directly from the map bundle.
The best way to resolve this issue is to change the way the place names are updated.  This change will improve the performance of your application.
Solution
Instead of using the following methods to update the place names:
  • addPlaceID:imageURL:data:position: and
  • setPlaceID:data:
I propose to use the following method:
  • updatePlaceData:
From within the map listener notification:
  • mapReadyForPlaceUpdate:
To be notified of this listener, you should register the view controller as a map listener:
– (void)viewDidLoad {
    [super viewDidLoad];
    …    
    self.mapView.mapListener = self;
    [self.mapView loadMap];
}
Then in the view controller class:
/**
 * VisioMove Essential calls the below method while it’s loading the map. We
 * can update the place data that appears within the map here.  
 *
 * In this example we read the place data from a local json file.  In reality, 
 * the data would most likely be downloaded from a remote webservice to ensure
 * the most up to date information.
 */
-(void) mapReadyForPlaceUpdate:(VMEMapView *)mapView
{
    …    
}
There’s an example of this already in the ContentMapViewController.m.
Regards,
Jon
link
Jon Bryant
562

  • PRODUCTS
    • VISIO MOVE ESSENTIAL
    • VISIO WEB
    • VISIO MAP EDITOR
  • BLOG
  • Q&A FORUM
  • VISIOGLOBE.COM
  • Log in
Visioglobe Developer Site