Class WmsService
An Open Geospatial Consortium (OGC) Web Map Service (WMS).
Namespace: Esri.ArcGISRuntime.Ogc
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class WmsService : INotifyPropertyChanged, ILoadable
Remarks
The OGC WMS standard is an international specification for requesting geo-registered map images from one or more distributed geospatial databases. The service may be hosted in ArcGIS Enterprise or in a third party server. You can construct a WmsService using the URL for a service's GetCapabilities operation. Once loaded, you can browse its metadata using ServiceInfo and access its layers using the LayerInfos collection.
WMS versions 1.3.0, 1.1.1, and 1.1.0 are supported. The latest supported WMS version is set as the default. If you want to specify a different WMS version, set the VERSION parameter in the GetCapabilities URL for the service. For more information, see Parameters of a WMS GetCapabilities request URL.
Constructors
| Name | Description |
|---|---|
| WmsService(Uri) | Initializes a new instance of the WmsService class with the specified service URI. |
Properties
| Name | Description |
|---|---|
| CustomParameters | Gets the dictionary of custom parameters that are appended to WMS requests. |
| LoadError | Gets the Exception associated with the last load error. |
| LoadStatus | Gets the load status. |
| ServiceInfo | Gets the information for browsing and accessing the WmsService content. |
| Source | Gets the URI of this WMS service. |
| Version | Gets the version of the WMS specification used when communicating with this service. |
Methods
| Name | Description |
|---|---|
| CancelLoad() | Attempts to cancel loading the object. |
| LoadAsync() | Load the object asynchronously. |
| RetryLoadAsync() | Loads or retries loading the object asynchronously. |
Events
| Name | Description |
|---|---|
| LoadStatusChanged | Occurs when the LoadStatus property changes. |
| Loaded | Occurs when the object is done loading, whether loading succeeds, fails, or is canceled. |
See Also
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.1 |
| .NET Windows | 100.13 - 300.1 |
| .NET Android | 200.0 - 300.1 |
| .NET iOS | 200.0 - 300.1 |
| .NET Framework | 100.2.1 - 200.8 |
| Xamarin.Android | 100.2.1 - 100.15 |
| Xamarin.iOS | 100.2.1 - 100.15 |
| UWP | 100.2.1 - 200.8 |