returning Get and Post OnlineResources separately, in addition to the existing href, which is now for get. p=jachym, r=me (closes #3302)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
|
||||
/* 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. */
|
||||
@@ -303,14 +303,17 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
this.readChildNodes(node, obj);
|
||||
},
|
||||
"Get": function(node, obj) {
|
||||
this.readChildNodes(node, obj);
|
||||
obj.get = {};
|
||||
this.readChildNodes(node, obj.get);
|
||||
},
|
||||
"Post": function(node, obj) {
|
||||
this.readChildNodes(node, obj);
|
||||
obj.post = {};
|
||||
this.readChildNodes(node, obj.post);
|
||||
},
|
||||
"GetMap": function(node, obj) {
|
||||
obj.getmap = {formats: []};
|
||||
this.readChildNodes(node, obj.getmap);
|
||||
obj.getmap.href = obj.getmap.get.href || obj.getmap.post.href; // backwards compatibility
|
||||
},
|
||||
"GetFeatureInfo": function(node, obj) {
|
||||
obj.getfeatureinfo = {formats: []};
|
||||
|
||||
Reference in New Issue
Block a user