1
|
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
|
2
|
* full list of contributors). Published under the 2-clause BSD license.
|
3
|
* See license.txt in the OpenLayers distribution or repository for the
|
4
|
* full text of the license. */
|
5
|
|
6
|
/**
|
7
|
* @requires OpenLayers/Format/WMSCapabilities/v1_1.js
|
8
|
*/
|
9
|
|
10
|
/**
|
11
|
* Class: OpenLayers.Format.WMSCapabilities/v1_1_0
|
12
|
* Read WMS Capabilities version 1.1.0.
|
13
|
*
|
14
|
* Inherits from:
|
15
|
* - <OpenLayers.Format.WMSCapabilities.v1_1>
|
16
|
*/
|
17
|
OpenLayers.Format.WMSCapabilities.v1_1_0 = OpenLayers.Class(
|
18
|
OpenLayers.Format.WMSCapabilities.v1_1, {
|
19
|
|
20
|
/**
|
21
|
* Property: version
|
22
|
* {String} The specific parser version.
|
23
|
*/
|
24
|
version: "1.1.0",
|
25
|
|
26
|
/**
|
27
|
* Constructor: OpenLayers.Format.WMSCapabilities.v1_1_0
|
28
|
* Create a new parser for WMS capabilities version 1.1.0.
|
29
|
*
|
30
|
* Parameters:
|
31
|
* options - {Object} An optional object whose properties will be set on
|
32
|
* this instance.
|
33
|
*/
|
34
|
|
35
|
/**
|
36
|
* Property: readers
|
37
|
* Contains public functions, grouped by namespace prefix, that will
|
38
|
* be applied when a namespaced node is found matching the function
|
39
|
* name. The function will be applied in the scope of this parser
|
40
|
* with two arguments: the node being read and a context object passed
|
41
|
* from the parent.
|
42
|
*/
|
43
|
readers: {
|
44
|
"wms": OpenLayers.Util.applyDefaults({
|
45
|
"SRS": function(node, obj) {
|
46
|
var srs = this.getChildValue(node);
|
47
|
var values = srs.split(/ +/);
|
48
|
for (var i=0, len=values.length; i<len; i++) {
|
49
|
obj.srs[values[i]] = true;
|
50
|
}
|
51
|
}
|
52
|
}, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])
|
53
|
},
|
54
|
|
55
|
CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_0"
|
56
|
|
57
|
});
|