changeset 8246:aef7542dd3ca

Enable dynamic zoom-range in subtitle.
author Tom Gottfried <tom@intevation.de>
date Tue, 09 Sep 2014 16:29:53 +0200
parents bb00ee1556b9
children b8f343230eab
files artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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" }));
         }
     }
 

http://dive4elements.wald.intevation.org