VenueDrawing

public class VenueDrawing
extension VenueDrawing: NativeBase
extension VenueDrawing: Hashable

Represents a drawing inside the VenueModel. The drawing can be a separate building in a complex of buildings, or show a different view of a venue. For example, in an airport, one drawing can be used as an overview of all buildings in this venue, while other drawings contains details for each terminal in this airport.

  • Undocumented

    Declaration

    Swift

    public typealias GeometryArray = [VenueGeometry]
  • Undocumented

    Declaration

    Swift

    public typealias StringToPropertyMap = [String : Property]
  • Undocumented

    Declaration

    Swift

    public typealias LevelArray = [VenueLevel]
  • Undocumented

    Declaration

    Swift

    public typealias StringToGeometryArrayMap = [String : VenueDrawing.GeometryArray]
  • Undocumented

    Declaration

    Swift

    public typealias DoubleArray = [Double]
  • Undocumented

    Declaration

    Swift

    public typealias TopologyArray = [VenueTopology]
  • The id of the drawing. This describes the identifier for drawing.

    Declaration

    Swift

    public var identifier: String { get }
  • True if this is the root drawing and false otherwise. This can be used to check if this is top level drawing in venue.

    Declaration

    Swift

    public var isIsRoot: Bool { get }
  • The parent venue model. It can be used to get the VenueModel where this Drawing belong.

    Declaration

    Swift

    public var venueModel: VenueModel { get }
  • The array with Level objects. This describes for which all level this drawing belongs.

    Declaration

    Swift

    public var levels: VenueDrawing.LevelArray { get }
  • The Geographic coordinates of the center of the drawing. It can be used to get center coordinates of drawing.

    Declaration

    Swift

    public var center: GeoCoordinates { get }
  • The GeoBox of the bounding area of the drawing. This is used to check if at certain zoom level and inside view this GeoBox belongs, then need to render.

    Declaration

    Swift

    public var boundingBox: GeoBox { get }
  • The key-value pairs of properties. This can be used to get different properties like name belonging to Drawing.

    Declaration

    Swift

    public var properties: VenueDrawing.StringToPropertyMap { get }
  • The geometries ordered by the name. This can be used to search geometries by name.

    Declaration

    Swift

    public var geometriesByName: VenueDrawing.GeometryArray { get }
  • The map from the icon names to the geometries in the drawing. This can be used to search the geometries by icon names.

    Declaration

    Swift

    public var geometriesByIconNames: VenueDrawing.StringToGeometryArrayMap { get }
  • The list of topologies of the drawing. This can be used to check for which all topologies are realted to Drawing.

    Declaration

    Swift

    public var topologies: VenueDrawing.TopologyArray { get }
  • Gets a geometry by an id.

    Declaration

    Swift

    public func getGeometryById(geometryId: String) -> VenueGeometry?

    Parameters

    geometryId

    The id of the geometry.

    Return Value

    The geometry with the given id or nil.

  • Gets a geometry by the VenueGeometry.InternalAddress.

    Declaration

    Swift

    public func getGeometryByAddress(geometryAddress: String) -> VenueGeometry?

    Parameters

    geometryAddress

    The internal address as a String.

    Return Value

    The geometry with the given address or nil.

  • Gets filtered geometries in an ascending order.

    Declaration

    Swift

    public func filterGeometry(filter: String, filterType: VenueGeometryFilterType) -> VenueDrawing.GeometryArray

    Parameters

    filter

    The filter string.

    filterType

    The filter type.

    Return Value

    The list of the filtered geometries or an empty list.