Base type for layer types. More...
Import Statement | import Esri. |
Since | Esri. |
Inherits | |
Inherited By | Annotation |
Properties
- attribution : string
- description : string
- error : Error
- fullExtent : Envelope
- identifyEnabled : bool
- item : ArcGISItem
- layerId : string
- layerType : Enums.LayerType
- legendInfos : LegendInfoListModel
- loadError : Error
- loadStatus : Enums.LoadStatus
- maxScale : double
- minScale : double
- name : string
- opacity : real
- spatialReference : SpatialReference
- subLayerContents : list<LayerContent>
Signals
- attributionChanged()
- descriptionChanged()
- fullExtentChanged()
- identifyEnabledChanged()
- itemChanged()
- layerIdChanged()
- loadErrorChanged()
- loadStatusChanged()
- maxScaleChanged()
- minScaleChanged()
- opacityChanged()
- spatialReferenceChanged()
Methods
- void cancelLoad()
- bool isVisibleAtScale(double scale)
- void load()
- void retryLoad()
Detailed Description
Note: You cannot declare or create a component of this type in QML code.
Layer is the base class for all layer types. A layer is a representation of geographic data portrayed using symbols and text labels. Multiple layers can be 'stacked' to enhance the information displayed. Layers are displayed in a Map inside a MapView control. Layers are drawn bottom-to-top, so the first layer in a map's layer collection is drawn first (on the bottom) and each subsequent layer is drawn on top of it.
This base type contains methods to call on derived layer types to change extent, draw, and so on.
Layer is the base types for many types of layers. Each layer type is designed for a certain type of data source, display characteristics or behavior.
Layer is the base type for the following layer types.
Layer type | 2D/3D | Time-aware | Online/offline | Sources |
---|---|---|---|---|
Annotation | 2 | No | Both | ArcGI |
ArcGIS | Both | Yes | Online | ArcGI |
ArcGIS | 3 | No | Both | Scene service or scene package |
ArcGIS | Both | No | ArcGI | |
ArcGIS | 2 | No | Both | ArcGI |
Bing | Both | No | Online | Bing maps |
Enc | 2 | No | Offline | EN |
Feature | Both | No | Both | Portal item, web map, feature set / query result |
Feature | Both | Yes | Both | ArcGI |
Group | Both | No | Both | Other layers and group layers |
Kml | Both | Yes | Both | KM |
Integrated | 3 | No | Both | Scene later package (.slpk) |
Mobile | 2 | No | Offline | Mobile map package (.mmpk) |
Open | Both | No | Online | Open |
Point | 3 | No | Both | Portal item, scene layer package (.slpk) |
Raster | Both | Yes | Both | Geo |
Subtype | 2 | No | Both | ArcGI |
Web | Both | No | Online | Web tile service |
Wms | Both | Yes | Online | WM |
Wmts | Both | No | Online | WMT |
See also Cancelable, LayerContent, and Loadable.
Property Documentation
The description of the Layer.
For service layers, the description is defined by the service when the layer initializes.
full |
Returns the full extent of the layer if available (read-only).
item : ArcGIS |
The item used to initialize the layer (read-only).
The layer's ID specified in the web map JSON.
See also Layer::item.
Returns the Enums.LayerType of the Layer (read-only).
See also Enums.LayerType.
legend |
See also LayerContent.
load |
Returns the load error (read-only).
Note: load errors are also reported on the error
property and emit the errorChanged
signal.
See also Loadable.
The Enums.LoadStatus of the Layer.
See also Loadable and Enums.LoadStatus.
Gets the maximum scale at which the layer displays.
For service layers, this is defined by the service.
Gets the minimum scale at which the layer displays.
For service layers, this is defined by the service.
The name of the layer.
See also LayerContent.
The opacity of the layer between 0.0 and 1.0.
0.0 is transparent and 1.0 is solid or opaque.
spatial |
Returns the spatial reference of the Layer (read-only).
sub |
See also LayerContent.
Signal Documentation
Emitted when the attribution property changes.
Note: The corresponding handler is onAttributionChanged
.
Emitted when the description property changes.
Note: The corresponding handler is onDescriptionChanged
.
Emitted when the fullExtent property changes.
Note: The corresponding handler is onFullExtentChanged
.
Emitted when the identifyEnabled property changes.
Note: The corresponding handler is onIdentifyEnabledChanged
.
Emitted when the item property changes.
Note: The corresponding handler is onItemChanged
.
Emitted when the layerId property changes.
Note: The corresponding handler is onLayerIdChanged
.
Emitted when the loadStatus property changes.
Note: The corresponding handler is onLoadStatusChanged
.
See also Loadable.
Emitted when the maxScale property changes.
Note: The corresponding handler is onMaxScaleChanged
.
Emitted when the minScale property changes.
Note: The corresponding handler is onMinScaleChanged
.
Emitted when the opacity property changes.
Note: The corresponding handler is onOpacityChanged
.
Emitted when the spatialReference property changes.
Note: The corresponding handler is onSpatialReferenceChanged
.
Method Documentation
See also Loadable.
Returns whether this layer would normally be visible when zoomed to the specified scale.
See also Loadable.
See also Loadable.