Mercurial > dive4elements > gnv-client
changeset 988:556e16cc4da5
Switch to tiled layers with one tile to prevent problems in the layertree and the legendgraphicpanel
gnv/trunk@1176 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 08 Jun 2010 13:57:05 +0000 |
parents | 42da41835b54 |
children | e3301755bd3c |
files | gnv/ChangeLog gnv/src/main/webapp/scripts/layers.jsp |
diffstat | 2 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv/ChangeLog Tue Jun 08 12:54:10 2010 +0000 +++ b/gnv/ChangeLog Tue Jun 08 13:57:05 2010 +0000 @@ -1,3 +1,10 @@ +2010-06-08 Tim Englich <tim.englich@intevation.de> + + * src/main/webapp/scripts/layers.jsp: + Switched from Untiled Layer to standard layer objects to fix a bug + in the drag and drop function of the layertree and to enable the output + of the LegendGraphicPanel. + 2010-06-08 Tim Englich <tim.englich@intevation.de> * src/main/webapp/scripts/olutils.jsp:
--- a/gnv/src/main/webapp/scripts/layers.jsp Tue Jun 08 12:54:10 2010 +0000 +++ b/gnv/src/main/webapp/scripts/layers.jsp Tue Jun 08 13:57:05 2010 +0000 @@ -13,7 +13,7 @@ * 'layer'. So do not change the name of this variable. Just change the WMS * layer itself. */ - layer = new OpenLayers.Layer.WMS.Untiled( + layer = new OpenLayers.Layer.WMS( "Background1", "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", { @@ -22,7 +22,8 @@ transparent: false }, { - isBaseLayer: true + isBaseLayer: true, + singletile: true } ); @@ -41,7 +42,7 @@ while (it.hasNext()){ Layer layer = it.next(); %> - layer<%=i%> = new OpenLayers.Layer.WMS.Untiled( + layer<%=i%> = new OpenLayers.Layer.WMS( "<%=layer.getID() %>", "<%=localMapService.getURL() %>", { @@ -50,7 +51,8 @@ transparent: true }, { - isBaseLayer: false + isBaseLayer: false, + singletile: true } );