|
@@ -414,6 +414,7 @@ export default {
|
|
|
//获取左侧动态感知设备
|
|
|
let that = this
|
|
|
selectDeviceType().then(res => {
|
|
|
+ that.cameraMarkersList=[]
|
|
|
that.visuForestCloudMapDeviceBOList = res.data.visuForestCloudMapDeviceBOList
|
|
|
|
|
|
that.region = res.data.visuForestCloudTodaySjfbBOList
|
|
@@ -454,6 +455,7 @@ export default {
|
|
|
|
|
|
markersMap.lng = res.data.visuForestCloudCameraBOList[i].longitude
|
|
|
markersMap.lat = res.data.visuForestCloudCameraBOList[i].latitude
|
|
|
+ markersMap.radius = res.data.visuForestCloudCameraBOList[i].cameraRadius
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
@@ -471,6 +473,22 @@ export default {
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>摄像头类型:' + res.data.visuForestCloudCameraBOList[i]
|
|
|
+ .cameraFactory + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>摄像头半径:' + res.data.visuForestCloudCameraBOList[i]
|
|
|
+ .cameraRadius + '米</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
'</div>'
|
|
|
this.cameraMarkersList.push(markersMap)
|
|
|
// cameraAccount: "1"
|
|
@@ -493,7 +511,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
- that.$refs.supermap.setMarkers(this.cameraMarkersList)
|
|
|
+ that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
|
|
|
}, 1000)
|
|
|
}
|
|
|
})
|
|
@@ -534,6 +552,7 @@ export default {
|
|
|
|
|
|
markersMap.lng = res.data[i].longitude
|
|
|
markersMap.lat = res.data[i].latitude
|
|
|
+ markersMap.radius = res.data[i].cameraRadius
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
@@ -550,6 +569,22 @@ export default {
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>摄像头类型:' + res.data[i]
|
|
|
+ .cameraFactory + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>摄像头半径:' + res.data[i]
|
|
|
+ .cameraRadius + '米</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
'</div>'
|
|
|
this.cameraMarkersList.push(markersMap)
|
|
|
// cameraAccount: "1"
|
|
@@ -572,7 +607,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
- that.$refs.supermap.setMarkers(this.cameraMarkersList)
|
|
|
+ that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
|
|
|
}, 1000)
|
|
|
}
|
|
|
})
|