Fix issue with small maps not being draw properly.
This commit is contained in:
parent
80b4b1c7fc
commit
797a4e1c8c
@ -576,8 +576,10 @@ public class BasicDrawing extends JPanel implements Drawing {
|
|||||||
|
|
||||||
// Create the projection and retrieve width and height for the box.
|
// Create the projection and retrieve width and height for the box.
|
||||||
BoundingBox extendedBox = box.extend(deltaLon, deltaLat, deltaLon, deltaLat);
|
BoundingBox extendedBox = box.extend(deltaLon, deltaLat, deltaLon, deltaLat);
|
||||||
|
|
||||||
|
// Special projection for non-realistic maps...
|
||||||
if (graph.getMapId().startsWith("0x")) {
|
if (graph.getMapId().startsWith("0x")) {
|
||||||
projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
|
projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH / 4);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
projection = new MercatorProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
|
projection = new MercatorProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
|
||||||
|
Loading…
Reference in New Issue
Block a user