zpf 1 жил өмнө
parent
commit
ba9bc85813

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

@@ -91,7 +91,6 @@ export default {
             geojson.coordinates.forEach((res) => {
                 const twoDArray = res[0];
                 const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
-                console.log('oneDArray: ', oneDArray);
 
                 BoxCommonVector_entity.entities.add({
                     polygon: {
@@ -228,11 +227,13 @@ export default {
                     }, 500);
                     setTimeout(() => {
                         clearInterval(time);
-                        BoxCommonVector_entity.entities.values.forEach((res) => {
+                        for (var i = 0; i < 10; i++) {
+                            BoxCommonVector_entity.entities.values.forEach((res) => {
 
-                            BoxCommonVector_entity.entities.remove(res);
+                                BoxCommonVector_entity.entities.remove(res);
 
-                        })
+                            })
+                        }
 
 
                     }, 6000)