Load Venue Map Data

To start with, identify the base url where your VMD assets are deployed. This can be a remote url, or a local file path. Note: If this is a local file path, add the VMD assets to your application and refer to that folder using file paths, instead of http urls.

let fileCollection = VMDFileCollection(basePath: "https://myserver.com/[VENUE_ID]/venue_map_[VENUE_ID]", andVenueId: "VENUE_ID")
let parser = VMDParser(withFileCollection: fileCollection, delegate: self)
parser.parse()

After you’ve initiated the loading, register your VMDParserDelegate and wait for the didFinishLoadingVenueMapData callback to be invoked. At this point you can proceed to Display a venue map.

public func didFinishLoadingVenueMapData(_ vmd: VMMSMap) {
    //display venue map
}