[Dive4elements-commits] [PATCH 2 of 2] Merged

Wald Commits scm-commit at wald.intevation.org
Fri Nov 16 12:37:08 CET 2012


# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1353065824 -3600
# Node ID d961bb99a5c2666c5e17a2822a32257d7f88bc81
# Parent  ea40a5ded13476ac2ccea6aa10c4a5faa24eb3a1
# Parent  fac54b8470d408656c15c1238be634863b05c848
Merged

diff -r ea40a5ded134 -r d961bb99a5c2 flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java	Fri Nov 16 12:01:38 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java	Fri Nov 16 12:37:04 2012 +0100
@@ -246,14 +246,14 @@
         parameterList.registerCollectionViewTabHandler(this);
 
         WMS axis = getLayer(
-            mapInfo.getWmsUrl(), "riveraxis",
+            mapInfo.getWmsUrl(), "FLYS-Map", // FIXME: Make layer name configurable
             mapInfo.getProjection(), false);
         WMS back = getLayer(
             mapInfo.getBackgroundWmsUrl(), mapInfo.getBackgroundWmsLayers(),
             mapInfo.getProjection(), false);
 
+        map.addLayer(back);
         map.addLayer(axis);
-        map.addLayer(back);
 
         if (geojson != null && geojson.length() > 0) {
             VectorFeature[] features = new GeoJSON().read(geojson);
diff -r ea40a5ded134 -r d961bb99a5c2 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java	Fri Nov 16 12:01:38 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java	Fri Nov 16 12:37:04 2012 +0100
@@ -160,7 +160,7 @@
             barrierLayer.setIsBaseLayer(true);
 
             map.addLayer(barrierLayer);
-            map.raiseLayer(barrierLayer, -10);
+            map.setLayerZIndex(barrierLayer, 1000);
 
             barrierLayer.addVectorFeatureAddedListener(this);
         }
diff -r ea40a5ded134 -r d961bb99a5c2 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java	Fri Nov 16 12:01:38 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java	Fri Nov 16 12:37:04 2012 +0100
@@ -69,8 +69,8 @@
         width -= 2; // minus black borders
         height -= toolbar.getHeight() + 4;
 
-        this.floodMapWidget.setWidth(Integer.toString(width));
-        this.floodMapWidget.setHeight(Integer.toString(height));
+        floodMapWidget.setSize(Integer.toString(width), Integer.toString(height));
+        floodMapWidget.getMap().updateSize();
     }
 
 
diff -r ea40a5ded134 -r d961bb99a5c2 flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java	Fri Nov 16 12:01:38 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java	Fri Nov 16 12:37:04 2012 +0100
@@ -5,6 +5,8 @@
 
 public class MapInfo implements Serializable {
 
+    private static final long serialVersionUID = 6691651140549280493L;
+
     protected String river;
     protected int    srid;
     protected BBox   bbox;


More information about the Dive4elements-commits mailing list