Map

class Map

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.

Constructors

Link copied to clipboard
constructor(delegate: MapDelegate)
Designated constructor.

Functions

Link copied to clipboard
open fun addBuilding(building: MapBuilding)
Adds a MapBuilding instance to a dictionary.
Link copied to clipboard
open fun addNeighborForWaypoints(waypointId: String, neighborId: String)
Adds a waypoint as a neighbor.
Link copied to clipboard
open fun addNeighborForWaypointWithId(waypointId: String, neighbor: Waypoint)
Adds a waypoint as a neighbor.
Link copied to clipboard
Adds a Outdoor MapBuilding instance to a dictionary.
Link copied to clipboard
Creates turn by turn text directions for a given waypath using the default configurations.
Creates turn by turn text directions for a given waypath.
open fun createTurnByTurnDirectionsForWaypath(path: Waypath, customMapInfo: CustomMapInfo, options: TurnByTurnDirectionOptions, wayfindingDelegate: WayfindingDelegate)
Creates turn by turn text directions asynchronously for a given waypath.
Link copied to clipboard
open fun findClosestOutdoorWaypoint(location: LatLng, floorKey: String): Waypoint
Finds the closest outdoor waypoint for a given location on the specified floor.
Link copied to clipboard
open fun findClosestWaypoint(location: LatLng, floorKey: String): Waypoint
Finds the closest waypoint for a given location on the specified floor.
Link copied to clipboard
Iterates through all buildings to find a floor with the given id.
Link copied to clipboard
Iterates through all outdoor buildings to find a floor with the given id.
Link copied to clipboard
Iterates through outdoor buildings and floors until it finds a waypoint with the given ID.
Link copied to clipboard
Finds shortest waypath between two waypoints using the Dijkstra algorithm.
open fun findWaypathBetweenWaypoints(start: Waypoint, end: Waypoint, options: WayfindingOptions, wayfindingDelegate: WayfindingDelegate, callback: VMDCallback)
Finds shortest waypath asynchronously between two waypoints using the Dijkstra algorithm.
Link copied to clipboard
open fun findWaypointWithId(waypointId: String): Waypoint
Iterates through buildings and floors until it finds a waypoint with the given ID.
Link copied to clipboard
open fun getBuildingWithId(buildingId: String): MapBuilding
Checks to see if a building exists for a given id and returns it if so
Link copied to clipboard
open fun getGeoJsonRawSource(matchingStringFile: String): String
Link copied to clipboard
open fun getGeoJsonString(geojsonFile: GeojsonFile): String
Link copied to clipboard
Link copied to clipboard
open fun getMapXmlFile(): String
Link copied to clipboard
Finds the connected waypoints for a given waypoint.
Link copied to clipboard
Checks to see if a outdoor building exists for a given id and returns it if so
Link copied to clipboard
Link copied to clipboard
open fun isGeolocated(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun labelWaypoints()
Labels waypoints using default configuration.
Labels waypoints with options.
Link copied to clipboard
open fun load(vmdFileCollection: VMDFileCollection): Map
open fun load(vmdFileCollection: VMDFileCollection, options: WaypointLabelOptions): Map
open fun load(vmdFileCollection: VMDFileCollection, excludeWayfinding: Boolean): Map
open fun load(vmdFileCollection: VMDFileCollection, options: WaypointLabelOptions, excludeWayfinding: Boolean): Map
Loads a vmd file and extracts all necessary data
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, callback: VMDCallback)
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, options: WaypointLabelOptions, callback: VMDCallback)
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, excludeWayfinding: Boolean, callback: VMDCallback)
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, options: WaypointLabelOptions, excludeWayfinding: Boolean, callback: VMDCallback)
Loads a vmd file ASYNCHRONOUSLY, extracts all necessary data then performs a callback to the specified delegate
Link copied to clipboard
open fun setGraph(graph: Graph)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var initialZoom: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var venueId: String
Link copied to clipboard
open var version: Double