[PATCH] Enable dynamic zoom-range in subtitle

Wald Commits scm-commit at wald.intevation.org
Tue Sep 9 16:30:06 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1410272993 -7200
# Node ID aef7542dd3cab929548ad436a72a50020b239d7d
# Parent  bb00ee1556b97a4f123836e3faa7bae4267fdf3e
Enable dynamic zoom-range in subtitle.

diff -r bb00ee1556b9 -r aef7542dd3ca artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java	Tue Sep 09 14:53:12 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java	Tue Sep 09 16:29:53 2014 +0200
@@ -89,10 +89,11 @@
             String river = access.getRiverName();
 
             double radius = scales.getRadius(river, start, end);
+            context.putContextValue("radius", radius);
             generator.addSubtitle(Resources.getMsg(
                 context.getMeta(),
                 I18N_SUBTITLE_RADIUS,
-                new Object[] { radius }));
+                new Object[] { "$RADIUS" }));
         }
     }
 


More information about the Dive4Elements-commits mailing list