Mercurial > dive4elements > river
changeset 2440:661e3ae77c8a
#558 Reload GetLegendGraphics images when changing the style of a map layer.
flys-client/trunk@4108 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 01 Mar 2012 15:27:22 +0000 |
parents | 46fc11ad697f |
children | f4001430754f |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/MapUtils.java |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo@intevation.de> + + 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 <ingo@intevation.de> flys/issue555 (ÜSK: Info-Button)
--- 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; }