Project

General

Profile

Download (1.48 KB) Statistics
| Branch: | Tag: | Revision:
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/XML/VersionedOGC.js
8
 */
9

    
10
/**
11
 * Class: OpenLayers.Format.WMSCapabilities
12
 * Read WMS Capabilities.
13
 * 
14
 * Inherits from:
15
 *  - <OpenLayers.Format.XML.VersionedOGC>
16
 */
17
OpenLayers.Format.WMSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {
18
    
19
    /**
20
     * APIProperty: defaultVersion
21
     * {String} Version number to assume if none found.  Default is "1.1.1".
22
     */
23
    defaultVersion: "1.1.1",
24
    
25
    /**
26
     * APIProperty: profile
27
     * {String} If provided, use a custom profile.
28
     *
29
     * Currently supported profiles:
30
     * - WMSC - parses vendor specific capabilities for WMS-C.
31
     */
32
    profile: null,
33
    
34
    /**
35
     * Constructor: OpenLayers.Format.WMSCapabilities
36
     * Create a new parser for WMS capabilities.
37
     *
38
     * Parameters:
39
     * options - {Object} An optional object whose properties will be set on
40
     *     this instance.
41
     */
42

    
43
    /**
44
     * APIMethod: read
45
     * Read capabilities data from a string, and return a list of layers. 
46
     * 
47
     * Parameters: 
48
     * data - {String} or {DOMElement} data to read/parse.
49
     *
50
     * Returns:
51
     * {Array} List of named layers.
52
     */
53
    
54
    CLASS_NAME: "OpenLayers.Format.WMSCapabilities" 
55

    
56
});
(33-33/41)