From 669ceaf9e4ca2dec505a208b0efb960b8f3dc83f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sun, 09 Apr 2023 03:44:51 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/srs-police-affairs
---
src/utils/turfPolygon.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/utils/turfPolygon.js b/src/utils/turfPolygon.js
index 8395541..504f83f 100644
--- a/src/utils/turfPolygon.js
+++ b/src/utils/turfPolygon.js
@@ -12,6 +12,7 @@
export const computerCapacity = (data, type) => {
if (type == 'region') {
+ console.log('computerCapacity', data)
const pointArr = data.reduce((pre, cur) => {
cur.position && JSON.parse(cur.position).coordinates[0][0].forEach(item => {
console.log(item, 959)
@@ -33,7 +34,7 @@
console.log(scope, scaledPoly, 5555)
} else {
let pointArr = []
-
+ console.log('data', data)
data.forEach(item => {
if (item.longitude && item.latitude) {
pointArr.push(turf.point([item.longitude, item.latitude]))
@@ -52,7 +53,7 @@
console.log(scope, 5555)
- const poly = turf.polygon([[[0, 29], [3.5, 29], [2.5, 32], [0, 29]]])
+ // const poly = turf.polygon([[[0, 29], [3.5, 29], [2.5, 32], [0, 29]]])
global.viewer.flyToBounds(scope,
{ heading: 0, pitch: -45, roll: 0 },
--
Gitblit v1.9.3