Venue
public class Venue
extension Venue: NativeBase
extension Venue: Hashable
Controls the VenueModel inside the VenueMap object.
The venue controls the selection of the VenueDrawing and the VenueLevel
of the VenueModel. It provides the possibility to customize styles for the VenueGeometry.
Objects of this class can only be created using methods
VenueMap.addVenueAsync(String, VenueLoadErrorHandler) and VenueMap.selectVenueAsync(String, VenueLoadErrorHandler).
-
The
VenueModelcontrolled by this object. It can be used to get theVenueModelbelonging to this object, like a building or a complex of buildings.Declaration
Swift
public var venueModel: VenueModel { get } -
The
VenueStyleassociated with theVenueModelcontrolled by this object. It can be used to get the style of the venue. Contains the information about the geometry and label styles available for the venue.Declaration
Swift
public var venueStyle: VenueStyle { get } -
The selected drawing. Only the selected drawing will be visible as active on the map. All others will be hidden or displayed without details, depending on the implementation of the renderer.
Declaration
Swift
public var selectedDrawing: VenueDrawing { get set } -
The selected level. Only the selected level will be visible as active on the map. All others will be hidden or displayed without details, depending on a renderer implementation. If the level doesn’t belong to the currently selected drawing, it can not be selected.
Declaration
Swift
public var selectedLevel: VenueLevel { get set } -
The Z index value of the
VenueLevelselected. Z index 0 represents the ground level, negative values represent underground levels, positive values - levels above the ground. Z index can also be taken fromVenueLevel.zIndex.Declaration
Swift
public var selectedLevelZIndex: Int32 { get set } -
The index of the
VenueLevelselected from the level array of theVenueDrawing. Unlike the Z index, it can’t have a negative value.Declaration
Swift
public var selectedLevelIndex: Int32 { get set } -
Returns true if topology is visible. It can be used to check the status of topology visibility.
Declaration
Swift
public var isTopologyVisible: Bool { get set } -
Sets a custom style for geometries and related labels.
Declaration
Swift
public func setCustomStyle(geometries: [VenueGeometry], style: VenueGeometryStyle?, labelStyle: VenueLabelStyle?)Parameters
geometriesThe list of geometries to apply the new style.
styleThe style for geometries, or
nilto reset the style to default.labelStyleThe style for geometry labels, or
nilto reset the label style to default. -
Sets a custom style for topologies.
Declaration
Swift
public func setCustomStyle(topologies: [VenueTopology], style: VenueGeometryStyle?)Parameters
topologiesThe list of topologies to apply the new style.
styleThe style for geometries, or
nilto reset the style to default. -
Sets a custom style for crosswalk.
Declaration
Swift
public func setCustomStyleToCrosswalk(crosswalks: [Crosswalk], style: VenueGeometryStyle?)Parameters
crosswalksThe list of crosswalk to apply the new style.
styleThe style for geometries, or
nilto reset the style to default.