Files
openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_0.js
crschmidt efb925d632 Commit fixes for:
* (Closes #2360) make Layer.addOptions call initResolutions if necessary
 * (Closes #2656) no way to pass read options from protocol to format
 * (Closes #2751) Changes in languages: "es" and "ca".
 * (Closes #2814) SLDSelect control tests failing
 * (Closes #2815) Cluster Strategy should not destroy all features

Also:
 * Change examples to use OSGeo, rather than MetaCarta, servers.
 * Change copyright statements to correctly state joint copyright
   in the project, rather than MetaCarta copyright.


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.10@10715 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-02 21:43:25 +00:00

63 lines
2.0 KiB
JavaScript

/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Format/WMSCapabilities/v1_1.js
*/
/**
* Class: OpenLayers.Format.WMSCapabilities/v1_1_0
* Read WMS Capabilities version 1.1.0.
*
* Inherits from:
* - <OpenLayers.Format.WMSCapabilities.v1_1>
*/
OpenLayers.Format.WMSCapabilities.v1_1_0 = OpenLayers.Class(
OpenLayers.Format.WMSCapabilities.v1_1, {
/**
* Property: version
* {String} The specific parser version.
*/
version: "1.1.0",
/**
* Constructor: OpenLayers.Format.WMSCapabilities.v1_1_0
* Create a new parser for WMS capabilities version 1.1.0.
*
* Parameters:
* options - {Object} An optional object whose properties will be set on
* this instance.
*/
initialize: function(options) {
OpenLayers.Format.WMSCapabilities.v1_1.prototype.initialize.apply(
this, [options]
);
},
/**
* Property: readers
* Contains public functions, grouped by namespace prefix, that will
* be applied when a namespaced node is found matching the function
* name. The function will be applied in the scope of this parser
* with two arguments: the node being read and a context object passed
* from the parent.
*/
readers: {
"wms": OpenLayers.Util.applyDefaults({
"SRS": function(node, obj) {
var srs = this.getChildValue(node);
var values = srs.split(/ +/);
for (var i=0, len=values.length; i<len; i++) {
obj.srs[values[i]] = true;
}
}
}, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])
},
CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_0"
});