ArcGISMapImageSublayer QML Type

A sublayer of an ArcGISMapImageLayer. More...

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

ArcGISSublayer

Properties

Signals

Detailed Description

ArcGISMapImageLayer displays maps from an ArcGIS map server. Each layer in the underlying map service is represented by an ArcGISSublayer. Sublayers can be accessed from the ArcGISMapImageLayer as ArcGISMapImageSublayer. You can control the visibility and symbols of sublayers and filter data with layer definition expressions.

You can get this object from ArcGISMapImageLayer::mapImageSublayers after the map image layer is loaded, or you can get a collection of handles from another map image sublayer by using ArcGISSublayer::sublayers. The sublayer ID is the index number of the map layer that is listed in the ArcGIS REST Services Directory documentation for the service.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

TypeDefault Property
Rendererrenderer (since Esri.ArcGISRuntime 100.1)
SublayerSourcesource (since Esri.ArcGISRuntime 100.1)
LabelDefinitionlabelDefinitions (since Esri.ArcGISRuntime 100.1) (appends to model)

See also Cancelable and LayerContent.

Property Documentation

defaultVisibility : bool

Returns whether the sublayer is visible by default (read-only).

This property was introduced in Esri.ArcGISRuntime 100.1.


definitionExpression : string

The sublayer's definition expression.

The definition expression string uses the SQL-92 WHERE clause syntax. Be sure to escape special characters in the expression string as required for your platform. The DATE keyword expects the date format yyyy-mm-dd and the TIMESTAMP keyword expects the time stamp format yyyy-mm-dd hh:mm:ss. See the ArcGIS Blog article Querying Feature Services Date-Time Queries for more information.

This property was introduced in Esri.ArcGISRuntime 100.1.


[default] labelDefinitions : LabelDefinitionListModel

Returns the list model of label definitions applied to the layer (read-only).


labelsEnabled : bool

Whether the sublayer's labels are displayed.

This property was introduced in Esri.ArcGISRuntime 100.1.


maxScale : double

The maximum scale at which the sublayer displays.

This property was introduced in Esri.ArcGISRuntime 100.1.


minScale : double

The minimum scale at which the sublayer displays.

This property was introduced in Esri.ArcGISRuntime 100.1.


name : string

The name of the sublayer.


opacity : real

The sublayer's opacity.

This property was introduced in Esri.ArcGISRuntime 100.1.


[default] renderer : Renderer

The renderer specifying how the features should be symbolized.

This property was introduced in Esri.ArcGISRuntime 100.1.


scaleSymbols : bool

Whether the sublayer renders its symbols based on scale.

A value of false means the symbols stay the same size in screen units regardless of the map scale.

The default value is false.

This property was introduced in Esri.ArcGISRuntime 100.1.


[default] source : SublayerSource

The sublayer source.

This property can be set only when instantiating this type.

This property was introduced in Esri.ArcGISRuntime 100.1.


sublayerId : string

The sublayer ID.

This is the ID (or index number) of map layer that is listed in the ArcGIS REST Services Directory documentation for the service.

The sublayerId can only be set during instantiation of an ArcGISMapImageSublayer. Once set, the ArcGISMapImageSublayer can be given to an ArcGISMapImageLayer before the layer is loaded. This will result in the ArcGISMapImageLayer containing and rendering just the specified sublayers after loaded.

Note: The underlying Runtime property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

Note: sublayerId and sublayerIdAsInt can be used interchangeably. Both reference the same underlying Runtime property.

This property was introduced in Esri.ArcGISRuntime 100.1.


sublayerIdAsInt : int

The same as sublayerId but represented as an integer type.

Note: The underlying Runtime property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

Note: sublayerIdAsInt and sublayerId can be used interchangeably. Both reference the same underlying Runtime property.

This property was introduced in Esri.ArcGISRuntime 100.3.


The sublayer's feature table.

This only applies to sublayers of type "Feature layer" or "Table". This method returns null if the sublayer has not been loaded.

This property was introduced in Esri.ArcGISRuntime 100.3.


Signal Documentation

sourceChanged()

Emitted when the source property changes.

Note: The corresponding handler is onSourceChanged.

This signal was introduced in Esri.ArcGISRuntime 100.1.


tableChanged()

Emitted when the table property changes.

Note: The corresponding handler is onTableChanged.

This signal was introduced in Esri.ArcGISRuntime 100.3.


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