GeoJSONSourceData
public enum GeoJSONSourceData : Codable
Captures potential values of the data
property of a GeoJSONSource
-
The
data
property can be a urlDeclaration
Swift
case url(URL)
-
The
data
property can be a featureDeclaration
Swift
case feature(Feature)
-
The
data
property can be a feature collectionDeclaration
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