@kq_npm/client3d_webgl_vue 0.8.5-beta → 0.8.6-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -944,6 +944,11 @@ class DrawManager {
944
944
  removeGeojsonByIdCustom(idCustom) {
945
945
  let dsList = this._viewer.dataSources.getByName(idCustom);
946
946
 
947
+ if (dsList.length <= 0) {
948
+ this.clear();
949
+ return;
950
+ }
951
+
947
952
  for (let i = 0; i < dsList.length; i++) {
948
953
  this._viewer.dataSources.remove(dsList[i], true);
949
954
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.8.5-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.8.6-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
@@ -491,6 +491,11 @@ class DrawManager {
491
491
  removeGeojsonByIdCustom(idCustom) {
492
492
  let dsList = this._viewer.dataSources.getByName(idCustom);
493
493
 
494
+ if (dsList.length <= 0) {
495
+ this.clear();
496
+ return;
497
+ }
498
+
494
499
  for (let i = 0; i < dsList.length; i++) {
495
500
  this._viewer.dataSources.remove(dsList[i], true);
496
501
  }