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