Browse Source

Fix issue with small maps not being draw properly.

Holt59 3 years ago
parent
commit
797a4e1c8c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/main/org/insa/graphics/drawing/components/BasicDrawing.java

+ 3
- 1
src/main/org/insa/graphics/drawing/components/BasicDrawing.java View File

@@ -576,8 +576,10 @@ public class BasicDrawing extends JPanel implements Drawing {
576 576
 
577 577
         // Create the projection and retrieve width and height for the box.
578 578
         BoundingBox extendedBox = box.extend(deltaLon, deltaLat, deltaLon, deltaLat);
579
+
580
+        // Special projection for non-realistic maps...
579 581
         if (graph.getMapId().startsWith("0x")) {
580
-            projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
582
+            projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH / 4);
581 583
         }
582 584
         else {
583 585
             projection = new MercatorProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);

Loading…
Cancel
Save