"WMC: queryable seems implemented but does not actually work", patch from

Bart, tests by me, r=me, (Closes #1447)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-08-01 18:30:55 +00:00
parent 7f38f22d8f
commit 2b8cc7e0fd
2 changed files with 6 additions and 4 deletions

View File

@@ -167,9 +167,10 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
var layerInfo = {
params: {},
options: {
visibility: (node.getAttribute("hidden") != "1")
visibility: (node.getAttribute("hidden") != "1"),
queryable: (node.getAttribute("queryable") == "1")
},
queryable: (node.getAttribute("queryable") == "1"),
formats: [],
styles: []
};
@@ -616,7 +617,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
write_wmc_Layer: function(layer) {
var node = this.createElementDefaultNS(
"Layer", null, {
queryable: "1",
queryable: layer.queryable ? "1" : "0",
hidden: layer.visibility ? "0" : "1"
}
);