Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [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]Examples
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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 data providers 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 required layer name, which is provided by the map server, is known, then assign it to the WmsDataProvider.ActiveLayerName property.

In other cases, if 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 Data from a Web Map Service example to learn how to obtain layer information in the event handler.

To learn how to receive a collection of available layers, see the How to: Obtain a Collection of Available Layers in the ResponseCapabilities Event Handler example.

Expanded See Also

How would you rate this topic?​​​​​​​