VMMSMap
@interface VMMSMap
Class that loads data from VMD file, finds waypaths, and labels waypoints. This is the top level class that encapsulates all data for the venue.
Since
1.0-
Designated initializer.
Declaration
Swift
- (instancetype)initWithDelegate:(id<VMMSMapDelegate>)mapDelegate;Parameters
mapDelegateAn object that has implemented VMMSMapDelegate protocol and its required/optional methods.
Return Value
an instance of VMMSMap.
-
Loads vmd file.
Since
1.1Declaration
Swift
+ (void)loadFromCollection:(VMDFileCollection *)vmdFileCollection delegate:(id<VMMSMapDelegate>)delegate;Parameters
vmdFileCollectionA collection of VMD files
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
-
Loads vmd file
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)load:(id)absolutePath delegate:(id<VMMSMapDelegate>)delegate;Parameters
absolutePathThe absolute path of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
-
Loads vmd file.
Since
1.1Declaration
Swift
+ (void)loadFromCollection:(VMDFileCollection *)vmdFileCollection delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options;Parameters
vmdFileCollectionA collection of VMD files
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
-
Loads vmd file
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)load:(id)absolutePath delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options;Parameters
absolutePathThe absolute path of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
-
Loads vmd file
Since
1.1Declaration
Swift
+ (void)loadFromCollection:(VMDFileCollection *)vmdFileCollection delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options excludeWayfinding:(id)excludeWayfinding;Parameters
vmdFileCollectionA collection of VMD files
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)load:(id)absolutePath delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options excludeWayfinding:(id)excludeWayfinding;Parameters
absolutePathThe absolute path of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file
Since
1.1Declaration
Swift
+ (void)loadFromCollection:(VMDFileCollection *)vmdFileCollection delegate:(id<VMMSMapDelegate>)delegate excludeWayfinding:(id)excludeWayfinding;Parameters
vmdFileCollectionA collection of VMD files
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)load:(id)absolutePath delegate:(id<VMMSMapDelegate>)delegate excludeWayfinding:(id)excludeWayfinding;Parameters
absolutePathThe absolute path of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url delegate:(id<VMMSMapDelegate>)delegate;Parameters
urlThe url of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url withSession:(id)session delegate:(id<VMMSMapDelegate>)delegate;Parameters
urlThe url of the vmd file.
sessionAn NSURLSession that controls how the vmd file is retrieved.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url withSession:(id)session delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options;Parameters
urlThe url of the vmd file.
sessionAn NSURLSession that controls how the vmd file is retrieved.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options;Parameters
urlThe url of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url withSession:(id)session delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options excludeWayfinding:(id)excludeWayfinding;Parameters
urlThe url of the vmd file.
sessionAn NSURLSession that controls how the vmd file is retrieved.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url withSession:(id)session delegate:(id<VMMSMapDelegate>)delegate excludeWayfinding:(id)excludeWayfinding;Parameters
urlThe url of the vmd file.
sessionAn NSURLSession that controls how the vmd file is retrieved.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url delegate:(id<VMMSMapDelegate>)delegate excludeWayfinding:(id)excludeWayfinding;Parameters
urlThe url of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
excludeWayfindingOption to exclude parsing wayfinding data
-
Loads vmd file from a remote URL
Since
1.0Warning
Deprecated in 1.1Declaration
Swift
+ (void)loadFromURL:(id)url delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options excludeWayfinding:(id)excludeWayfinding;Parameters
urlThe url of the vmd file.
delegateAn object that implements the VMMSMapDelegate protocol and it’s required/optional methods.
optionsOptions to use for labeling waypoints.
excludeWayfindingOption to exclude parsing wayfinding data
-
Finds shortest waypath between two waypoints using the Dijkstra algorithm.
Since
1.1Declaration
Swift
- (void)findWaypathBetweenWaypointsStart:(VMMSWaypoint *)start end:(VMMSWaypoint *)end withOptions:(VMMSWayfindingOptions *)options delegate:(id<VMMSWayfindingDelegate>) wayfindingDelegate;Parameters
startThe starting waypoint.
endThe ending waypoint.
optionsOptions to use while determining waypath such as whether or not to use stairs or elevators.
wayfindingDelegatea VMMSWayfindingDelegate object to notify with the results
-
Finds shortest waypath between two waypoints using the Dijkstra algorithm.
Since
1.0Warning
Deprecated in 1.1. Use findWaypathBetweenWaypointsStart:end:withOptions:delegate instead.Declaration
Swift
- (void)findWaypathBetweenWaypointsStart:(VMMSWaypoint *)start end:(VMMSWaypoint *)end withOptions:(VMMSWayfindingOptions *)options;Parameters
startThe starting waypoint.
endThe ending waypoint.
optionsOptions to use while determining waypath such as whether or not to use stairs or elevators.
-
Adds a VMMSMapBuilding instance to a dictionary.
Declaration
Swift
- (void)addBuilding:(VMMSMapBuilding *)building;Parameters
buildingA VMMSMapBuilding
-
Adds a VMMSMapBuilding instance to a dictionary.
Since
1.1Declaration
Swift
- (void)addOutdoorBuilding:(VMMSMapOutdoorBuilding *)building;Parameters
buildingA VMMSMapOutdoorBuilding
-
Checks to see if a building exists for a given id and returns it if so
Declaration
Swift
- (VMMSMapBuilding *)getBuildingWithId:(id)uid;Parameters
uidThe id (key) for the building
Return Value
Returns nil if it doesn’t exist
-
Checks to see if outdoor exists for a given id and returns it if so
Since
1.1Declaration
Swift
- (VMMSMapOutdoorBuilding *)getOutdoorBuildingWithId:(id)uid;Parameters
uidThe id (key) for the building
Return Value
Returns nil if it doesn’t exist
-
Iterates through all buildings to find a floor with the given id. All floors will have a unique id regardless of what building they are in
Declaration
Swift
- (VMMSMapBuildingFloor *)findFloorWithId:(id)uid;Parameters
uidthe uid of the floor to find
Return Value
a VMMSMapBuildingFloor object or nil if one did not exist with that uid
-
Iterates through all buildings to find a floor with the given id. All floors will have a unique id regardless of what building they are in
Since
1.1Declaration
Swift
- (VMMSMapOutdoorBuildingFloor *)findOutdoorFloorWithId:(id)uid;Parameters
uidthe uid of the floor to find
Return Value
a VMMSMapOutdoorBuildingFloor object or nil if one did not exist with that uid
-
Creates turn by turn text directions for a given waypath.
Since
1.1Declaration
Swift
- (void)createTurnByTurnDirectionsForWaypath:(VMMSWaypath *)waypath withCustomMapInfo:(VMMSCustomMapInfo *)info andOptions: (VMMSTurnByTurnDirectionOptions *)options delegate:(id<VMMSWayfindingDelegate>) wayfindingDelegate;Parameters
waypathThe waypath to create text directions for.
infoA VMMSCustomMapInfo object that contains custom information for directions.
optionsOptions to use when creating directions.
-
Creates turn by turn text directions for a given waypath.
Since
1.0Warning
Deprecated in 1.1. Use createTurnByTurnDirectionsForWaypath:withCustomMapInfo:andOptions:delegate: instead.Declaration
Swift
- (void)createTurnByTurnDirectionsForWaypath:(VMMSWaypath *)waypath withCustomMapInfo:(VMMSCustomMapInfo *)info andOptions: (VMMSTurnByTurnDirectionOptions *)options;Parameters
waypathThe waypath to create text directions for.
infoA VMMSCustomMapInfo object that contains custom information for directions.
optionsOptions to use when creating directions.
-
Iterates through buildings and floors until it finds a waypoint with the given ID.
Declaration
Swift
- (VMMSWaypoint *)findWaypointWithId:(id)uid;Parameters
uidThe UID to look for when iterating.
Return Value
The waypoint that is found or nil if one is not found for the given ID.
-
Iterates through buildings and floors until it finds a waypoint with the given ID.
Since
1.1Declaration
Swift
- (VMMSWaypoint *)findOutdoorWaypointWithId:(id)uid;Parameters
uidThe UID to look for when iterating.
Return Value
The waypoint that is found or nil if one is not found for the given ID.
-
Finds the connected waypoints for a given waypoint.
Declaration
Swift
- (id)neighborsForWaypointWithId:(id)waypointId;Parameters
waypointIdThe waypoint to find neighbors for.
Return Value
The array of waypoints that are connected.
-
Labels waypoints.
Declaration
Swift
- (void)labelWaypoints; -
Labels waypoints with options.
Declaration
Swift
- (void)labelWaypoints:(VMMSWaypointLabelOptions *)options;Parameters
optionsOptions to use while labeling.
-
Classifies waypoints.
Declaration
Swift
- (void)classifyWaypoints:(VMMSWaypointLabelOptions *)options;Parameters
optionsOptions to use while classifying waypoints.
-
Adds a waypoint as a neighbor.
Declaration
Swift
- (void)addNeighborForWaypointWithId:(id)waypointId neighbor:(VMMSWaypoint *)neighbor;Parameters
waypointIdID of waypoint to be given a neighbor.
neighborThe neighbor waypoint.
-
Adds a waypoint as a neighbor.
Declaration
Swift
- (void)addNeighborForWaypointWithId:(id)waypointId neighborId:(id)neighborId;Parameters
waypointIdID of waypoint to be given a neighbor.
neighborIdID of neighbor waypoint.
-
Finds the closest waypoint on the given indoor floor nearest to the given location
Since
1.1Declaration
Swift
- (VMMSWaypoint *)findClosestWaypoint:(id)location onFloor:(id)floorId;Parameters
locationthe target location
floorIdthe uid of the floor to check
Return Value
the closest waypoint, or nil if nothing is close
-
Finds the closest waypoint outdoors nearest to the given location
Since
1.1Declaration
Swift
- (VMMSWaypoint *)findClosestOutdoorWaypoint:(id)location onFloor:(id)floorId;Parameters
locationthe target location
floorIdthe uid of the floor to check
Return Value
the closest waypoint, or nil if nothing is close
-
An object that implmenets the VMMSMapDelegate protocol and its required/optional methods.
Declaration
Swift
@property (readwrite, nonatomic) id<VMMSMapDelegate> delegate; -
The initial rotation of the map so that the user can adjust the map’s rotation (heading, bearing) so that text labels are upright.
Declaration
Swift
@property (assign, readwrite, nonatomic) float initialRotation; -
The center point of the venue
Declaration
Swift
@property (assign, readwrite, nonatomic) int centerPoint; -
The initial zoom that displays the entire venue
Warning
Deprecated in 1.2.1. Use initialZoomLevel instead.Declaration
Swift
@property (assign, readwrite, nonatomic) int initialZoom; -
The initial zoom that displays the entire venue
Since
1.2.1Declaration
Swift
@property (assign, readwrite, nonatomic) float initialZoomLevel; -
The id of the venue
Since
1.1Declaration
Swift
@property (nonatomic, strong) NSString *venueId -
The mode used to process the VMD
Since
1.3Declaration
Swift
@property (assign, readwrite, nonatomic) int processingMode; -
True if the map has been geolocated, false otherwise
Since
1.3Declaration
Swift
@property (assign, readwrite, nonatomic) int geolocated;
VMMSMap Class Reference