GeoJSONSourceData

open class GeoJSONSourceData

Constructors

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

Types

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

Functions

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