changeset 5792:06036bc6fb19

Add WMS URL menu entry again and print the wms_url
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 23 Apr 2013 15:30:06 +0200
parents 339042a65a07
children 4cc59122b682
files flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapThemePanel.java
diffstat 5 files changed, 15 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue Apr 23 10:50:32 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue Apr 23 15:30:06 2013 +0200
@@ -1256,5 +1256,9 @@
 
     String mapLogo();
 
+    String wmsURLMenuItem();
+
+    String wmsURLBoxTitle();
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue Apr 23 10:50:32 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue Apr 23 15:30:06 2013 +0200
@@ -591,6 +591,8 @@
 wsplgen_cat4 = Fill Color 3.0 <= DIFF < 4
 wsplgen_cat5 = Fill Color 4.0 <= DIFF
 attribution = &copyIntevation GmbH 2013<br>Data &copy<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>
+wmsURLMenuItem = WMS URL
+wmsURLBoxTitle = Layer WMS URL
 
 # Manual Points Editor
 addpoints = Add points
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue Apr 23 10:50:32 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue Apr 23 15:30:06 2013 +0200
@@ -415,6 +415,8 @@
 upload_file = hochladen
 shape_file_upload = Shapedatei hochladen
 attribution = &copyIntevation GmbH 2013<br>Data &copy<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>
+wmsURLMenuItem = WMS URL
+wmsURLBoxTitle = WMS URL der Kartenebene
 
 # data cage
 waterlevels = Wasserst\u00e4nde
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue Apr 23 10:50:32 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue Apr 23 15:30:06 2013 +0200
@@ -412,7 +412,9 @@
 requireDGM = You need to choose a DEM.
 upload_file = upload
 shape_file_upload = Upload shapefile
-attribution = &copyIntevation GmbH 2012<br>Data &copy<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>
+attribution = &copyIntevation GmbH 2013<br>Data &copy<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>
+wmsURLMenuItem = WMS URL
+wmsURLBoxTitle = Layer WMS URL
 
 # data cage
 waterlevels = Waterlevels
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapThemePanel.java	Tue Apr 23 10:50:32 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapThemePanel.java	Tue Apr 23 15:30:06 2013 +0200
@@ -176,7 +176,7 @@
         if (layerZoom != null) {
             menu.addItem(layerZoom);
         }
-        //menu.addItem(createMapURLItem(records));
+        menu.addItem(createMapURLItem(records));
 
         return menu;
     }
@@ -186,11 +186,12 @@
         final FacetRecord     fr = (FacetRecord) records[0];
         final AttributedTheme at = (AttributedTheme) fr.getTheme();
 
-        MenuItem item = new MenuItem("WMS URL");
+        MenuItem item = new MenuItem(MSG.wmsURLMenuItem());
         item.addClickHandler(new ClickHandler() {
             @Override
             public void onClick(MenuItemClickEvent evt) {
-                SC.say(at.getAttr("url"));
+                String url = getMapOutputTab().wmsUrls().get(at.getAttr("layers"));
+                SC.say(MSG.wmsURLBoxTitle(), url);
             }
         });
 

http://dive4elements.wald.intevation.org