FeatureCollection

An object that represents a feature collection.

Since

200.1.0

Constructors

Link copied to clipboard

Create a feature collection object.

Link copied to clipboard

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

Properties

Link copied to clipboard
var item: Item?

The item the feature collection has been created from. For internal use only. May be used after saving the feature collection as a new portal item.

Link copied to clipboard

The feature collection tables of a feature collection.

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Functions

Link copied to clipboard
suspend fun save(): Result<Unit>

Saves this feature collection back to the item it originated from.

Link copied to clipboard
suspend fun saveAs(portal: Portal, folder: PortalFolder?, title: String, description: String, tags: Iterable<String>, thumbnail: BitmapDrawable?): Result<Unit>

Saves this feature collection as a new feature collection item on the specified portal with the given title in the given folder.

Inherited 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.