new CWMSLayer(MapDocument, Name, Url, LayerName, ImageFormat, Box, 是否使用代理,預設為false,若輸入字串則會以輸入的字串為代理網址做串接, Token)
            openlayers/MapDocument.js, line 215
        
        
    網路地圖圖層
請不要直接使用CWMSLayer的建構函式,您應該從已經存在的CMapDocument物件,透過NewWMSLayer新增CWMSLayer
| Name | Type | Description | 
|---|---|---|
MapDocument | 
            
            
            CMapDocument | undefined | 
                
                 地圖文件。  | 
        
Name | 
            
            
            string | undefined | 
                
                 客戶端自訂的圖層名稱。  | 
        
Url | 
            
            
            string | 
                
                 圖層來源網址  | 
        
LayerName | 
            
            
            string | Array.<string> | 
                
                 伺服器端的真實圖層名稱,可給單一字串或字串陣列(會依序合併作畫)  | 
        
ImageFormat | 
            
            
            ENUM_IMAGE_FORMAT | int | 
                
                 影像列舉ENUM_IMAGE_FORMAT,非必要。(預設是ENUM_IMAGE_FORMAT.PNG)  | 
        
Box | 
            
            
            null | GeoBoundary | 
                
                 圖層範圍的GeoBoundary,非必要。不給會用MapDocument預設EPSG的整體範圍,建議給的出還是給吧,效能會比較好。  | 
        
是否使用代理,預設為false,若輸入字串則會以輸入的字串為代理網址做串接 | 
            
            
            boolean | string | |
Token | 
            
            
            string | 
                
                 若有需要提供,Token  | 
        
Example
var LayerId = myMapDoc.NewWMSLayer("我的行政區界圖", "http://127.0.0.1:8080/wms?", ["行政區界圖"], ENUM_IMAGE_FORMAT.JPEG);
    
    
Extends
Members
- 
    
Alpha
 - 
    
    
圖層透明度
Properties:
Name Type Description Alphanumber 透明度
 - 
    
readonlyBoundary
 - 
    
    
圖層範圍
Properties:
Name Type Description BoundaryGeoBoundary 圖層範圍
 - 
    
readonlyMaxResolution
 - 
    
    
圖層的最大解析度
Properties:
Name Type Description MaxResolutionnumber 最大解析度
 - 
    
readonlyMinResolution
 - 
    
    
圖層的最小解析度
Properties:
Name Type Description MinResolutionnumber 最小解析度
 - 
    
readonlyName
 - 
    
    
圖層名稱
Properties:
Name Type Description Namenumber 名稱
 - 
    
Show
 - 
    
    
是否顯示圖層
Properties:
Name Type Description Showboolean 是否顯示
 - 
    
readonlytype
 - 
    
    
圖層類別
Properties:
Name Type Description typeLAYER_TYPE_2D 類別
 - 
    
readonlyZIndex
 - 
    
    
圖層Z-Index
Properties:
Name Type Description Z-Indexnumber 圖層的繪製順序