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 VenueModel controlled by this object.

    Declaration

    Swift

    public var venueModel: VenueModel { get }
  • The VenueStyle associated with the VenueModel controlled by this object.

    Declaration

    Swift

    public var venueStyle: VenueStyle { get }
  • The selected drawing.

    Declaration

    Swift

    public var selectedDrawing: VenueDrawing { get set }
  • The selected level.

    Declaration

    Swift

    public var selectedLevel: VenueLevel { get set }
  • The Z index value of the level to select.

    Declaration

    Swift

    public var selectedLevelZIndex: Int32 { get set }
  • The index of the level to select.

    Declaration

    Swift

    public var selectedLevelIndex: Int32 { get set }
  • Sets if topologies should be visible

    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

    geometries

    The list of geometries to apply the new style.

    style

    The style for geometries, or nil to reset the style to default.

    labelStyle

    The style for geometry labels, or nil to reset the label style to default.

  • Sets a custom style for topologies.

    Declaration

    Swift

    public func setCustomStyle(topologies: [VenueTopology], style: VenueGeometryStyle?)

    Parameters

    topologies

    The list of topologies to apply the new style.

    style

    The style for geometries, or nil to reset the style to default.