Răsfoiți Sursa

解决山水工程定位跳转

maxiaoxiao 10 luni în urmă
părinte
comite
bf3fa164c0

+ 5 - 2
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -162,8 +162,11 @@ export default {
         this.tempdataLayerId = did_v;
         if (tdsy.layersObj[did_v]) {
           tdsy.layersObj[did_v].show = true;
-          viewer.flyTo(layerSources[did_v], {
-            offset: new Cesium.HeadingPitchRange(0, -45),
+          // viewer.flyTo(layerSources[did_v], {
+          //   offset: new Cesium.HeadingPitchRange(0, -45),
+          // });
+          loadGeoJSON(item.geom, null, { isfly: true }, (data) => {
+            layerSources[did_v] = data;
           });
         } else {
           this.goLayer(item.geom, did_v);