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.
- package/dist/{geo-editor-DqdojJXd.cjs → geo-editor-D7Ae1QRE.cjs} +8 -3
- package/dist/{geo-editor-DqdojJXd.cjs.map → geo-editor-D7Ae1QRE.cjs.map} +1 -1
- package/dist/{geo-editor-C_QnBCMc.js → geo-editor-DL22Ctld.js} +8 -3
- package/dist/{geo-editor-C_QnBCMc.js.map → geo-editor-DL22Ctld.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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-
|
|
21746
|
+
//# sourceMappingURL=geo-editor-D7Ae1QRE.cjs.map
|