Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java @ 881:4af1ee86b0b1
Bugfix: #289 Set map units 'm'.
flys-client/trunk@2710 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 13 Sep 2011 04:57:47 +0000 |
parents | dcecdd9693a8 |
children | d3b4010d2c89 |
comparison
equal
deleted
inserted
replaced
880:22dc88b17253 | 881:4af1ee86b0b1 |
---|---|
30 MapOptions opts = new MapOptions(); | 30 MapOptions opts = new MapOptions(); |
31 opts.setControls(new JObjectArray(new JSObject[] {})); | 31 opts.setControls(new JObjectArray(new JSObject[] {})); |
32 opts.setNumZoomLevels(16); | 32 opts.setNumZoomLevels(16); |
33 opts.setProjection(getRiverProjection()); | 33 opts.setProjection(getRiverProjection()); |
34 opts.setMaxExtent(maxExtent); | 34 opts.setMaxExtent(maxExtent); |
35 opts.setUnits("m"); | |
35 opts.setMaxResolution(500); // TODO DO THIS ON THE FLY | 36 opts.setMaxResolution(500); // TODO DO THIS ON THE FLY |
36 | 37 |
37 mapWidget = new MapWidget("510px", "635px", opts); | 38 mapWidget = new MapWidget("510px", "635px", opts); |
38 map = mapWidget.getMap(); | 39 map = mapWidget.getMap(); |
39 | 40 |