diff gnv/src/main/webapp/scripts/layers.jsp @ 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 a0e6566cd111
children a406d8807e5d
line wrap: on
line diff
--- 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
             }
 
     );

http://dive4elements.wald.intevation.org