Mercurial > dive4elements > river
changeset 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 | 105dd4cc33a6 |
children | d961bb99a5c2 |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java |
diffstat | 4 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java Thu Nov 15 17:45:15 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.java Fri Nov 16 12:36:10 2012 +0100 @@ -246,14 +246,14 @@ parameterList.registerCollectionViewTabHandler(this); WMS axis = getLayer( - mapInfo.getWmsUrl(), "riveraxis", + mapInfo.getWmsUrl(), "FLYS-Map", // FIXME: Make layer name configurable mapInfo.getProjection(), false); WMS back = getLayer( mapInfo.getBackgroundWmsUrl(), mapInfo.getBackgroundWmsLayers(), mapInfo.getProjection(), false); + map.addLayer(back); map.addLayer(axis); - map.addLayer(back); if (geojson != null && geojson.length() > 0) { VectorFeature[] features = new GeoJSON().read(geojson);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java Thu Nov 15 17:45:15 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java Fri Nov 16 12:36:10 2012 +0100 @@ -160,7 +160,7 @@ barrierLayer.setIsBaseLayer(true); map.addLayer(barrierLayer); - map.raiseLayer(barrierLayer, -10); + map.setLayerZIndex(barrierLayer, 1000); barrierLayer.addVectorFeatureAddedListener(this); }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java Thu Nov 15 17:45:15 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java Fri Nov 16 12:36:10 2012 +0100 @@ -69,8 +69,8 @@ width -= 2; // minus black borders height -= toolbar.getHeight() + 4; - this.floodMapWidget.setWidth(Integer.toString(width)); - this.floodMapWidget.setHeight(Integer.toString(height)); + floodMapWidget.setSize(Integer.toString(width), Integer.toString(height)); + floodMapWidget.getMap().updateSize(); }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java Thu Nov 15 17:45:15 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MapInfo.java Fri Nov 16 12:36:10 2012 +0100 @@ -5,6 +5,8 @@ public class MapInfo implements Serializable { + private static final long serialVersionUID = 6691651140549280493L; + protected String river; protected int srid; protected BBox bbox;