|
|
@@ -192,6 +192,10 @@ export default {
|
|
|
},
|
|
|
lineFly(uavitem) {
|
|
|
this.stopPolylineFly(uavitem);
|
|
|
+ img_entity.entities.values.forEach((ent) => {
|
|
|
+ img_entity.entities.remove(ent);
|
|
|
+ });
|
|
|
+
|
|
|
if (this.flyid == uavitem.id) {
|
|
|
this.flyid = "";
|
|
|
} else {
|
|
|
@@ -271,11 +275,14 @@ export default {
|
|
|
beforeDestroy() {
|
|
|
// this.delatePoi("jt1");
|
|
|
// this.delatePoi("dw1");flyManagers
|
|
|
-
|
|
|
+ console.log("[dc-d]");
|
|
|
viewer.dataSources.remove(img_entity);
|
|
|
Object.keys(flyManagers).forEach((key) => {
|
|
|
flyManagers[key].stop();
|
|
|
+ flyManagers[key].currentRoute.isLineVisible = false;
|
|
|
+ flyManagers[key].currentRoute.isStopVisible = false;
|
|
|
});
|
|
|
+ flyManagers = {};
|
|
|
},
|
|
|
};
|
|
|
</script>
|