|
@@ -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;
|