Fix issue with small maps not being draw properly.
這個提交存在於:
父節點
80b4b1c7fc
當前提交
797a4e1c8c
共有 1 個檔案被更改,包括 3 行新增 和 1 行删除
|
|
@ -576,8 +576,10 @@ public class BasicDrawing extends JPanel implements Drawing {
|
|||
|
||||
// Create the projection and retrieve width and height for the box.
|
||||
BoundingBox extendedBox = box.extend(deltaLon, deltaLat, deltaLon, deltaLat);
|
||||
|
||||
// Special projection for non-realistic maps...
|
||||
if (graph.getMapId().startsWith("0x")) {
|
||||
projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
|
||||
projection = new PlateCarreProjection(extendedBox, MAXIMUM_DRAWING_WIDTH / 4);
|
||||
}
|
||||
else {
|
||||
projection = new MercatorProjection(extendedBox, MAXIMUM_DRAWING_WIDTH);
|
||||
|
|
|
|||
載入中…
新增問題並參考