[OpenLayers-Trac] [OpenLayers] #1411: WMC: hidden is not always correctly interpreted
OpenLayers
trac at openlayers.org
Mon Mar 3 05:56:42 EST 2008
#1411: WMC: hidden is not always correctly interpreted
------------------------+---------------------------------------------------
Reporter: bartvde | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Format.WMC | Version: 2.5
Keywords: | State:
------------------------+---------------------------------------------------
Currently hidden is not always correctly interpreted, this is the case
when the ol specific tags are not in the WMC which is read. Default a
layer is created with isBaseLayer true so visibilities get messed up
because of this (only 1 baselayer can be visibile).
My proposal is to have some sensible default values in the code to prevent
this behaviour. Also it seems best to have singleTile default to true for
WMS layers.
{{{
Index: ../lib/OpenLayers/Format/WMC/v1.js
===================================================================
--- ../lib/OpenLayers/Format/WMC/v1.js (revision 6427)
+++ ../lib/OpenLayers/Format/WMC/v1.js (working copy)
@@ -167,7 +167,9 @@
var layerInfo = {
params: {},
options: {
- visibility: (node.getAttribute("hidden") != "1")
+ visibility: (node.getAttribute("hidden") != "1"),
+ isBaseLayer: false,
+ singleTile: true
},
queryable: (node.getAttribute("queryable") == "1"),
formats: [],
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/1411>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list