Polygon

public class Polygon : Navigatable, Focusable, Deserializable
extension Polygon: Equatable
extension Polygon: Hashable

The polygon class represents the 3D shape of a Location on a Map.

A Location would have zero or more Polygons associated with it. For example, a Washroom Location might have a few Polygons spread throughout the Venue for each one that exists, but a single store might just have one presence, and therefor one Polygon. Some locations just have a single point and only have Coordinates.

  • Default color for this polygon

    Declaration

    Swift

    public var defaultColor: UIColor { get }
  • Venue that this polygon belongs to

    Declaration

    Swift

    public weak var venue: Venue? { get set }
  • map

    Map that this polygon belongs to

    Declaration

    Swift

    public var map: Map { get }
  • A collection of locations that this polygon is attached to

    Declaration

    Swift

    public internal(set) var locations: [Location] { get }
  • A collection of entrance coordinates to this polygon, for wayfinding

    Declaration

    Swift

    public var entrances: [Coordinate] { get }
  • A collection of coordinate nodes for this polygon, for wayfinding

    Declaration

    Swift

    public var navigatableCoordinates: [Coordinate] { get }
  • the height of the Polygon calculated based on the polygons geometry

    Declaration

    Swift

    public var geometryHeight: Float { get }
  • After deserialization the structure has to be linked before it is useful

    Declaration

    Swift

    public func link(with venue: Venue)
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)