source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js
@
76
Revision 76, 1.8 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for |
2 | * full list of contributors). Published under the Clear BSD license. |
3 | * See http://svn.openlayers.org/trunk/openlayers/license.txt 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_1 |
12 | * Read WMS Capabilities version 1.1.1. |
13 | * |
14 | * Inherits from: |
15 | * - <OpenLayers.Format.WMSCapabilities.v1_1> |
16 | */ |
17 | OpenLayers.Format.WMSCapabilities.v1_1_1 = OpenLayers.Class( |
18 | OpenLayers.Format.WMSCapabilities.v1_1, { |
19 | |
20 | /** |
21 | * Property: version |
22 | * {String} The specific parser version. |
23 | */ |
24 | version: "1.1.1", |
25 | |
26 | /** |
27 | * Constructor: OpenLayers.Format.WMSCapabilities.v1_1_1 |
28 | * Create a new parser for WMS capabilities version 1.1.1. |
29 | * |
30 | * Parameters: |
31 | * options - {Object} An optional object whose properties will be set on |
32 | * this instance. |
33 | */ |
34 | initialize: function(options) { |
35 | OpenLayers.Format.WMSCapabilities.v1_1.prototype.initialize.apply( |
36 | this, [options] |
37 | ); |
38 | }, |
39 | |
40 | /** |
41 | * Property: readers |
42 | * Contains public functions, grouped by namespace prefix, that will |
43 | * be applied when a namespaced node is found matching the function |
44 | * name. The function will be applied in the scope of this parser |
45 | * with two arguments: the node being read and a context object passed |
46 | * from the parent. |
47 | */ |
48 | readers: { |
49 | "wms": OpenLayers.Util.applyDefaults({ |
50 | "SRS": function(node, obj) { |
51 | obj.srs[this.getChildValue(node)] = true; |
52 | } |
53 | }, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"]) |
54 | }, |
55 | |
56 | CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_1" |
57 | |
58 | }); |
Note: See TracBrowser
for help on using the repository browser.