This document is archived and information here might be outdated.  Recommended version.


IWMSMapLayer Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IWMSMapLayer Interface

Provides access to members that control the WMS map layer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property BackgroundColor Background color for the WMS Map Layer image.
Method ClearDrawCache Clears the cache of images downloaded from the WMS server for drawing.
Read-only property ServerSupportsTransparency Indicates whether transparency is suppported by the server.
Read/write property TransparentBackground Indicates whether to make the background of the WMS Map Layer image transparent.
Write-only property WMSServiceDescription Associated WMSServiceDescription.

CoClasses that implement IWMSMapLayer

CoClasses and Classes Description
WMSMapLayer A container for the display and manipulation of WMS layers.

Remarks

A WMSMapLayer is a container of WMS layers.  There are two ways to create a WMSMapLayer:

1. Add all the vailable WMS layers using EngineWMSMapLayerFactory.

2. Add selected or individual WMS layers to the WMSMapLayer through these steps:

� Set the URL in WMSConnectionName
� Use IDataLayer to connect the WMSMapLayer (now empty) to the WMSConnectionName (which now has the URL for connecting to the WMS service). 
� Get the WMSServiceDescription from IWMSMapLayer (WMSMapLayer is now connected to the service and has access to the service the capabilities, this includes a list of WMS layer descriptions)
� Iterate through the WMSLayerDescriptions to find the WMS layer description or layer descriptions that you are interested in
� Use the CreateWMSLayer method to create a WMSLayer inside the WMSMapLayer