setupMap

open fun setupMap(@NonNull vmd: Map, @NonNull venueId: String, @NonNull venueBaseURL: String)

Call this method after your receive your Map object containing data from the VMD files. This method MUST be called before interacting with the map (e.g. changing floors, finding directions, etc.). This will load all style layers, icons, labels, etc. for the floors provided. The default building &floors will be used, and default icons/fonts, styles etc.

Parameters

vmd

The Map object that contains data from the VMD file.

venueId

The ID of your venue.

venueBaseURL

The base path for all of the map tiles. It requires subfolders that are named vector_tiles and vector_common.


open fun setupMap(vmd: Map, style: VenueStyle, venueId: String, activeIndoorFloors: List<MapBuildingFloor>, activeOutdoorFloors: List<MapOutdoorBuildingFloor>, config: VMMapViewLoadConfig)

Parameters

vmd
style
venueId
activeIndoorFloors
activeOutdoorFloors
config

open fun setupMap(vmd: Map, style: VenueStyle, venueId: String, currentBuilding: Integer, currentFloor: MapBuildingFloor, currentOutdoorFloor: MapOutdoorBuildingFloor, iconBaseURL: String, fontBaseURL: String, tileBaseURL: String, vectorCommonBaseURL: String)

Deprecated

Use setupMap

Parameters

vmd

The Map object that contains data from the VMD file.

style

Your custom styling.

venueId

The ID of your venue.

currentBuilding

The initial building.

currentFloor

The initial floor.

currentOutdoorFloor

The initial outdoor floor

iconBaseURL

The base url for the icons.

fontBaseURL

The base url for the fonts.

tileBaseURL

The base url for the tiles.

vectorCommonBaseURL

The base url for the common vector tiles.


open fun setupMap(vmd: Map, style: VenueStyle, venueId: String, currentBuilding: Integer, activeIndoorFloors: List<MapBuildingFloor>, activeOutdoorFloors: List<MapOutdoorBuildingFloor>, iconBaseURL: String, fontBaseURL: String, tileBaseURL: String, vectorCommonBaseURL: String)

Deprecated

Call this method after your receive your Map object containing data from the VMD files. This method MUST be called before interacting with the map (e.g. changing floors, finding directions, etc.). This will load all style layers, icons, labels, etc. for the floors provided. It will also load the visuals that do not change with the floor (i.e. outdoor layers).

Parameters

vmd

The Map object that contains data from the VMD file.

style

Your custom styling.

venueId

The ID of your venue.

currentBuilding

The initial building.

activeIndoorFloors

The initial floor.

activeOutdoorFloors

The initial outdoor floor

iconBaseURL

The base url for the icons.

fontBaseURL

The base url for the fonts.

tileBaseURL

The base url for the tiles.

vectorCommonBaseURL

The base url for the common vector tiles.