[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Collapse]Map Image Data
     Image Tile Providers
     Web Map Service Provider
   [Expand]GIS Data
   [Expand]Vector Data
   [Expand]Visual Elements
   [Expand]End-User Interaction
   [Expand]Examples
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Web Map Service Provider

Web Map Services (WMS) provide the capability of receiving geographical data images from a map server.

The Map Control allows you to use Web Map Services as a data provider for an ImageLayer of the MapControl.

To work with the provider, use the WmsDataProvider class.

The WmsDataProvider class allows you to use the Web Map Services to provide data to a Map control. To do this, assign an instance of the WmsDataProvider class to the ImageLayer.DataProvider property.

To connect to the required web server, define the server URI path using the WmsDataProvider.ServerUri property.

If the name of a required layer, which is provided by the map server, is known, assign it to the WmsDataProvider.ActiveLayerName property.

In case when layer names are unknown, it is possible to handle the WmsDataProvider.ResponseCapabilities event. CapabilitiesResponsedEventArgs provides the CapabilitiesResponsedEventArgs.Layers collection, containing available layers, and other layer parameters, such as WmsLayer.Name, WmsLayer.Children, and WmsLayer.Title. Refer to the How to: Obtain a Collection of Available Layers in the ResponseCapabilities Event Handler example to learn how to obtain layers in the WmsDataProvider.ResponseCapabilities event handler.

Expanded See Also

Is this topic helpful?​​​​​​​