Show / Hide Table of Contents

Class WmsLayer

A Layer that displays data from OGC Web Map Services (WMS).

Inheritance
System.Object
Layer
ImageAdjustmentLayer
WmsLayer
Implements
System.ComponentModel.INotifyPropertyChanged
ILoadable
ILayerContent
ITimeAware
ImageAdjustmentLayer.Brightness
ImageAdjustmentLayer.Contrast
ImageAdjustmentLayer.Gamma
Layer.LoadAsync()
Layer.CancelLoad()
Layer.RetryLoadAsync()
Layer.LoadStatus
Layer.LoadError
Layer.Item
Layer.Attribution
Layer.Description
Layer.MaxScale
Layer.MinScale
Layer.SpatialReference
Layer.Opacity
Layer.Id
Layer.FullExtent
Layer.Clone()
Layer.CanChangeVisibility
Layer.IsVisible
Layer.IsIdentifyEnabled
Layer.Name
Layer.ShowInLegend
Layer.SublayerContents
Layer.GetLegendInfosAsync()
Layer.IsVisibleAtScale(Double)
Layer.PropertyChanged
Layer.OnPropertyChanged(String)
Layer.Loaded
Layer.LoadStatusChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class WmsLayer : ImageAdjustmentLayer, INotifyPropertyChanged, ILoadable, ILayerContent, ITimeAware
Remarks

Web Map Service (WMS) is an Open Geospatial Consortium (OGC) standard for delivering map images from an online service. WMS layer displays data from a web service that provides maps in the form of server-rendered images. This API supports WMS versions 1.1.0, 1.1.1, and 1.3.0. The service may be hosted in the cloud on ArcGIS Online, on a third party server, or on-premises ArcGIS Server.

Functional characteristics

A WMS service can contain multiple layers in a hierarchy. A WMS layer can be constructed directly with a URL to a service and the uniquely identifying name of the desired layer. Alternatively, a WmsService can be used to programmatically explore the available layers and allow the user to choose layers at run time.

The maps provided by a WMS service use predefined symbology defined by the server. As a result, it is not possible to apply custom renderers or to visualize feature selection. WMS layers can have multiple style options. Your app can choose from the available styles.

Some layers can be marked as opaque, which means that they cover most of the map area and are good candidates for use as a basemap.

WMS layers support identify and time. They do not support selection or query. Note that due to the nature of WMS, it is not possible to retrieve feature geometry from WMS identify results. WMS layers support custom parameters, which can be specified for the service or an individual layer.

Performance characteristics

WMS servers render map images on demand, which can require more server resources than a similar tiled service. WMS requires a service connection at all times.

Sample Code:

  • WMS layer (URL)
  • WMS service catalog

Constructors

Name Description
WmsLayer(Item)

Initializes a new instance of the WmsLayer class from the specified portal item.

WmsLayer(IEnumerable<WmsLayerInfo>)

Initializes a new instance of the WmsLayer class from the specified WmsLayerInfo objects.

WmsLayer(Uri, IEnumerable<String>)

Initializes a new instance of the WmsLayer class with the given service URI and layer names.

Properties

Name Description
CustomParameters

Gets the dictionary of custom parameters to be sent with WMS requests issued by this layer.

FullTimeExtent

Gets the temporal window that encapsulates the instance's complete set of data

IsTimeFilteringEnabled

Gets or sets a value indicating whether the instance respects any temporal filters that are applied to it.

LayerInfos

Gets a list of WmsLayerInfo objects, describing the selected WMS sublayers.

LayerNames

Gets a list of names of visible WMS layers.

PreferredImageFormat

Gets or sets the preferred image format of this WMS layer.

RefreshInterval

Gets or sets the refresh interval on this WMS layer.

Source

Gets the WMS service endpoint System.Uri used by this layer.

Sublayers

Gets the collection of sublayers for this WMS layer.

SupportsTimeFiltering

Gets a value indicating whether the instance supports filtering its data based on time.

TimeInterval

Gets a temporal value that represents the suggested temporal interval to use when sequentially stepping through the instance's data by time

TimeOffset

Gets or sets the amount of time by which to offset the temporal values of data points in this instance when displaying the data in a GeoView.

Version

Gets the version of the WMS specification used by this layer.

Events

Name Description
FullTimeExtentChanged

Raised when the FullTimeExtent of the instance's data changes

See Also

WmsLayerInfo
WmsService
WmsServiceInfo
ImageAdjustmentLayer
WmsSublayer
Layer

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7

Relevant samples

WMS service catalog: Connect to a WMS service and show the available layers and sublayers.
In This Article
Back to top Copyright © 2022 Esri.