Class EsriWMSLayer

Hierarchy

  • Layer
  • BlendLayer
  • PortalLayer
  • ScaleRangeLayer
  • RefreshableLayer
    • EsriWMSLayer

Constructors

  • The WMSLayer is used to create layers based on OGC Web Map Services (WMS).

    Read more...

    Parameters

    • Optional properties: WMSLayerProperties

    Returns EsriWMSLayer

Properties

allSublayers: Collection<EsriWMSSublayer>

A flattened collection of all WMSSublayers based on the sublayers property.

Read more...

blendMode: "screen" | "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"

Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer.

Default

normal

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#blendMode)
copyright: string

Copyright information for the WMS service.

Read more...

customLayerParameters: any

Use this to append different custom parameters to the WMS map requests.

Read more...

customParameters: any

Use this to append custom parameters to all WMS requests.

Read more...

declaredClass: string
description: string

Description for the WMS layer.

Read more...

destroyed: boolean
dimensions: (TimeDimension | ElevationDimension | GenericDimension)[]

An array of time, elevation and other dimensions for the root layer.

Read more...

effect: Effect

Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#effect)
featureInfoFormat: null | "text/html" | "text/plain"

The MIME type that will be requested by popups.

Read more...

featureInfoFormats: string[]

This property lists all available MIME-types that can be used with the WMS service's GetFeatureInfo request.

Read more...

featureInfoUrl: string

The URL for the WMS GetFeatureInfo call.

Read more...

fetchFeatureInfoFunction: FetchFeatureInfoFunction

Function to override the default popup behavior of WMSLayer.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchFeatureInfoFunction)
fullExtent: EsriExtent

The full extent of the layer.

Read more...

fullExtents: EsriExtent[]

All bounding boxes defined for the layer.

Read more...

id: string

The unique ID assigned to the layer.

Read more...

imageFormat: string

The map image format (MIME type) to request.

Read more...

imageMaxHeight: number

Indicates the maximum height of the image exported by the service.

Default

2048

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxHeight)
imageMaxWidth: number

Indicates the maximum width of the image exported by the service.

Default

2048

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxWidth)
imageTransparency: boolean

Indicates whether the background of the image exported by the service is transparent.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageTransparency)
initialized: boolean
legendEnabled: boolean

Indicates whether the layer will be included in the legend.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#legendEnabled)
listMode: "show" | "hide" | "hide-children"

Indicates how the layer should display in the LayerList widget.

Default

"show"

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode)
loadError: Error

The Error object returned if an error occurred while loading.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadError)
loadStatus: "loaded" | "loading" | "not-loaded" | "failed"

Represents the status of a load operation.

Default

not-loaded

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadStatus)
loadWarnings: any[]

A list of warnings which occurred while loading.

Read more...

loaded: boolean

Indicates whether the layer's resources have loaded.

Default

false

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#loaded)
maxScale: number

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

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale)
minScale: number

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

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale)
opacity: number

The opacity of the layer.

Default

1

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#opacity)
portalItem: PortalItem

The portal item from which the layer is loaded.

Read more...

refreshInterval: number

Refresh interval of the layer in minutes.

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-RefreshableLayer.html#refreshInterval)
spatialReference: EsriSpatialReference

The spatial reference of the layer.

Read more...

spatialReferences: number[]

List of spatialReference well known ids derived from the CRS elements of the first layer in the GetCapabilities request.

Read more...

sublayers: Collection<EsriWMSSublayer>

A subset of the layer's WMSSublayers that will be displayed.

Read more...

timeExtent: TimeExtent

The layer's time extent.

Read more...

timeInfo: TimeInfo

TimeInfo provides information such as date fields that store start and end time for each feature and the fullTimeExtent for the layer.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeInfo)
timeOffset: TimeInterval

A temporary offset of the time data based on a certain TimeInterval.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeOffset)
title: string

The title of the layer used to identify it in places such as the LayerList widget.

Read more...

type: "wms"
url: string

The URL of the WMS service.

Read more...

useViewTime: boolean

Determines if the layer will update its temporal data based on the view's timeExtent.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#useViewTime)
version: string

Version of the WMS specification to use.

Read more...

visible: boolean

Indicates if the layer is visible in the View.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible)

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriWMSLayer

  • Type Parameters

    • T

    Parameters

    • handles: IHandle | IHandle[]
    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Cancels a load() operation if it is already in progress.

    Read more...

    Returns void

  • Called by the views, such as MapView and SceneView, when the layer is added to the Map.layers collection and a layer view must be created for it.

    Read more...

    Parameters

    • view: any
    • Optional options: LayerCreateLayerViewOptions

    Returns Promise<LayerView>

  • Destroys the layer and any associated resources (including its portalItem, if it is a property on the layer).

    Read more...

    Returns void

  • Emits an event on the instance.

    Read more...

    Parameters

    • type: string
    • Optional event: any

    Returns boolean

  • Fetches custom attribution data for the layer when it becomes available.

    Read more...

    Returns Promise<any>

  • Fetching the WMS image.

    Read more...

    Parameters

    • extent: EsriExtent
    • width: number
    • height: number
    • Optional options: WMSLayerFetchImageOptions

    Returns Promise<any>

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Indicates whether there is an event listener on the instance that matches the provided event name.

    Read more...

    Parameters

    • type: string

    Returns boolean

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns boolean

  • isFulfilled() may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).

    Read more...

    Returns boolean

  • isRejected() may be used to verify if creating an instance of the class is rejected.

    Read more...

    Returns boolean

  • isResolved() may be used to verify if creating an instance of the class is resolved.

    Read more...

    Returns boolean

  • Loads the resources referenced by this class.

    Read more...

    Parameters

    • Optional signal: AbortSignal

    Returns Promise<any>

  • Parameters

    • propertyName: string

    Returns void

  • Parameters

    • name: "refresh"
    • eventHandler: WMSLayerRefreshEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-create"
    • eventHandler: WMSLayerLayerviewCreateEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-create-error"
    • eventHandler: WMSLayerLayerviewCreateErrorEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-destroy"
    • eventHandler: WMSLayerLayerviewDestroyEventHandler

    Returns IHandle

  • Deprecated

    Since 4.25. Use addHandles(), removeHandles() and hasHandles() instead.

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Fetches all the data for the layer.

    Read more...

    Returns void

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriWMSLayer

  • Parameters

    • props: HashMap<any>

    Returns EsriWMSLayer

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

  • when() may be leveraged once an instance of the class is created.

    Read more...

    Parameters

    • Optional callback: Function
    • Optional errback: Function

    Returns Promise<any>

  • Parameters

    • json: any

    Returns EsriWMSLayer

Generated using TypeDoc