Ver código fonte

无人机不显示站点,清除加载照片

maxiaoxiao 6 meses atrás
pai
commit
27a08dd886
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      src/views/farmlandProtection/gdzl/wrjxx.vue

+ 5 - 4
src/views/farmlandProtection/gdzl/wrjxx.vue

@@ -106,13 +106,14 @@ export default {
       img_entity = new Cesium.CustomDataSource("img_entity");
       viewer.dataSources.add(img_entity);
     });
+    // this.bus.$on("setDepthAgainst", (val) => (this.depthAgainst = val));
   },
   methods: {
     geturl(url) {
       return window.axiosURI + "/file/upload/attachment" + url;
     },
     getData() {
-      getgdUav({ tilt: 80.0, height: 100.0 }).then((res) => {
+      getgdUav({ tilt: 80.0, height: 300.0 }).then((res) => {
         this.uavlsit = res.data;
       });
     },
@@ -159,7 +160,7 @@ export default {
       }
       if (routes) {
         routes.isLineVisible = chekpath;
-        routes.isStopVisible = chekpath;
+        routes.isStopVisible = false;
       }
     },
     getEntities(item, uavitem) {
@@ -292,8 +293,8 @@ export default {
       // var allStops = flyManager.getAllRouteStops();
       // flyManager.viewToStop(allStops[allStops.length - 1]);
       flyManagers[uavitem.id] && flyManagers[uavitem.id].stop();
-      img_entity.entities.values.forEach((ent) => {
-        img_entity.entities.remove(ent);
+      this.$nextTick(() => {
+        img_entity.entities.removeAll();
       });
       this.flyid = "";
       removeGeoJSON("flytb");