GeoJSONSourceData

Constructors

Link copied to clipboard
open fun GeoJSONSourceData(@NonNull value: Geometry)
Create a variant from Geometry.
Link copied to clipboard
open fun GeoJSONSourceData(@NonNull value: Feature)
Create a variant from Feature.
Link copied to clipboard
open fun GeoJSONSourceData(@NonNull value: List<Feature>)
Create a variant from List.
Link copied to clipboard
open fun GeoJSONSourceData(@NonNull value: String)
Create a variant from String.

Types

Link copied to clipboard
enum Type
Type information of the variant's content

Functions

Link copied to clipboard
open fun getFeature(): Feature
Get content with type Feature from the variant.
Link copied to clipboard
open fun getGeometry(): Geometry
Get content with type Geometry from the variant.
Link copied to clipboard
open fun getList(): List<Feature>
Get content with type Listfrom the variant.
Link copied to clipboard
Get content with type String from the variant.
Link copied to clipboard
Get type info enum of the variant.
Link copied to clipboard
open fun isFeature(): Boolean
Check if the content of variant has type Feature.
Link copied to clipboard
open fun isGeometry(): Boolean
Check if the content of variant has type Geometry.
Link copied to clipboard
open fun isList(): Boolean
Check if the content of variant has type List.
Link copied to clipboard
open fun isString(): Boolean
Check if the content of variant has type String.
Link copied to clipboard
open fun valueOf(@NonNull value: Feature): GeoJSONSourceData
Create a variant from Feature.
open fun valueOf(@NonNull value: Geometry): GeoJSONSourceData
Create a variant from Geometry.
Create a variant from String.
open fun valueOf(@NonNull value: List<Feature>): GeoJSONSourceData
Create a variant from List.