From fdc8b9a0c50b90d4a947d8973b1d8d3ad3cef027 Mon Sep 17 00:00:00 2001 From: zhoubichuan Date: Sun, 25 Feb 2024 19:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/boxplot.vue | 6 ++++++ components/demo/1-1-2-2-1.vue | 15 ++++++++------- components/demo/1-1-2-2-2.vue | 15 ++++++++------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/components/boxplot.vue b/components/boxplot.vue index f76afc0e..2390ab19 100644 --- a/components/boxplot.vue +++ b/components/boxplot.vue @@ -90,6 +90,12 @@ export default { getInstance() { return mapInstance; }, + getLayer(){ + + }, + getSource(){ + + } }, }; diff --git a/components/demo/1-1-2-2-1.vue b/components/demo/1-1-2-2-1.vue index 695cc1c6..ddf66434 100644 --- a/components/demo/1-1-2-2-1.vue +++ b/components/demo/1-1-2-2-1.vue @@ -19,13 +19,14 @@ export default { }; }, methods: { - movestart({ - evt, - ol: { - extent: { getBottomLeft, getTopRight }, - proj: { toLonLat }, - }, - }) { + movestart(params) { + let { + evt, + ol: { + extent: { getBottomLeft, getTopRight }, + proj: { toLonLat }, + }, + } = params; function wrapLon(value) { const worlds = Math.floor((value + 180) / 360); return value * worlds * 360; diff --git a/components/demo/1-1-2-2-2.vue b/components/demo/1-1-2-2-2.vue index d841f363..63e881ac 100644 --- a/components/demo/1-1-2-2-2.vue +++ b/components/demo/1-1-2-2-2.vue @@ -19,13 +19,14 @@ export default { }; }, methods: { - moveend({ - evt, - ol: { - extent: { getBottomLeft, getTopRight }, - proj: { toLonLat }, - }, - }) { + moveend(params) { + let { + evt, + ol: { + extent: { getBottomLeft, getTopRight }, + proj: { toLonLat }, + }, + } = params; function wrapLon(value) { const worlds = Math.floor((value + 180) / 360); return value * worlds * 360;