VMVenueStyle
@objcMembers
open class VMVenueStyle : NSObject
Class for styling a venue map
Since
1.1-
Default style id
Declaration
Swift
public static let DEFAULT_STYLE_ID: String -
Style spec version
Since
1.2Declaration
Swift
public static let CURRENT_STYLE_SPEC_VERSION: Float -
Since
1.2Declaration
Swift
public static let VERSION_1_0: Float -
Since
1.2Declaration
Swift
public static let VERSION_1_1: Float -
Since
2.0Declaration
Swift
public static let VERSION_1_2: Float -
List of supported versions
Since
2.0Declaration
Swift
public static let SUPPORTED_STYLE_SPEC_VERSIONS: [Float] -
Unique identifier for this style
Declaration
Swift
public var id: String -
Common name for the style
Declaration
Swift
public var name: String -
Spec version that this style adheres to
Since
1.2Declaration
Swift
public var version: Float -
Venue identifier that this style applies to
Declaration
Swift
public var venueId: String -
custom map layer styles
Since
1.2Declaration
Swift
public var layerStyles: [VMVenueLayerStyle]
-
Initializes a new style for the given venue with the given id
Declaration
Swift
public init(id: String, venueId: String)Parameters
idthe style id (should be unique per venue)
venueIdthe venue id
-
Initializes a new style for the given venue with the given configuration
Declaration
Swift
public convenience init(config cfgPath: URL, venueId: String)Parameters
cfgPaththe absolute path to a map style config file
venueIdthe venue id
-
Initializes a new style with the given configuration
Since
1.2Declaration
Swift
public convenience init(config cfgPath: URL)Parameters
cfgPaththe absolute path to the map style config file
-
Find a style layer from the config matching the id pattern
Since
1.2Declaration
Swift
public func findStyleLayerWithId(_ id: String) -> VMVenueLayerStyle?Parameters
idthe id
Return Value
the matching style, if any
-
Find a style layer for the given building and map layer id
Since
1.2Declaration
Swift
public func findStyleLayerForBuilding(_ building: VMMSBaseBuilding?, _ mapLayerId: String) -> VMVenueLayerStyle?Parameters
buildingthe building
mapLayerIdthe layer id
Return Value
the matching layer style, or nil
-
Find a style layer for the given floor and map layer id
Since
1.2Declaration
Swift
public func findStyleLayerForFloor(_ floor: VMMSBaseFloor?, _ mapLayerId: String) -> VMVenueLayerStyle?Parameters
floorthe floor
mapLayerIdthe layer id
Return Value
the matching layer style, or nil
-
Find venue style layer definition for matching building/floor combination
Since
1.2Declaration
Swift
public func findStyleLayerForBuildingAndFloor(_ building: VMMSBaseBuilding?, _ floor: VMMSBaseFloor?, _ mapLayerId: String) -> VMVenueLayerStyle?Parameters
buildingthe building
floorthe floor
mapLayerIdthe corresponding map style layer
Return Value
the matching layer style, or nil
VMVenueStyle Class Reference