From 1f892593d89f308eb6f24ad9c5639332bf8a5d75 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Fri, 13 Jun 2025 11:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B5=B7=E4=BB=BB=E5=8A=A1=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E9=80=89=E6=8B=A9=E5=BA=93=E4=BD=8D=20=E5=BD=93?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E8=BF=87=E5=A4=A7=E6=97=B6=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=8C=89=E6=AF=94=E4=BE=8B=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mapPage/components/locationSelectionDialog.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/mapPage/components/locationSelectionDialog.vue b/src/views/mapPage/components/locationSelectionDialog.vue index 24b63bf4..244c6a05 100644 --- a/src/views/mapPage/components/locationSelectionDialog.vue +++ b/src/views/mapPage/components/locationSelectionDialog.vue @@ -209,6 +209,13 @@ const getPositionMap = async () => { imgBgObj.height = yamlJson.height imgBgObj.origin = yamlJson.origin imgBgObj.resolution = yamlJson.resolution + + if (imgBgObj.width > 1477) { + imgBgObj.showWidth = imgBgObj.width * 0.8 + } else { + imgBgObj.showWidth = 1182 + } + imgBgObj.showHeight = (imgBgObj.showWidth * imgBgObj.height) / imgBgObj.width await getMapData() await getAllNodeList()