From 02349238af964e19a46da93e20466a48d755a453 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 02 九月 2024 17:38:04 +0800
Subject: [PATCH] 正在实现设备管理模块

---
 src/utils/map/marks.js |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/utils/map/marks.js b/src/utils/map/marks.js
index ed0c807..ba31891 100644
--- a/src/utils/map/marks.js
+++ b/src/utils/map/marks.js
@@ -3,8 +3,6 @@
  */
 
 import { map } from './index_old';
-import sector from './sector';
-import { DialogUtil } from './dialog';
 import { useToolboxStore } from '@/stores/toolbox';
 
 const toolboxStore = useToolboxStore();
@@ -21,10 +19,7 @@
     if (!toolboxStore.dataMarkerStatus) {
       return;
     }
-    if (_massMarks) {
-      map.remove(_massMarks);
-      _massMarks = undefined;
-    }
+    this.clearMassMarks();
     const lnglats = fDatas.lnglats_GD;
     var data = [];
     for (let i = 0; i < lnglats.length; i++) {
@@ -77,6 +72,12 @@
     _massMarks = massMarks;
     map.add(massMarks);
   },
+  clearMassMarks() {
+    if (_massMarks) {
+      map.remove(_massMarks);
+      _massMarks = undefined;
+    }
+  },
 
   createLabelMarks(img, dataList) {
     // eslint-disable-next-line no-undef
@@ -105,7 +106,7 @@
           image: img,
           // clipOrigin: [14, 92],
           // clipSize: [50, 68],
-          size: [24, 24],
+          size: [30, 30],
           anchor: 'bottom-center',
           angel: 0,
           retina: true
@@ -115,12 +116,12 @@
           direction: 'top',
           offset: [0, -5],
           style: {
-            fontSize: 15,
+            fontSize: 16,
             fontWeight: 'normal',
             fillColor: '#fff',
             strokeColor: '#333',
-            strokeWidth: 2
-            // backgroundColor: '#b1009b'
+            strokeWidth: 0,
+            backgroundColor: '#122b54a9'
           }
         }
       };

--
Gitblit v1.9.3