VMDFileCollection
@interface VMDFileCollection : NSObject
A collection of venue map data files
Since
1.1-
The VMD XML file
Declaration
Swift
@property (readwrite, strong, nonatomic) id<VMDFile> mapXmlFile; -
The VMD GeoJSON file
Declaration
Swift
@property (readwrite, strong, nonatomic) id<VMDFile> mapGeojsonFile; -
The VMD custom map info json file
Declaration
Swift
@property (readwrite, strong, nonatomic) id<VMDFile> customMapInfoJsonFile; -
Zip file contiaing other map files
Declaration
Swift
@property (readwrite, strong, nonatomic) id<VMDFile> mapZipFile; -
Legacy
Since
1.3Declaration
Swift
@property (readwrite, strong, nonatomic) id<VMDFile> sitemapXmlFile; -
Legacy
Since
1.3Declaration
Swift
@property (readwrite, strong, nonatomic) NSDictionary<NSString *, id<VMDFile>> *buildingXmlFiles;
-
Create file collection with individual xml, geojson, and custom map info
Declaration
Swift
- (instancetype)initWithMapXmlFile:(id<VMDFile>)mapXmlFile mapGeojsonFile:(id<VMDFile>)mapGeojsonFile customMapInfoJsonFile:(id<VMDFile>)customMapInfoJsonFile;Parameters
mapXmlFilexml file
mapGeojsonFilegeojson file
customMapInfoJsonFilecustom map info file
Return Value
a file collection
-
Create file colleciton with XML and geojson only
Declaration
Swift
- (instancetype)initWithMapXmlFile:(id<VMDFile>)mapXmlFile mapGeojsonFile:(id<VMDFile>)mapGeojsonFile;Parameters
mapXmlFilethe xml file
mapGeojsonFilethe geojson file
Return Value
a file collection
-
Create file collection using root directory containing VMD map files. The names of the files are expected to be:
- map.xml
- map.geojson
customMapInfo.json
Declaration
Swift
- (instancetype)initWithBaseDirectory:(NSString *)baseDirectory;Parameters
baseDirectorythe root directory
Return Value
a file collection
-
Create file collection using a root URL that can be used to build URLs for other VMD files. The names of the files are expected to be:
- map.xml
- map.geojson
customMapInfo.json
Declaration
Swift
- (instancetype)initWithBaseUrl:(NSURL *)baseUrl;Parameters
baseUrlthe base url
Return Value
a file collection
-
Create file colleciton using a zip file containing other VMD files. The names of the files are expecte to be:
- map.xml
- map.geojson
customMapInfo.json
Declaration
Swift
- (instancetype)initWithBaseZipFile:(id<VMDFile>)mapZipFile;Parameters
mapZipFilethe zip file
Return Value
a file collection
-
Unzip vmd files from zip file to the specified path
Declaration
Swift
- (BOOL)unzipFilesAtPath:(NSString *)zipPath;Parameters
zipPaththe location to unzip files to
VMDFileCollection Class Reference