bihuisong 10 月之前
父节点
当前提交
ac4e34ecf5
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      zhsq_qk-ui/src/views/supermap/supermap.vue

+ 11 - 11
zhsq_qk-ui/src/views/supermap/supermap.vue

@@ -269,7 +269,7 @@ export default {
         icon: icon
       });
       //定义泡泡层
-      marker.on('click', function () {
+      marker.on('mouseover', function () {
         let html = "";
         html += "<p class='v-p-color'>摄像头名称:" + option.cameraName + "</p>";
         html += "<p class='v-p-color'>摄像头类型:" + option.buildTypeName + "</p>";
@@ -277,9 +277,9 @@ export default {
         this.bindPopup(html).openPopup(this.getLatLng());
       });
       // /**鼠标移开关闭popup**/
-      // marker.on('mouseout', function () {
-      //   this.closePopup();
-      // });
+      marker.on('mouseout', function () {
+        this.closePopup();
+      });
 
       return marker;
     },
@@ -630,7 +630,7 @@ td {
 }
 .el-dialog {
     background: #014f9f;
-		
+
 }
 .el-dialog__title {
 		    color: #ffffff;
@@ -675,7 +675,7 @@ td {
 		  background-color: #294f76;
 		}
 		/* popup */
-		
+
 		.leaflet-popup {
 		    position: absolute;
 		    text-align: center;
@@ -707,9 +707,9 @@ td {
 		    width: 17px;
 		    height: 17px;
 		    padding: 1px;
-		
+
 		    margin: -10px auto 0;
-		
+
 		    -webkit-transform: rotate(45deg);
 		    -moz-transform: rotate(45deg);
 		    -ms-transform: rotate(45deg);
@@ -744,21 +744,21 @@ td {
 		    border-bottom: 1px solid #ddd;
 		    border-top: 1px solid #ddd;
 		}
-		
+
 		.leaflet-oldie .leaflet-popup-content-wrapper {
 		    -ms-zoom: 1;
 		}
 		.leaflet-oldie .leaflet-popup-tip {
 		    width: 24px;
 		    margin: 0 auto;
-		
+
 		    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
 		    filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
 		}
 		.leaflet-oldie .leaflet-popup-tip-container {
 		    margin-top: -1px;
 		}
-		
+
 		.leaflet-oldie .leaflet-control-zoom,
 		.leaflet-oldie .leaflet-control-layers,
 		.leaflet-oldie .leaflet-popup-content-wrapper,