@artstesh/maps 1.1.24 → 1.1.25
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/bundles/maps-components-src-map.umd.js +13 -5
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +13 -5
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/messages/commands/modify-feature.command.js +7 -5
- package/dist/esm2015/map/public-api.js +2 -1
- package/dist/esm2015/map/services/drawing/feature-modification.service.js +3 -2
- package/dist/esm2015/src/map/messages/commands/modify-feature.command.js +7 -5
- package/dist/esm2015/src/map/public-api.js +2 -1
- package/dist/esm2015/src/map/services/drawing/feature-modification.service.js +3 -2
- package/dist/fesm2015/maps-components-src-map.js +9 -5
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +9 -5
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/messages/commands/modify-feature.command.d.ts +6 -4
- package/dist/map/public-api.d.ts +1 -0
- package/dist/src/map/messages/commands/modify-feature.command.d.ts +6 -4
- package/dist/src/map/public-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -905,16 +905,19 @@
|
|
|
905
905
|
/**
|
|
906
906
|
* Constructs an instance of the class.
|
|
907
907
|
*
|
|
908
|
-
* @param {PolygonModel} model - The
|
|
909
|
-
* @param {Style} style - The style
|
|
910
|
-
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the
|
|
908
|
+
* @param {PolygonModel} model - The model representing the polygon data.
|
|
909
|
+
* @param {Style} style - The style to be applied to the polygon.
|
|
910
|
+
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
|
|
911
|
+
* @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
|
|
911
912
|
*/
|
|
912
|
-
function ModifyFeatureCommand(model, style, format) {
|
|
913
|
+
function ModifyFeatureCommand(model, style, format, draggable) {
|
|
913
914
|
if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
|
|
915
|
+
if (draggable === void 0) { draggable = true; }
|
|
914
916
|
var _this = _super.call(this) || this;
|
|
915
917
|
_this.model = model;
|
|
916
918
|
_this.style = style;
|
|
917
919
|
_this.format = format;
|
|
920
|
+
_this.draggable = draggable;
|
|
918
921
|
return _this;
|
|
919
922
|
}
|
|
920
923
|
return ModifyFeatureCommand;
|
|
@@ -1883,7 +1886,8 @@
|
|
|
1883
1886
|
_this.observeCancelation(ev, l);
|
|
1884
1887
|
_this.initFeature(l, ev.model.feature);
|
|
1885
1888
|
_this.addModify(ev);
|
|
1886
|
-
|
|
1889
|
+
if (ev.draggable)
|
|
1890
|
+
_this.addDragging(ev);
|
|
1887
1891
|
});
|
|
1888
1892
|
});
|
|
1889
1893
|
};
|
|
@@ -3679,6 +3683,10 @@
|
|
|
3679
3683
|
* Generated bundle index. Do not edit.
|
|
3680
3684
|
*/
|
|
3681
3685
|
|
|
3686
|
+
Object.defineProperty(exports, 'Style', {
|
|
3687
|
+
enumerable: true,
|
|
3688
|
+
get: function () { return style.Style; }
|
|
3689
|
+
});
|
|
3682
3690
|
exports.AddControlCommand = AddControlCommand;
|
|
3683
3691
|
exports.CalculateAreaExecutor = CalculateAreaExecutor;
|
|
3684
3692
|
exports.CancelDrawingCommand = CancelDrawingCommand;
|