@artstesh/maps 1.1.37 → 1.2.0
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 +3 -7
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +3 -7
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/messages/executors/generate-zoom-control.executor.js +1 -1
- package/dist/esm2015/map/services/drawing/drawing.service.js +5 -2
- package/dist/esm2015/map/services/map-postboy.service.js +1 -9
- package/dist/esm2015/src/map/messages/executors/generate-zoom-control.executor.js +1 -1
- package/dist/esm2015/src/map/services/drawing/drawing.service.js +5 -2
- package/dist/esm2015/src/map/services/map-postboy.service.js +1 -9
- package/dist/fesm2015/maps-components-src-map.js +3 -6
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +3 -6
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +2 -2
- package/package.json +13 -3
|
@@ -1566,13 +1566,7 @@
|
|
|
1566
1566
|
var MapPostboyService = /** @class */ (function (_super) {
|
|
1567
1567
|
__extends(MapPostboyService, _super);
|
|
1568
1568
|
function MapPostboyService() {
|
|
1569
|
-
|
|
1570
|
-
_this.addLocker({
|
|
1571
|
-
locker: StartDrawingCommand.ID,
|
|
1572
|
-
unlocker: DrawingFinishedEvent.ID,
|
|
1573
|
-
locking: [MapClickEvent.ID],
|
|
1574
|
-
});
|
|
1575
|
-
return _this;
|
|
1569
|
+
return _super.call(this) || this;
|
|
1576
1570
|
}
|
|
1577
1571
|
return MapPostboyService;
|
|
1578
1572
|
}(postboy.PostboyService));
|
|
@@ -1910,6 +1904,7 @@
|
|
|
1910
1904
|
DrawingService.prototype.observeDrawing = function () {
|
|
1911
1905
|
var _this = this;
|
|
1912
1906
|
this.postboy.sub(StartDrawingCommand).subscribe(function (ev) {
|
|
1907
|
+
_this.postboy.exec(new postboy.LockMessage(MapClickEvent));
|
|
1913
1908
|
_this.draw(function (l) {
|
|
1914
1909
|
var _a;
|
|
1915
1910
|
if (!l || !_this.map) {
|
|
@@ -1960,6 +1955,7 @@
|
|
|
1960
1955
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.removeInteraction(this.drawInteraction);
|
|
1961
1956
|
layer === null || layer === void 0 ? void 0 : layer.setSource(new source.Vector({}));
|
|
1962
1957
|
}
|
|
1958
|
+
this.postboy.exec(new postboy.UnlockMessage(MapClickEvent));
|
|
1963
1959
|
setTimeout(function () { return _this.postboy.fire(new DrawingFinishedEvent()); }, 300);
|
|
1964
1960
|
};
|
|
1965
1961
|
return DrawingService;
|