changeset 5966:b2e6a90ba0e6

Only select available rivers in interactive image map.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 10 May 2013 11:40:31 +0200
parents e9e298724f03
children 59afa245549b
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri May 10 11:29:29 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri May 10 11:40:31 2013 +0200
@@ -303,7 +303,11 @@
     }
 
     private static void selectCallback(String name) {
-        trigger.trigger(name);
+        if (rivers.containsKey(name)) {
+            if (rivers.get(name).isVisible()) {
+                trigger.trigger(name);
+            }
+        }
     }
 
     private native void callHighlightRiver(String name) /*-{

http://dive4elements.wald.intevation.org