From 5fc6e09508182701f31f017453b5c116adf40f7f Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期四, 17 四月 2025 10:44:30 +0800 Subject: [PATCH] change --- src/views/Home.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 95b8455..a250b6b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -76,11 +76,19 @@ } = storeToRefs(simStore); const { init, startYHGL, startZHJC, startMNFZ, startMNPG } = simStore; // 妯℃嫙鐨勭粡绾害鏁扮粍 -const coordinates = [ - [120.123456, 30.654321], - [120.234567, 30.765432], - [120.345678, 30.876543], - [120.123456, 30.654321] +const multiPolygonCoordinates = [ + [ + [120.123456, 30.654321], + [120.234567, 30.765432], + [120.345678, 30.876543], + [120.123456, 30.654321] // 闂悎鐐� + ], + [ + [121.111111, 31.222222], + [121.333333, 31.444444], + [121.555555, 31.666666], + [121.111111, 31.222222] // 闂悎鐐� + ] ]; @@ -90,7 +98,7 @@ setupTokenRefresh()// 鑾峰彇瀹忓浘token getData() //娴嬭瘯tr鍚庣 try { - const wktResult = convertToWKT(coordinates); + const wktResult = convertToWKT(multiPolygonCoordinates); console.log(wktResult); // 杈撳嚭: MULTIPOLYGON(((120.123456 30.654321,120.234567 30.765432,120.345678 30.876543,120.123456 30.654321))) } catch (error) { -- Gitblit v1.9.3