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); }); },