Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java @ 4553:fac54b8470d4
Map view in DigitizePanel now shows OSM background, river axis and
manual drawn barriers again.
Please note that this change requires changes in conf/floodmap.xml
in artifact-server.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 16 Nov 2012 12:36:10 +0100 |
parents | 099d136b215b |
children | 32a4651eef93 |
comparison
equal
deleted
inserted
replaced
4548:105dd4cc33a6 | 4553:fac54b8470d4 |
---|---|
244 helperContainer.addMember(mapPanel); | 244 helperContainer.addMember(mapPanel); |
245 | 245 |
246 parameterList.registerCollectionViewTabHandler(this); | 246 parameterList.registerCollectionViewTabHandler(this); |
247 | 247 |
248 WMS axis = getLayer( | 248 WMS axis = getLayer( |
249 mapInfo.getWmsUrl(), "riveraxis", | 249 mapInfo.getWmsUrl(), "FLYS-Map", // FIXME: Make layer name configurable |
250 mapInfo.getProjection(), false); | 250 mapInfo.getProjection(), false); |
251 WMS back = getLayer( | 251 WMS back = getLayer( |
252 mapInfo.getBackgroundWmsUrl(), mapInfo.getBackgroundWmsLayers(), | 252 mapInfo.getBackgroundWmsUrl(), mapInfo.getBackgroundWmsLayers(), |
253 mapInfo.getProjection(), false); | 253 mapInfo.getProjection(), false); |
254 | 254 |
255 map.addLayer(back); | |
255 map.addLayer(axis); | 256 map.addLayer(axis); |
256 map.addLayer(back); | |
257 | 257 |
258 if (geojson != null && geojson.length() > 0) { | 258 if (geojson != null && geojson.length() > 0) { |
259 VectorFeature[] features = new GeoJSON().read(geojson); | 259 VectorFeature[] features = new GeoJSON().read(geojson); |
260 floodMap.getBarrierLayer().addFeatures(features); | 260 floodMap.getBarrierLayer().addFeatures(features); |
261 } | 261 } |