FeatureCollection

class FeatureCollection : JsonSerializable, Loadable

An object that represents a feature collection.

Constructors

Link copied to clipboard
fun FeatureCollection()

Create a feature collection object.

Link copied to clipboard
fun FeatureCollection(item: Item)

Creates a feature collection object from an item.

Link copied to clipboard
fun FeatureCollection(featureCollectionTables: Iterable<FeatureCollectionTable>)

Creates a feature collection object from a set of feature collection tables.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.

Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Properties

Link copied to clipboard
var item: Item?
Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Link copied to clipboard
val tables: MutableList<FeatureCollectionTable>
Link copied to clipboard
open override val unknownJson: Map<String, Any>

Unknown data from the source JSON. Unknown JSON is a dictionary of values that was in the source JSON but was unparsed by this API.

Link copied to clipboard
open override val unsupportedJson: Map<String, Any>

Unsupported data from the source JSON. Unsupported JSON is a dictionary of values that are supported by web maps, but not exposed through this API.