Feature

public struct Feature

Feature

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Create a new Feature

    Declaration

    Swift

    public init(type: String, properties: [String : Any]?, geometry: Geometry?, id: String, bbox: [Double])

    Parameters

    type

    Feature type.

    properties

    Properties object.

    geometry

    Object representing geometry.

    id

    ID of the feature.

Public

  • Feature type.

    Declaration

    Swift

    public let type: String
  • Properties object.

    Declaration

    Swift

    public let properties: [String : Any]?
  • Object representing geometry.

    Declaration

    Swift

    public let geometry: Geometry?
  • id

    ID of the feature.

    Declaration

    Swift

    public let id: String
  • Bounding box

    Declaration

    Swift

    public let bbox: [Double]