source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Format/WMC/v1_0_0.js
@
76
Revision 76, 2.2 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 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/WMC/v1.js | |
8 | */ | |
9 | ||
10 | /** | |
11 | * Class: OpenLayers.Format.WMC.v1_0_0 | |
12 | * Read and write WMC version 1.0.0. | |
13 | * | |
14 | * Inherits from: | |
15 | * - <OpenLayers.Format.WMC.v1> | |
16 | */ | |
17 | OpenLayers.Format.WMC.v1_0_0 = OpenLayers.Class( | |
18 | OpenLayers.Format.WMC.v1, { | |
19 | ||
20 | /** | |
21 | * Constant: VERSION | |
22 | * {String} 1.0.0 | |
23 | */ | |
24 | VERSION: "1.0.0", | |
25 | ||
26 | /** | |
27 | * Property: schemaLocation | |
28 | * {String} http://www.opengis.net/context | |
29 | * http://schemas.opengis.net/context/1.0.0/context.xsd | |
30 | */ | |
31 | schemaLocation: "http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd", | |
32 | ||
33 | /** | |
34 | * Constructor: OpenLayers.Format.WMC.v1_0_0 | |
35 | * Instances of this class are not created directly. Use the | |
36 | * <OpenLayers.Format.WMC> constructor instead. | |
37 | * | |
38 | * Parameters: | |
39 | * options - {Object} An optional object whose properties will be set on | |
40 | * this instance. | |
41 | */ | |
42 | initialize: function(options) { | |
43 | OpenLayers.Format.WMC.v1.prototype.initialize.apply( | |
44 | this, [options] | |
45 | ); | |
46 | }, | |
47 | ||
48 | /** | |
49 | * Method: write_wmc_Layer | |
50 | * Create a Layer node given a layer context object. This method adds | |
51 | * elements specific to version 1.0.0. | |
52 | * | |
53 | * Parameters: | |
54 | * context - {Object} A layer context object.} | |
55 | * | |
56 | * Returns: | |
57 | * {Element} A WMC Layer element node. | |
58 | */ | |
59 | write_wmc_Layer: function(context) { | |
60 | var node = OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply( | |
61 | this, [context] | |
62 | ); | |
63 | ||
64 | // optional FormatList element | |
65 | node.appendChild(this.write_wmc_FormatList(context)); | |
66 | ||
67 | // optional StyleList element | |
68 | node.appendChild(this.write_wmc_StyleList(context)); | |
69 | ||
70 | // OpenLayers specific properties go in an Extension element | |
71 | node.appendChild(this.write_wmc_LayerExtension(context)); | |
72 | }, | |
73 | ||
74 | CLASS_NAME: "OpenLayers.Format.WMC.v1_0_0" | |
75 | ||
76 | }); |
Note: See TracBrowser
for help on using the repository browser.