|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
mounted() {
|
|
|
const queryParams = new URLSearchParams(window.location.search);
|
|
|
let url = queryParams.get("url");
|
|
|
- console.log(queryParams.get("url")); // 输出: value1
|
|
|
+ // console.log(queryParams.get("url")); // 输出: value1
|
|
|
if (url) {
|
|
|
let arr = url.split(".");
|
|
|
let type = arr[arr.length - 1];
|
|
|
@@ -323,7 +323,7 @@ export default {
|
|
|
// 添加点到地图中
|
|
|
addPoint(coordinates, featureProperties = null, featureRefInfo = null) {
|
|
|
// 1. 解析点的坐标
|
|
|
- console.log("addPoint coordinates", coordinates);
|
|
|
+ // console.log("addPoint coordinates", coordinates);
|
|
|
// 2. 创建点实体
|
|
|
const pointEntity = viewer.entities.add({
|
|
|
name: "point",
|
|
|
@@ -347,7 +347,7 @@ export default {
|
|
|
// 添加线到地图中
|
|
|
addLine(coordinates, featureProperties = null, featureRefInfo = null) {
|
|
|
// 1. 解析线的坐标
|
|
|
- console.log("addLine coordinates", coordinates);
|
|
|
+ // console.log("addLine coordinates", coordinates);
|
|
|
// 2. 处理坐标格式:如果是二维数组则取第一个元素,否则直接使用
|
|
|
const lineCoordinates =
|
|
|
Array.isArray(coordinates[0]) && Array.isArray(coordinates[0][0])
|
|
|
@@ -405,7 +405,7 @@ export default {
|
|
|
Array.isArray(coordinates[0][0]) &&
|
|
|
Array.isArray(coordinates[0][0][0])
|
|
|
) {
|
|
|
- console.log("MultiPolygon coordinates", coordinates);
|
|
|
+ // console.log("MultiPolygon coordinates", coordinates);
|
|
|
// 是MultiPolygon类型,遍历每个Polygon
|
|
|
coordinates.forEach((polygonCoordinates) => {
|
|
|
this.renderSinglePolygon(polygonCoordinates, featureProperties, featureRefInfo);
|
|
|
@@ -650,7 +650,7 @@ export default {
|
|
|
})
|
|
|
.then((response) => response.json()) // 假设服务器返回 JSON 数据
|
|
|
.then((data) => {
|
|
|
- console.log("[ eee ] >");
|
|
|
+ // console.log("[ eee ] >");
|
|
|
that.dataJson = data;
|
|
|
that.closeWin();
|
|
|
that.dwanMap();
|