# HG changeset patch # User Ingo Weinzierl # Date 1330615642 0 # Node ID 661e3ae77c8a9cde6f3b1cebaeac87964320a37a # Parent 46fc11ad697f974f054f88d953a2b5aa3292070b #558 Reload GetLegendGraphics images when changing the style of a map layer. flys-client/trunk@4108 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 46fc11ad697f -r 661e3ae77c8a flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Mar 01 15:18:33 2012 +0000 +++ b/flys-client/ChangeLog Thu Mar 01 15:27:22 2012 +0000 @@ -1,3 +1,11 @@ +2012-03-01 Ingo Weinzierl + + flys/issue558 (ÜSK: Farbänderung in Karte / keine Änderung in der Themenliste) + + * src/main/java/de/intevation/flys/client/shared/MapUtils.java: Append the + current time millis at the end of the GetLegendGraphic URL to trick the + caching mechanisms. + 2012-03-01 Ingo Weinzierl flys/issue555 (ÜSK: Info-Button) diff -r 46fc11ad697f -r 661e3ae77c8a flys-client/src/main/java/de/intevation/flys/client/shared/MapUtils.java --- a/flys-client/src/main/java/de/intevation/flys/client/shared/MapUtils.java Thu Mar 01 15:18:33 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/MapUtils.java Thu Mar 01 15:27:22 2012 +0000 @@ -1,5 +1,7 @@ package de.intevation.flys.client.shared; +import java.util.Date; + public class MapUtils { @@ -22,6 +24,7 @@ String url = GET_LEGEND_GRAPHIC_TEMPLATE; url = url.replace("${SERVER}", server); url = url.replace("${LAYER}", layer); + url = url + "×tamp=" + new Date().getTime(); return url; }