bihuisong 10 tháng trước cách đây
mục cha
commit
856feb65a7
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      zhsq_qk-ui/src/views/supermap/supermap.vue

+ 6 - 5
zhsq_qk-ui/src/views/supermap/supermap.vue

@@ -269,7 +269,7 @@ export default {
         icon: icon
       });
       //定义泡泡层
-      marker.on('mouseover', function () {
+      marker.on('click', 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;
     },
@@ -719,7 +719,8 @@ td {
 		.leaflet-popup-tip {
 		    background: rgba(4, 45, 106, 0.7);
 		    color: #333;
-		    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
+		    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
+        width: 298px;
 		}
 		.leaflet-container a.leaflet-popup-close-button {
 		    position: absolute;