فهرست منبع

更新影像的大小,解决影像显示问题

LAPTOP-BJJ3IV5R\SIWEI 11 ماه پیش
والد
کامیت
1478b395dd

+ 1 - 1
onemap-modules/onemap-analyse/src/main/java/com/onemap/analyse/service/impl/HgxfxJgReportServiceImpl.java

@@ -81,7 +81,7 @@ public class HgxfxJgReportServiceImpl implements HgxfxJgReportService {
             factorMap00.put("YXYZMCⅢ", "");
             factorMap00.put("YXZ", "");
             if (factorMap != null) {
-                factorMap00 = factorMap;
+                factorMap00.putAll(factorMap);
             }
             if (level == 0) {
                 factorMap00.put("YXYZMCI", scxname);

+ 1 - 1
onemap-modules/onemap-spatial/src/main/java/com/onemap/spatial/service/impl/ImageServiceImpl.java

@@ -120,7 +120,7 @@ public class ImageServiceImpl implements IImageService {
         // 将地图绘制到图片
         File outputFile = new File(filePath);
         try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile); ImageOutputStream outputImageFile = ImageIO.createImageOutputStream(fileOutputStream);) {
-            int w = 400;
+            int w = 1000;
             int h = (int) (w * (combinedBounds.getHeight() / combinedBounds.getWidth()));
             BufferedImage bufferedImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
             Graphics2D g2d = bufferedImage.createGraphics();