comparison gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java @ 6384:2987d81ea719

Further fix encoding handling in the print service - Strings are now html escaped additionaly to java encoding - Escaping / encoding moved into maputils - The legend url is urlencoded - Properties are no longer stored in an encoded manner but rather encoded on demand
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Jun 2013 12:15:30 +0200
parents ea9eef426962
children 13ecaf6c0f20
comparison
equal deleted inserted replaced
6383:e26655a8f98d 6384:2987d81ea719
210 210
211 for (Layer layer: ls) { 211 for (Layer layer: ls) {
212 Map<String, Object> legend = new LinkedHashMap<String, Object>(); 212 Map<String, Object> legend = new LinkedHashMap<String, Object>();
213 List<Object> classes = new ArrayList<Object>(1); 213 List<Object> classes = new ArrayList<Object>(1);
214 Map<String, Object> clazz = new LinkedHashMap<String, Object>(); 214 Map<String, Object> clazz = new LinkedHashMap<String, Object>();
215 String lgu = MapUtils.getLegendGraphicUrl(layer.url, layer.layers, dpi); 215 String lgu = encode(MapUtils.getLegendGraphicUrl(layer.url, layer.layers, dpi));
216 clazz.put("icon", lgu); 216 clazz.put("icon", lgu);
217 clazz.put("name", layer.description); 217 clazz.put("name", layer.description);
218 classes.add(clazz); 218 classes.add(clazz);
219 legend.put("classes", classes); 219 legend.put("classes", classes);
220 legend.put("name", layer.description); 220 legend.put("name", layer.description);

http://dive4elements.wald.intevation.org