| ... |
... |
@@ -30,16 +30,6 @@ import fr.ird.observe.application.swing.ui.UIHelper; |
|
30
|
30
|
import fr.ird.observe.common.TripMapPoint;
|
|
31
|
31
|
import fr.ird.observe.services.dto.IdHelper;
|
|
32
|
32
|
import fr.ird.observe.services.dto.TripMapDto;
|
|
33
|
|
-import org.nuiton.jaxx.runtime.spi.UIHandler;
|
|
34
|
|
-import org.apache.commons.logging.Log;
|
|
35
|
|
-import org.apache.commons.logging.LogFactory;
|
|
36
|
|
-import org.geotools.geometry.DirectPosition2D;
|
|
37
|
|
-import org.geotools.geometry.jts.ReferencedEnvelope;
|
|
38
|
|
-import org.geotools.swing.JMapPane;
|
|
39
|
|
-import org.geotools.swing.event.MapPaneEvent;
|
|
40
|
|
-import org.geotools.swing.event.MapPaneListener;
|
|
41
|
|
-
|
|
42
|
|
-import javax.imageio.ImageIO;
|
|
43
|
33
|
import java.awt.CardLayout;
|
|
44
|
34
|
import java.awt.Point;
|
|
45
|
35
|
import java.awt.event.MouseEvent;
|
| ... |
... |
@@ -53,6 +43,16 @@ import java.awt.image.BufferedImage; |
|
53
|
43
|
import java.io.File;
|
|
54
|
44
|
import java.io.IOException;
|
|
55
|
45
|
import java.util.List;
|
|
|
46
|
+import javax.imageio.ImageIO;
|
|
|
47
|
+import org.apache.commons.logging.Log;
|
|
|
48
|
+import org.apache.commons.logging.LogFactory;
|
|
|
49
|
+import org.geotools.geometry.DirectPosition2D;
|
|
|
50
|
+import org.geotools.geometry.jts.ReferencedEnvelope;
|
|
|
51
|
+import org.geotools.swing.JMapPane;
|
|
|
52
|
+import org.geotools.swing.event.MapPaneEvent;
|
|
|
53
|
+import org.geotools.swing.event.MapPaneListener;
|
|
|
54
|
+import org.nuiton.jaxx.runtime.spi.UIHandler;
|
|
|
55
|
+
|
|
56
|
56
|
|
|
57
|
57
|
import static org.nuiton.i18n.I18n.t;
|
|
58
|
58
|
|
| ... |
... |
@@ -208,8 +208,10 @@ public class TripMapUIHandler implements UIHandler<TripMapUI> { |
|
208
|
208
|
displayArea.getMaxY() + deltaBottom,
|
|
209
|
209
|
displayArea.getCoordinateReferenceSystem()
|
|
210
|
210
|
);
|
|
211
|
|
-
|
|
212
|
|
- mapPane.setDisplayArea(newDisplayArea);
|
|
|
211
|
+ // -230 is the good value (don't ask me why ?)
|
|
|
212
|
+ if (newDisplayArea.getLowerCorner().getOrdinate(0) > -230) {
|
|
|
213
|
+ mapPane.setDisplayArea(newDisplayArea);
|
|
|
214
|
+ }
|
|
213
|
215
|
|
|
214
|
216
|
zoomRatio = 1;
|
|
215
|
217
|
|