AnnotatedFeature

open class AnnotatedFeature

Represents a variant that can store either a GeoJSON geometry or an annotated layer feature.

Constructors

Link copied to clipboard
open fun AnnotatedFeature(@NonNull value: Geometry)
Create a variant from Geometry.
Link copied to clipboard
Create a variant from AnnotatedLayerFeature.

Types

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

Functions

Link copied to clipboard
Get content with type AnnotatedLayerFeature from the variant.
Link copied to clipboard
open fun getGeometry(): Geometry
Get content with type Geometry from the variant.
Link copied to clipboard
Get type info enum of the variant.
Link copied to clipboard
Check if the content of variant has type AnnotatedLayerFeature.
Link copied to clipboard
open fun isGeometry(): Boolean
Check if the content of variant has type Geometry.
Link copied to clipboard
open fun valueOf(@NonNull value: Geometry): AnnotatedFeature
Create a variant from Geometry.
Create a variant from AnnotatedLayerFeature.