|
@@ -909,7 +909,6 @@ export default {
|
|
|
|
|
|
drawPoints(data) {
|
|
|
if (!map2DViewer.myLabels[`label_${data.id}`]) {
|
|
|
- data.coord = publicFun.latLngsCorrection(data.coord)
|
|
|
let point = L.marker(data.coord, {
|
|
|
opacity: 1,
|
|
|
}).addTo(map2DViewer.groups["我的标记图层组"]);
|
|
@@ -919,7 +918,6 @@ export default {
|
|
|
drawLine(data, color) {
|
|
|
if (!map2DViewer.myLabels[`label_${data.id}`]) {
|
|
|
let coordinates = JSON.parse(data.geojson).geometry.coordinates[0];
|
|
|
- coordinates = publicFun.latLngsCorrection(coordinates)
|
|
|
let polyline = L.polyline(coordinates, {
|
|
|
color: color,
|
|
|
weight: 3,
|
|
@@ -934,7 +932,6 @@ export default {
|
|
|
drawPolygon(data, color) {
|
|
|
if (!map2DViewer.myLabels[`label_${data.id}`]) {
|
|
|
let coordinates = JSON.parse(data.geojson).geometry.coordinates[0];
|
|
|
- coordinates = publicFun.latLngsCorrection(coordinates)
|
|
|
let polygon = L.polygon(coordinates, {
|
|
|
color: color,
|
|
|
weight: 3,
|
|
@@ -950,7 +947,6 @@ export default {
|
|
|
drawCircle(data, color) {
|
|
|
if (!map2DViewer.myLabels[`label_${data.id}`]) {
|
|
|
let coordinates = JSON.parse(data.geojson).geometry.coordinates[0];
|
|
|
- coordinates = publicFun.latLngsCorrection(coordinates)
|
|
|
if ((coordinates.length = 2)) {
|
|
|
let from = turf.point(coordinates[0].reverse());
|
|
|
let to = turf.point(coordinates[1].reverse());
|