zhangying 10 months ago
parent
commit
4813950a6d
2 changed files with 5 additions and 2 deletions
  1. 2 2
      vue/src/utils/position.ts
  2. 3 0
      vue/src/views/dataMap/companyDataMap.vue

+ 2 - 2
vue/src/utils/position.ts

@@ -40,10 +40,10 @@ export function setBoundary(map: any, T: any, geoJson: any) {
           points.push(point);
         })
         const polygon = new T.Polygon(points, {
-          color: "#FF4040",
+          color: "#FF7F24",
           weight: 2,
           opacity: 1,
-          fillColor: "#D8BFD8",
+          fillColor: "#FFC0CB",
           fillOpacity: 0.5
         });
         // 添加多边形到地图

+ 3 - 0
vue/src/views/dataMap/companyDataMap.vue

@@ -581,6 +581,9 @@ function setCompanyMarker(setCenter: boolean) {
         let markerInfoWin = new T.InfoWindow(winHtml, {autoPan: true, maxHeight: 300, maxWidth: 400});
         // 添加鼠标经过事件
         marker.addEventListener('mouseover', () => {
+          if (searchType.value == 'post') {
+            (map as any).closeInfoWindow();
+          }
           marker.openInfoWindow(markerInfoWin);
         });
         if (searchType.value == 'company') {