From e43de80667d5474cbe2185887be55bf693a54ecf Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Sat, 23 Dec 2023 15:07:22 +0800
Subject: [PATCH] 保安图标弹窗位置调整

---
 src/views/check/components/OlMapBox.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/views/check/components/OlMapBox.vue b/src/views/check/components/OlMapBox.vue
index fd5349c..1f2e38a 100644
--- a/src/views/check/components/OlMapBox.vue
+++ b/src/views/check/components/OlMapBox.vue
@@ -255,11 +255,11 @@
             }
 
             if (params.url) {
-              styleOptions.image = new Icon({
-                scale: params.scale || 1,
-                imgSize: params.imgSize || [32, 32],
-                src: params.url,
-              })
+                styleOptions.image = new Icon({
+                    scale: params.scale || 1,
+                    imgSize: params.imgSize || [32, 32],
+                    src: params.url,
+                })
             }
 
             if (params.text) {
@@ -325,7 +325,7 @@
         // 添加聚合图层的新模式,水库点分布
         mapAddClusterLayer (layerName, imgUrl, positionData, incident = (e) => { }, type = '') {
             const that = this
-            console.log(layersObjcect,layerName,positionData,"+++++++++++++")
+            console.log(layersObjcect, layerName, positionData, "+++++++++++++")
             if (!layersObjcect[layerName]) {
                 if (type == 'cluster') {
                     let source = new VectorSource()
@@ -466,8 +466,8 @@
     padding: 15px;
     border-radius: 10px;
     border: 1px solid #cccccc;
-    bottom: 130px;
-    left: -114px;
+    bottom: 34px;
+    left: -46px;
     min-width: 300px;
 }
 

--
Gitblit v1.9.3