require(["esri/layers/support/WMSSublayer"], function(WMSSublayer) { /* code goes here */ });
Class: esri/layers/support/WMSSublayer
Inheritance: WMSSublayer Accessor
Since: ArcGIS API for JavaScript 4.4

Represents a sublayer in a WMSLayer.

Constructors

new WMSSublayer(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
String

Description for the WMS sublayer.

more details
more detailsWMSSublayer
Extent

The full extent of the layer.

more details
more detailsWMSSublayer
Number

The id for the WMS sublayer.

more details
more detailsWMSSublayer
WMSLayer

The WMSLayer to which the sublayer belongs.

more details
more detailsWMSSublayer
Boolean

Indicates whether the layer will be included in the legend.

more details
more detailsWMSSublayer
String

A string url pointing to a legend image for the layer.

more details
more detailsWMSSublayer
Number

The maximum scale (most zoomed in) at which the layer is visible in the view.

more details
more detailsWMSSublayer
Number

The minimum scale (most zoomed out) at which the layer is visible in the view.

more details
more detailsWMSSublayer
String

Name of the WMS sublayer.

more details
more detailsWMSSublayer
Boolean

Indicates whether to display popups when features in the layer are clicked.

more details
more detailsWMSSublayer
Boolean

Indicates if the layer can be queried, i.e.

more details
more detailsWMSSublayer
Number[]

List of spatialReferences (WKID) derived from the CRS elements of the first layer in the GetCapabilities request.

more details
more detailsWMSSublayer
Collection<WMSSublayer>

A collection of WMSSublayers.

more details
more detailsWMSSublayer
String

The title of the WMS sublayer used to identify it in places such as the LayerList and Legend widgets.

more details
more detailsWMSSublayer
Boolean

Indicates if the layer is visible in the view.

more details
more detailsWMSSublayer

Property Details

declaredClass Stringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

description String

Description for the WMS sublayer. This defaults to the value of the Abstract property from the WMS GetCapabilities request.

fullExtent Extent

The full extent of the layer.

The id for the WMS sublayer.

layer WMSLayer

The WMSLayer to which the sublayer belongs.

legendEnabled Boolean

Indicates whether the layer will be included in the legend. When false, the layer will be excluded from the legend.

Default Value:true
legendUrl String

A string url pointing to a legend image for the layer.

maxScale Number
Since: ArcGIS API for JavaScript 4.14

The maximum scale (most zoomed in) at which the layer is visible in the view. If the map is zoomed in beyond this scale, the layer will not be visible. A value of zero means the layer does not have a maximum scale.

Default Value:0
minScale Number
Since: ArcGIS API for JavaScript 4.14

The minimum scale (most zoomed out) at which the layer is visible in the view. If the map is zoomed out beyond this scale, the layer will not be visible. A value of zero means the layer does not have a minimum scale.

Default Value:0
name String

Name of the WMS sublayer. This defaults to the value of the Name property from the WMS GetCapabilities request.

popupEnabled Boolean

Indicates whether to display popups when features in the layer are clicked.

Default Value:false
queryable Boolean

Indicates if the layer can be queried, i.e. the service supports GetFeatureInfo with either text/html or text/plain formats.

Default Value:false
spatialReferences Number[]

List of spatialReferences (WKID) derived from the CRS elements of the first layer in the GetCapabilities request.

A collection of WMSSublayers.

title String

The title of the WMS sublayer used to identify it in places such as the LayerList and Legend widgets. This defaults to the value of the Title property from the WMS GetCapabilities request.

visible Boolean

Indicates if the layer is visible in the view.

Method Overview

NameReturn TypeSummaryClass
WMSSublayer

Creates a deep clone of the WMS sublayer.

more details
more detailsWMSSublayer

Method Details

clone(){WMSSublayer}

Creates a deep clone of the WMS sublayer.

Returns:
TypeDescription
WMSSublayerA deep clone of the WMS sublayer instance that invoked this method.

API Reference search results

NameTypeModule
Loading...