src/layer/WmsLayer.js
function (config, timeString) {
            if (!config) {
                throw new ArgumentError(
                    Logger.logMessage(Logger.LEVEL_SEVERE, "WmsLayer", "constructor", "No configuration specified."));
            }

            var cachePath = config.service + config.layerNames + config.styleNames;
            if (timeString) {
                cachePath = cachePath + timeString;
            }

            TiledImageLayer.call(this, config.sector, config.levelZeroDelta, config.numLevels, config.format,
                cachePath, config.size, config.size);

            this.displayName = config.title;
            this.pickEnabled = false;

            this.urlBuilder = new WmsUrlBuilder(config.service, config.layerNames, config.styleNames, config.version,
                timeString);
            if (config.coordinateSystem) {
                this.urlBuilder.crs = config.coordinateSystem;
            }

            /**
             * The time string passed to this layer's constructor.
             * @type {String}
             * @readonly
             */
            this.timeString = timeString;
        }
function (config, timeString) {
            if (!config) {
                throw new ArgumentError(
                    Logger.logMessage(Logger.LEVEL_SEVERE, "WmsLayer", "constructor", "No configuration specified."));
            }

            var cachePath = config.service + config.layerNames + config.styleNames;
            if (timeString) {
                cachePath = cachePath + timeString;
            }

            TiledImageLayer.call(this, config.sector, config.levelZeroDelta, config.numLevels, config.format,
                cachePath, config.size, config.size);

            this.displayName = config.title;
            this.pickEnabled = false;

            this.urlBuilder = new WmsUrlBuilder(config.service, config.layerNames, config.styleNames, config.version,
                timeString);
            if (config.coordinateSystem) {
                this.urlBuilder.crs = config.coordinateSystem;
            }

            /**
             * The time string passed to this layer's constructor.
             * @type {String}
             * @readonly
             */
            this.timeString = timeString;
        }
function ( config , timeString ) { if ( ! config ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "WmsLayer" , "constructor" , "No configuration specified." ) ) ; } var cachePath = config . service + config . layerNames + config . styleNames ; if ( timeString ) { cachePath = cachePath + timeString ; } TiledImageLayer . call ( this , config . sector , config . levelZeroDelta , config . numLevels , config . format , cachePath , config . size , config . size ) ; this . displayName = config . title ; this . pickEnabled = false ; this . urlBuilder = new WmsUrlBuilder ( config . service , config . layerNames , config . styleNames , config . version , timeString ) ; if ( config . coordinateSystem ) { this . urlBuilder . crs = config . coordinateSystem ; } /**
             * The time string passed to this layer's constructor.
             * @type {String}
             * @readonly
             */ this . timeString = timeString ; }
Constructs a WMS image layer.
@alias WmsLayer
@constructor
@augments TiledImageLayer
@classdesc Displays a WMS image layer.
@param {{}} config Specifies configuration information for the layer. Must contain the following
properties:
<ul>
<li>service: {String} The URL of the WMS server.</li>
<li>layerNames: {String} A comma separated list of the names of the WMS layers to include in this layer.</li>
<li>sector: {Sector} The sector spanned by this layer.</li>
<li>levelZeroDelta: {Location} The level-zero tile delta to use for this layer.</li>
<li>numLevels: {Number} The number of levels to make for this layer.</li>
<li>format: {String} The mime type of the image format to request, e.g., image/png.</li>
<li>size: {Number} The size in pixels of tiles for this layer.</li>
<li>coordinateSystem (optional): {String} The coordinate system to use for this layer, e.g., EPSG:4326.</li>
<li>styleNames (optional): {String} A comma separated list of the styles to include in this layer.</li>
</ul>
The function [WmsLayer.formLayerConfiguration]{@link WmsLayer#formLayerConfiguration} will create an
appropriate configuration object given a {@link WmsLayerCapabilities} object.
@param {String} timeString The time parameter passed to the WMS server when imagery is requested. May be
null, in which case no time parameter is passed to the server.
@throws {ArgumentError} If the specified configuration is null or undefined.
Constructs a WMS image layer .