This commit is contained in:
parent
cc057efa91
commit
5de70d6b3e
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
|
|
@ -173,7 +173,6 @@ export default {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
console.log("无告警");
|
||||
this.iswarning = false;
|
||||
if (media) {
|
||||
media.pause(); // 无告警时停止播放
|
||||
|
|
@ -270,9 +269,7 @@ export default {
|
|||
this.isContracted = !this.isContracted; // 切换状态
|
||||
},
|
||||
handleDroneClick(value) {
|
||||
console.log(value, "value");
|
||||
if (value.drone_lon == 0 || value.drone_lat == 0) {
|
||||
console.log("经纬度为0");
|
||||
} else {
|
||||
window.marsMap.setCameraView({
|
||||
lat: value.drone_lat,
|
||||
|
|
@ -287,7 +284,6 @@ export default {
|
|||
// 取出对应无人机的轨迹列表
|
||||
if (value.BatchId === car.id) {
|
||||
// car.openPopup();
|
||||
console.log(car, "car.polyline");
|
||||
car.polyline.show = !car.polyline.show; // 轨迹线
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -161,13 +161,15 @@ export function allDevices(options, type, show) {
|
|||
graphicLayer.addGraphic(graphic);
|
||||
} else {
|
||||
graphic.show = show;
|
||||
graphic.setOptions({
|
||||
position: new mars3d.LngLatPoint(
|
||||
deviceItem.lon,
|
||||
deviceItem.lat,
|
||||
0
|
||||
)
|
||||
});
|
||||
if (deviceItem.icon === "9") {
|
||||
graphic.setOptions({
|
||||
position: new mars3d.LngLatPoint(
|
||||
deviceItem.lon,
|
||||
deviceItem.lat,
|
||||
0
|
||||
)
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -201,9 +203,11 @@ export function allDevices(options, type, show) {
|
|||
graphicLayer.addGraphic(graphic);
|
||||
} else {
|
||||
graphic.show = show;
|
||||
graphic.setOptions({
|
||||
position: new mars3d.LngLatPoint(deviceItem.lon, deviceItem.lat, 0)
|
||||
});
|
||||
if (deviceItem.icon === "9") {
|
||||
graphic.setOptions({
|
||||
position: new mars3d.LngLatPoint(deviceItem.lon, deviceItem.lat, 0)
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<div class="zoom-level">当前缩放等级: {{ zoomLevel }}</div>
|
||||
<div id="mars3dContainer" ref="MarsMap" class="mars3d-container"></div>
|
||||
<div class="pointingNorth" @click="mapNorth">
|
||||
<img src="@/assets/img/menu/shebei.png" alt="" />
|
||||
<img src="@/assets/img/menu/zhibeizhen.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -108,9 +108,9 @@ export default {
|
|||
window.marsMap.setCameraView({
|
||||
lat: currentView.lat,
|
||||
lng: currentView.lng,
|
||||
alt: currentView.alt,
|
||||
alt: currentView.alt <= 100 ? 8000 : currentView.alt,
|
||||
heading: 0, // 指北
|
||||
pitch: currentView.pitch,
|
||||
pitch: -90,
|
||||
roll: currentView.roll
|
||||
});
|
||||
}
|
||||
|
|
@ -138,6 +138,10 @@ export default {
|
|||
bottom: 5%;
|
||||
right: 25%;
|
||||
cursor: pointer;
|
||||
img {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue