LayerContent QML Type

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

Import Statement: import Esri.ArcGISRuntime 100.15
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

Allows you to interrogate the properties of a sublayer within an annotation layer and to change the visibility of the sublayer

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

Displays data from a ArcGIS Map service, by using pre-generated tiles

ArcGISTiledSublayer

A sublayer of an ArcGISTiledLayer

ArcGISVectorTiledLayer

Displays data from an ArcGIS vector tiled data source

BingMapsLayer

A Bing Maps layer displays map content from a Bing Maps web service, providing access to static map tiles and imagery metadata

EncLayer

A layer that displays 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 base type for layers that display cached maps

KmlLayer

A layer that can visualize KML data

Layer

Base type for layer types

MobileBasemapLayer

A layer that can display the basemap layer of a map from 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

SubtypeSublayer

A sublayer that allows custom rendering for features of a particular subtype

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 layer that requests images from a tiled image server based on a URL template

WmsLayer

Defines an Open Geospatial Consortium (OGC) Web Map 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.

Note: The corresponding handler is onAutoFetchLegendInfosChanged.


nameChanged()

Emitted when the name property changes.

Note: The corresponding handler is onNameChanged.


showInLegendChanged()

Emitted when the showInLegend property changes.

Note: The corresponding handler is onShowInLegendChanged.


subLayerContentsChanged()

Emitted when the subLayerContents property changes.

Note: The corresponding handler is onSubLayerContentsChanged.


visibleChanged()

Emitted when the visible property changes.

Note: The corresponding handler is onVisibleChanged.


Method Documentation

bool cancelTask(string taskId)

Cancel the task with the ID taskId.

Returns false if the task cannot be canceled or there is no task with the specified id taskId.

See also Cancelable.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.