管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2022-12-21 ec3342e1b34dd02f33dae9bed2db16a14ae8096d
src/components/ProjectOl.vue
@@ -62,7 +62,7 @@
      var a1 = value.split(' ');
      console.log(a1);
      var a2 = transform(
        [parseFloat(a1[1]), parseFloat(a1[2])],
        [parseFloat(a1[0]), parseFloat(a1[1])],
        'EPSG:4326',
        'EPSG:3857'
      );
@@ -116,7 +116,7 @@
        var a1 = transform([extent[0], extent[1]], 'EPSG:3857', 'EPSG:4326');
        this.$store.state.projeOl =
          'POINT( ' + a1[0].toFixed(6) + ' ' + a1[1].toFixed(6) + ')';
          'POINT(' + a1[0].toFixed(6) + ' ' + a1[1].toFixed(6) + ')';
        this.mapol.removeInteraction(this.draw);
      });
    },