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


IWMSMapLayer Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IW > IWMSMapLayer Interface
ArcGIS Developer Help

IWMSMapLayer Interface

Provides access to members that control the WMS map layer.

Product Availability

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

Members

Name 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.

Classes that implement IWMSMapLayer

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