温红权 3 년 전
부모
커밋
7c2a665eb7
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      ruoyi-ui/src/components/map/index.vue

+ 4 - 2
ruoyi-ui/src/components/map/index.vue

@@ -800,14 +800,16 @@ export default {
                 layer: "CJ:G_CJ",
                 matrixSet: "EPSG:4326",
                 format: "image/png",
-                 "TRANSPARENT": 'true',
+                params:{
+                   "TRANSPARENT": 'true',
+                },
                 projection: proj3857,
                 tileGrid: tileGrid,
                 style: ""
             });
 
             const ign = new TileLayer({
-                source: ign_source
+                source: ign_source,
             });
             const map = new Map({
                 target: "map",