OpenLayers OpenLayers

Changeset 1312

Show
Ignore:
Timestamp:
08/19/06 09:59:39 (2 years ago)
Author:
crschmidt
Message:

Further documentation on the special casing Layer.WMS does.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/doc/Layer.WMS.txt

    r1261 r1312  
    11OpenLayers.Layer.WMS 
    22 
    3 The WMS layer allows one to connect to a WMS server to obtain images. 
     3The WMS layer allows one to connect to a WMS server to obtain images. Params are available as a hash on the layer object, however, all keys are upper-cased automatically for maximum compatibility with WMS servers, so a parameter which is set as 'layers' will be uppercased to LAYERS. Where 'layer' is your Javscript variable for the layer, layer.params.LAYERS is the value of the layers param as set by the constructor. 
     4 
     5If you wish to change params, you should use mergeNewParams, rather than accessing the parameters directly. 
    46 
    57* Constructor 
     
    1012  All other methods are inherited from {OpenLayers.Layer.Grid} 
    1113   
    12 * Parameters  
     14* Options  
    1315  isBaseLayer -- WMS layers default to being base layers unless one of their parameters is 'transparent':'true'.