maplibre-gl-geo-editor 0.9.0 → 0.9.1

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.
@@ -19241,8 +19241,9 @@ class GeoEditor {
19241
19241
  * Disable all modes
19242
19242
  */
19243
19243
  disableAllModes() {
19244
+ let geomanDisable;
19244
19245
  if (this.geoman) {
19245
- this.geoman.disableAllModes();
19246
+ geomanDisable = this.geoman.disableAllModes();
19246
19247
  }
19247
19248
  this.scaleFeature.cancelScale();
19248
19249
  this.lassoFeature.disable();
@@ -19266,7 +19267,11 @@ class GeoEditor {
19266
19267
  this.state.isDrawing = false;
19267
19268
  this.state.isEditing = false;
19268
19269
  this.updateToolbarState();
19269
- this.applySnappingState();
19270
+ if (geomanDisable && typeof geomanDisable.then === "function") {
19271
+ geomanDisable.then(() => this.applySnappingState()).catch(() => this.applySnappingState());
19272
+ } else {
19273
+ this.applySnappingState();
19274
+ }
19270
19275
  }
19271
19276
  // ============================================================================
19272
19277
  // Finish polygon/line draw on double-click or right-click
@@ -21738,4 +21743,4 @@ exports.safeUnion = safeUnion;
21738
21743
  exports.selectFeaturesWithinLasso = selectFeaturesWithinLasso;
21739
21744
  exports.toSelectedFeatures = toSelectedFeatures;
21740
21745
  exports.toggleInSelection = toggleInSelection;
21741
- //# sourceMappingURL=geo-editor-DqdojJXd.cjs.map
21746
+ //# sourceMappingURL=geo-editor-D7Ae1QRE.cjs.map