Bella před 2 roky
rodič
revize
dabbf2f709

+ 3 - 1
public/static/config/config.js

@@ -6,7 +6,9 @@
  */
 var systemConfig = {
   // 经度偏移矫正值 -- WGS84转上海2000
-  lonCorrectParams:0.1915,
+  lonCorrectParams:0.1920,
+  // 纬度偏移校正值 -- WGS84转上海2000
+  latCorrectParams:-0.00018,
   assetsUrl: "http://localhost:2013",
   mapViewer: {
     center: [31.095589678244445, 121.72894516017521],

+ 2 - 2
src/views/ComprehensiveAnalysis.vue

@@ -636,7 +636,7 @@ export default {
                       });
                       this.randomColor.set(
                         `${item2.title}_${item2.id}`,
-                        publicFun.getRandomColor()
+                        publicFun.getRGBColor()
                       );
                       return {
                         id: `${item2.title}_${item2.id}`,
@@ -647,7 +647,7 @@ export default {
                         sourceId: item1.id,
                         sourceType: item1.title,
                         mainType: "所有图层",
-                        color: publicFun.getRandomColor(),
+                        color: publicFun.getRGBColor(),
                         children: [],
                       };
                     }),