[Dive4elements-commits] [PATCH 1 of 2] Add WMS URL menu entry again and print the wms_url

Wald Commits scm-commit at wald.intevation.org
Tue Apr 23 15:32:35 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1366723806 -7200
# Node ID 06036bc6fb19bf8e45256eb0de834600c4874661
# Parent  339042a65a07fe2d676cd1bdfe9e46aae0bb3244
Add WMS URL menu entry again and print the wms_url

diff -r 339042a65a07 -r 06036bc6fb19 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java
--- 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 :
diff -r 339042a65a07 -r 06036bc6fb19 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties
--- 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
diff -r 339042a65a07 -r 06036bc6fb19 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties
--- 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
diff -r 339042a65a07 -r 06036bc6fb19 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties
--- 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
diff -r 339042a65a07 -r 06036bc6fb19 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapThemePanel.java
--- 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);
             }
         });
 


More information about the Dive4elements-commits mailing list