changeset 2935:6cf983dd4f8a

Add km to chart info request parameters to get valid chart infos. flys-client/trunk@4868 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 03 Jul 2012 15:29:33 +0000
parents a5ebe2e2c772
children a805118fffa6
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jul 03 12:13:36 2012 +0000
+++ b/flys-client/ChangeLog	Tue Jul 03 15:29:33 2012 +0000
@@ -1,3 +1,8 @@
+2012-07-03  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java:
+	  Add km to chart info request parameters to get valid chart infos.
+
 2012-07-03	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Fix issue457.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java	Tue Jul 03 12:13:36 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java	Tue Jul 03 15:29:33 2012 +0000
@@ -1,5 +1,8 @@
 package de.intevation.flys.client.client.ui.chart;
 
+import java.util.Map;
+import java.util.HashMap;
+
 import com.google.gwt.core.client.GWT;
 
 import com.smartgwt.client.types.Alignment;
@@ -234,4 +237,14 @@
         }
     }
 
+    @Override
+    public Map<String, String> getChartAttributes() {
+        Map<String, String> attr = new HashMap<String, String>();
+
+        attr = super.getChartAttributes();
+        attr.put("km", String.valueOf(collectionView.getCurrentKm()));
+
+        return attr;
+    }
+
 }

http://dive4elements.wald.intevation.org