GeoJSONSourceData

public enum GeoJSONSourceData : Codable

Captures potential values of the data property of a GeoJSONSource

  • The data property can be a url

    Declaration

    Swift

    case url(URL)
  • The data property can be a feature

    Declaration

    Swift

    case feature(Feature)
  • The data property can be a feature collection

    Declaration

    Swift

    case featureCollection(FeatureCollection)
  • The data property can be a geometry with no associated properties.

    Declaration

    Swift

    case geometry(Geometry)
  • Empty data to be used for initialization

    Declaration

    Swift

    case empty
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws