Skip To Content ArcGIS for Developers Sign In Dashboard

LayerContent QML Type

Base type for types that support a common set of Layer functionality. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Inherited By:

AnnotationSublayer, ArcGISSublayer, Layer, and WmsSublayer

Properties

Signals

Methods

Detailed Description

Note: You cannot declare or create a component of this type in QML code.

Types that implement LayerContent

AnnotationSublayer

A sublayer of a Layer

ArcGISMapImageLayer

A layer based on a dynamic ArcGIS Map service

ArcGISMapImageSublayer

A sublayer of an ArcGISMapImageLayer

ArcGISSceneLayer

A layer that displays 3D features from a scene service

ArcGISSublayer

A sublayer of a Layer

ArcGISTiledLayer

A layer that displays ArcGIS tiled map services and cached image services

ArcGISTiledSublayer

A sublayer of an ArcGISTiledLayer

ArcGISVectorTiledLayer

A vector tiled layer

BingMapsLayer

A Bing Maps layer displays map content from a Bing Maps web service

EncLayer

A layer that can visualize ENC data

FeatureCollectionLayer

A layer that can visualize a FeatureCollection

FeatureLayer

A layer that can display features from a FeatureTable on a map

ImageAdjustmentLayer

A Layer that supports image adjustments

ImageTiledLayer

A layer that displays tiled map services and cached image services

KmlLayer

A layer that can visualize KML data

Layer

Base type for layer types

MobileBasemapLayer

A layer to display basemap contents of a mobile map package

OpenStreetMapLayer

A layer that displays OpenStreetMap map tiles

RasterLayer

A RasterLayer is used to render data from a Raster onto a Map

ServiceImageTiledLayer

A base class for all image tiled layers that fetches map tiles from a remote service

UnknownLayer

An instance of this class represents a layer whose type could not be determined

UnsupportedLayer

An instance of this class represents a layer whose type could not be determined

WebTiledLayer

A class that represents a layer that requests images from a tiled image server on the Web

WmsLayer

Defines an Open Geospatial Consortium (OGC) Web Map Tile Service (WMS) layer

WmsSublayer

A sublayer of a Layer

WmtsLayer

Defines an Open Geospatial Consortium (OGC) Web Map Tile Service (WMTS) layer

See also Cancelable.

Property Documentation

autoFetchLegendInfos : bool

Whether legend infos are automatically fetched by the layer's legend info list model.

Set to true (default is false) to have legend infos fetched automatically when the LegendInfoListModel is instantiated.


canChangeVisibility : bool

Returns whether the layer's visibility can be changed (read-only).


legendInfos : LegendInfoListModel

Returns a list model containing legend infos for the layer and any sublayers (read-only).

Note: Layers that use a DictionaryRenderer will not have any legend infos.


name : string

Returns the name of the layer (read-only).

The name is defined by the service when the layer initializes, so this property is typically used after the service layer initializes.


showInLegend : bool

Whether the layer will be shown in the legend.


subLayerContents : list<LayerContent>

The content of sublayers represented as a list of LayerContent.


visible : bool

The visibility of the layer.

Before setting this to true, check the canChangeVisibility property to determine if the visibility can be changed.

See also LayerContent::canChangeVisibility.


Signal Documentation

autoFetchLegendInfosChanged()

Emitted when the autoFetchLegendInfos property changes.


legendInfosChanged()

Emitted when the legendInfos property changes.


nameChanged()

Emitted when the name property changes.


showInLegendChanged()

Emitted when the showInLegend property changes.


subLayerContentsChanged()

Emitted when the subLayerContents property changes.


visibleChanged()

Emitted when the visible property changes.


Method Documentation

bool cancelTask(string taskId)

See also Cancelable.



Feedback on this topic?