LayerContent

interface LayerContent

An interface for building a Table of Contents. This interface is implemented by Layer, ArcGISSublayer.

Since

200.1.0

Inheritors

Properties

Link copied to clipboard

A flag indicating whether the layer content's visibility can be changed. A flag indicating whether the layer content visibility can be changed. Will return false if an error occurs.

Link copied to clipboard
abstract var isVisible: Boolean

The layer content's visibility. The layer content visibility. Will return false if an error occurs.

Link copied to clipboard
abstract val name: String

The layer content's name. The layer content name.

Link copied to clipboard
abstract var showInLegend: Boolean

A flag indicating whether the layer content participates in the legend. A flag indicating whether the layer content is shown in the legend.

Link copied to clipboard
abstract val subLayerContents: StateFlow<List<LayerContent>>

The sub layer contents of a layer content.

Functions

Link copied to clipboard
abstract suspend fun fetchLegendInfos(): Result<List<LegendInfo>>

Fetches the list of legend info.

Link copied to clipboard
abstract fun isVisibleAtScale(scale: Double): Boolean

Returns the layer content's effective visibility at the specified scale. Returns the effective layer content visibility. This effective visibility takes care of the effective visibility of the parents at the specified scale. Will return false if an error occurs.