# HG changeset patch # User Tim Englich # Date 1276005425 0 # Node ID 556e16cc4da58f55ecbd6760ec7ab512c2fdd24e # Parent 42da41835b54666d6d6575f548a14c3c83988e58 Switch to tiled layers with one tile to prevent problems in the layertree and the legendgraphicpanel gnv/trunk@1176 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 42da41835b54 -r 556e16cc4da5 gnv/ChangeLog --- 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 + + * 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 * src/main/webapp/scripts/olutils.jsp: diff -r 42da41835b54 -r 556e16cc4da5 gnv/src/main/webapp/scripts/layers.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 } );