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 VenueModel controlled by this object. It can be used to get the VenueModel belonging to this object, like a building or a complex of buildings.

    Declaration

    Swift

    public var venueModel: VenueModel { get }
  • The VenueStyle associated with the VenueModel controlled 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 VenueLevel selected. Z index 0 represents the ground level, negative values represent underground levels, positive values - levels above the ground. Z index can also be taken from VenueLevel.zIndex.

    Declaration

    Swift

    public var selectedLevelZIndex: Int32 { get set }
  • The index of the VenueLevel selected from the level array of the VenueDrawing. 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

    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.

  • Sets a custom style for crosswalk.

    Declaration

    Swift

    public func setCustomStyleToCrosswalk(crosswalks: [Crosswalk], style: VenueGeometryStyle?)

    Parameters

    crosswalks

    The list of crosswalk to apply the new style.

    style

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