@artstesh/maps 1.1.13 → 1.1.14

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.
Files changed (180) hide show
  1. package/dist/bundles/maps-components-src-map.umd.js +392 -412
  2. package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
  3. package/dist/bundles/maps-components.umd.js +392 -412
  4. package/dist/bundles/maps-components.umd.js.map +1 -1
  5. package/dist/esm2015/map/map-plate/controls/map-control-zoom/map-control-zoom.component.js +3 -3
  6. package/dist/esm2015/map/map-plate/features/markers/markers.component.js +2 -2
  7. package/dist/esm2015/map/map-plate/features/polygons/polygons.component.js +2 -2
  8. package/dist/esm2015/map/map-plate/layers/cluster-layer/cluster-layer.component.js +2 -2
  9. package/dist/esm2015/map/map-plate/layers/cluster-layer/cluster-layer.manager.js +4 -4
  10. package/dist/esm2015/map/map-plate/layers/feature-layer/feature-layer.component.js +2 -2
  11. package/dist/esm2015/map/map-plate/layers/tile-layer/tile-layer.component.js +2 -2
  12. package/dist/esm2015/map/map-plate/tooltips/tooltip/tooltip.component.js +4 -4
  13. package/dist/esm2015/map/messages/commands/add-control.command.js +9 -5
  14. package/dist/esm2015/map/messages/commands/add-layer.command.js +1 -5
  15. package/dist/esm2015/map/messages/commands/add-tile.command.js +1 -5
  16. package/dist/esm2015/map/messages/commands/cancel-drawing.command.js +4 -5
  17. package/dist/esm2015/map/messages/commands/cancel-feature-modification.command.js +4 -5
  18. package/dist/esm2015/map/messages/commands/close-tooltip.command.js +9 -5
  19. package/dist/esm2015/map/messages/commands/draw-selection-area.command.js +13 -5
  20. package/dist/esm2015/map/messages/commands/fit-to-features.command.js +1 -5
  21. package/dist/esm2015/map/messages/commands/fit-to-polygons.command.js +11 -5
  22. package/dist/esm2015/map/messages/commands/modify-feature.command.js +14 -5
  23. package/dist/esm2015/map/messages/commands/place-layer-features.command.js +1 -5
  24. package/dist/esm2015/map/messages/commands/remove-control.command.js +14 -5
  25. package/dist/esm2015/map/messages/commands/remove-layer.command.js +1 -5
  26. package/dist/esm2015/map/messages/commands/remove-tile.command.js +1 -5
  27. package/dist/esm2015/map/messages/commands/set-map-center.command.js +1 -5
  28. package/dist/esm2015/map/messages/commands/start-drawing.command.js +11 -5
  29. package/dist/esm2015/map/messages/events/drawing-finished.event.js +1 -8
  30. package/dist/esm2015/map/messages/events/map-click.event.js +14 -5
  31. package/dist/esm2015/map/messages/events/map-move-end.event.js +7 -5
  32. package/dist/esm2015/map/messages/events/map-rendered.event.js +9 -5
  33. package/dist/esm2015/map/messages/executors/calculate-area.executor.js +8 -5
  34. package/dist/esm2015/map/messages/executors/filter-features-in-area.executor.js +9 -5
  35. package/dist/esm2015/map/messages/executors/filter-features-in-point.executor.js +13 -6
  36. package/dist/esm2015/map/messages/executors/generate-draw.executor.js +1 -5
  37. package/dist/esm2015/map/messages/executors/generate-zoom-control.executor.js +1 -5
  38. package/dist/esm2015/map/messages/executors/get-map-position.executor.js +1 -4
  39. package/dist/esm2015/map/messages/index.js +8 -8
  40. package/dist/esm2015/map/messages/queries/get-features-in-area.query.js +11 -5
  41. package/dist/esm2015/map/messages/queries/get-features-in-point.query.js +8 -5
  42. package/dist/esm2015/map/messages/queries/get-layer.query.js +1 -5
  43. package/dist/esm2015/map/models/drawing-type.enum.js +14 -1
  44. package/dist/esm2015/map/models/feature-format.enum.js +9 -1
  45. package/dist/esm2015/map/models/map-position.model.js +1 -1
  46. package/dist/esm2015/map/models/map-settings.js +47 -1
  47. package/dist/esm2015/map/services/controls/controls.service.js +4 -6
  48. package/dist/esm2015/map/services/drawing/drawing.service.js +9 -15
  49. package/dist/esm2015/map/services/drawing/feature-modification.service.js +5 -7
  50. package/dist/esm2015/map/services/map-click.service.js +2 -2
  51. package/dist/esm2015/map/services/map-feature.service.js +4 -4
  52. package/dist/esm2015/map/services/map-management.service.js +12 -12
  53. package/dist/esm2015/map/services/map-postboy.service.js +6 -2
  54. package/dist/esm2015/map/services/map-state.service.js +3 -3
  55. package/dist/esm2015/map/services/message-registrator.service.js +30 -30
  56. package/dist/esm2015/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.js +3 -3
  57. package/dist/esm2015/src/map/map-plate/features/markers/markers.component.js +2 -2
  58. package/dist/esm2015/src/map/map-plate/features/polygons/polygons.component.js +2 -2
  59. package/dist/esm2015/src/map/map-plate/layers/cluster-layer/cluster-layer.component.js +2 -2
  60. package/dist/esm2015/src/map/map-plate/layers/cluster-layer/cluster-layer.manager.js +4 -4
  61. package/dist/esm2015/src/map/map-plate/layers/feature-layer/feature-layer.component.js +2 -2
  62. package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.component.js +2 -2
  63. package/dist/esm2015/src/map/map-plate/tooltips/tooltip/tooltip.component.js +4 -4
  64. package/dist/esm2015/src/map/messages/commands/add-control.command.js +9 -5
  65. package/dist/esm2015/src/map/messages/commands/add-layer.command.js +1 -5
  66. package/dist/esm2015/src/map/messages/commands/add-tile.command.js +1 -5
  67. package/dist/esm2015/src/map/messages/commands/cancel-drawing.command.js +4 -5
  68. package/dist/esm2015/src/map/messages/commands/cancel-feature-modification.command.js +4 -5
  69. package/dist/esm2015/src/map/messages/commands/close-tooltip.command.js +9 -5
  70. package/dist/esm2015/src/map/messages/commands/draw-selection-area.command.js +13 -5
  71. package/dist/esm2015/src/map/messages/commands/fit-to-features.command.js +1 -5
  72. package/dist/esm2015/src/map/messages/commands/fit-to-polygons.command.js +11 -5
  73. package/dist/esm2015/src/map/messages/commands/modify-feature.command.js +14 -5
  74. package/dist/esm2015/src/map/messages/commands/place-layer-features.command.js +1 -5
  75. package/dist/esm2015/src/map/messages/commands/remove-control.command.js +14 -5
  76. package/dist/esm2015/src/map/messages/commands/remove-layer.command.js +1 -5
  77. package/dist/esm2015/src/map/messages/commands/remove-tile.command.js +1 -5
  78. package/dist/esm2015/src/map/messages/commands/set-map-center.command.js +1 -5
  79. package/dist/esm2015/src/map/messages/commands/start-drawing.command.js +11 -5
  80. package/dist/esm2015/src/map/messages/events/drawing-finished.event.js +1 -8
  81. package/dist/esm2015/src/map/messages/events/map-click.event.js +14 -5
  82. package/dist/esm2015/src/map/messages/events/map-move-end.event.js +7 -5
  83. package/dist/esm2015/src/map/messages/events/map-rendered.event.js +9 -5
  84. package/dist/esm2015/src/map/messages/executors/calculate-area.executor.js +8 -5
  85. package/dist/esm2015/src/map/messages/executors/filter-features-in-area.executor.js +9 -5
  86. package/dist/esm2015/src/map/messages/executors/filter-features-in-point.executor.js +13 -6
  87. package/dist/esm2015/src/map/messages/executors/generate-draw.executor.js +1 -5
  88. package/dist/esm2015/src/map/messages/executors/generate-zoom-control.executor.js +1 -5
  89. package/dist/esm2015/src/map/messages/executors/get-map-position.executor.js +1 -4
  90. package/dist/esm2015/src/map/messages/index.js +8 -8
  91. package/dist/esm2015/src/map/messages/queries/get-features-in-area.query.js +11 -5
  92. package/dist/esm2015/src/map/messages/queries/get-features-in-point.query.js +8 -5
  93. package/dist/esm2015/src/map/messages/queries/get-layer.query.js +1 -5
  94. package/dist/esm2015/src/map/models/drawing-type.enum.js +14 -1
  95. package/dist/esm2015/src/map/models/feature-format.enum.js +9 -1
  96. package/dist/esm2015/src/map/models/map-position.model.js +1 -1
  97. package/dist/esm2015/src/map/models/map-settings.js +47 -1
  98. package/dist/esm2015/src/map/services/controls/controls.service.js +4 -6
  99. package/dist/esm2015/src/map/services/drawing/drawing.service.js +9 -15
  100. package/dist/esm2015/src/map/services/drawing/feature-modification.service.js +5 -7
  101. package/dist/esm2015/src/map/services/map-click.service.js +2 -2
  102. package/dist/esm2015/src/map/services/map-feature.service.js +4 -4
  103. package/dist/esm2015/src/map/services/map-management.service.js +12 -12
  104. package/dist/esm2015/src/map/services/map-postboy.service.js +6 -2
  105. package/dist/esm2015/src/map/services/map-state.service.js +3 -3
  106. package/dist/esm2015/src/map/services/message-registrator.service.js +30 -30
  107. package/dist/fesm2015/maps-components-src-map.js +368 -275
  108. package/dist/fesm2015/maps-components-src-map.js.map +1 -1
  109. package/dist/fesm2015/maps-components.js +368 -275
  110. package/dist/fesm2015/maps-components.js.map +1 -1
  111. package/dist/map/messages/commands/add-control.command.d.ts +8 -2
  112. package/dist/map/messages/commands/add-layer.command.d.ts +0 -2
  113. package/dist/map/messages/commands/add-tile.command.d.ts +0 -2
  114. package/dist/map/messages/commands/cancel-drawing.command.d.ts +3 -2
  115. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +3 -2
  116. package/dist/map/messages/commands/close-tooltip.command.d.ts +8 -2
  117. package/dist/map/messages/commands/draw-selection-area.command.d.ts +12 -2
  118. package/dist/map/messages/commands/fit-to-features.command.d.ts +0 -2
  119. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +10 -2
  120. package/dist/map/messages/commands/modify-feature.command.d.ts +13 -2
  121. package/dist/map/messages/commands/place-layer-features.command.d.ts +0 -2
  122. package/dist/map/messages/commands/remove-control.command.d.ts +13 -2
  123. package/dist/map/messages/commands/remove-layer.command.d.ts +0 -2
  124. package/dist/map/messages/commands/remove-tile.command.d.ts +0 -2
  125. package/dist/map/messages/commands/set-map-center.command.d.ts +0 -2
  126. package/dist/map/messages/commands/start-drawing.command.d.ts +10 -2
  127. package/dist/map/messages/events/drawing-finished.event.d.ts +0 -3
  128. package/dist/map/messages/events/map-click.event.d.ts +13 -2
  129. package/dist/map/messages/events/map-move-end.event.d.ts +6 -2
  130. package/dist/map/messages/events/map-rendered.event.d.ts +8 -2
  131. package/dist/map/messages/executors/calculate-area.executor.d.ts +7 -2
  132. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +8 -2
  133. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +12 -3
  134. package/dist/map/messages/executors/generate-draw.executor.d.ts +0 -2
  135. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +0 -2
  136. package/dist/map/messages/executors/get-map-position.executor.d.ts +0 -1
  137. package/dist/map/messages/index.d.ts +7 -7
  138. package/dist/map/messages/queries/get-features-in-area.query.d.ts +10 -2
  139. package/dist/map/messages/queries/get-features-in-point.query.d.ts +7 -2
  140. package/dist/map/messages/queries/get-layer.query.d.ts +0 -2
  141. package/dist/map/models/drawing-type.enum.d.ts +13 -0
  142. package/dist/map/models/feature-format.enum.d.ts +8 -0
  143. package/dist/map/models/map-position.model.d.ts +12 -0
  144. package/dist/map/models/map-settings.d.ts +46 -0
  145. package/dist/package.json +1 -1
  146. package/dist/src/map/messages/commands/add-control.command.d.ts +8 -2
  147. package/dist/src/map/messages/commands/add-layer.command.d.ts +0 -2
  148. package/dist/src/map/messages/commands/add-tile.command.d.ts +0 -2
  149. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +3 -2
  150. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +3 -2
  151. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +8 -2
  152. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +12 -2
  153. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +0 -2
  154. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +10 -2
  155. package/dist/src/map/messages/commands/modify-feature.command.d.ts +13 -2
  156. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +0 -2
  157. package/dist/src/map/messages/commands/remove-control.command.d.ts +13 -2
  158. package/dist/src/map/messages/commands/remove-layer.command.d.ts +0 -2
  159. package/dist/src/map/messages/commands/remove-tile.command.d.ts +0 -2
  160. package/dist/src/map/messages/commands/set-map-center.command.d.ts +0 -2
  161. package/dist/src/map/messages/commands/start-drawing.command.d.ts +10 -2
  162. package/dist/src/map/messages/events/drawing-finished.event.d.ts +0 -3
  163. package/dist/src/map/messages/events/map-click.event.d.ts +13 -2
  164. package/dist/src/map/messages/events/map-move-end.event.d.ts +6 -2
  165. package/dist/src/map/messages/events/map-rendered.event.d.ts +8 -2
  166. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +7 -2
  167. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +8 -2
  168. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +12 -3
  169. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +0 -2
  170. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +0 -2
  171. package/dist/src/map/messages/executors/get-map-position.executor.d.ts +0 -1
  172. package/dist/src/map/messages/index.d.ts +7 -7
  173. package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +10 -2
  174. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +7 -2
  175. package/dist/src/map/messages/queries/get-layer.query.d.ts +0 -2
  176. package/dist/src/map/models/drawing-type.enum.d.ts +13 -0
  177. package/dist/src/map/models/feature-format.enum.d.ts +8 -0
  178. package/dist/src/map/models/map-position.model.d.ts +12 -0
  179. package/dist/src/map/models/map-settings.d.ts +46 -0
  180. package/package.json +14 -13
@@ -541,6 +541,10 @@
541
541
  _a[exports.MapLyrs.Terrain] = 'p',
542
542
  _a);
543
543
 
544
+ /**
545
+ * Represents the configurable settings for a map instance, providing
546
+ * options for center coordinates, zoom levels, map layers, and language.
547
+ */
544
548
  var MapSettings = /** @class */ (function () {
545
549
  function MapSettings() {
546
550
  this.center = [0, 0];
@@ -560,24 +564,66 @@
560
564
  result.language = model.language;
561
565
  return result;
562
566
  };
567
+ /**
568
+ * Sets the center for the map settings.
569
+ *
570
+ * @param {number[]} center - A two-element array representing the latitude and longitude of the map's center.
571
+ * @return {MapSettings} A new MapSettings object with the updated center.
572
+ */
563
573
  MapSettings.prototype.setCenter = function (center) {
564
574
  return MapSettings.copy(Object.assign(Object.assign({}, this), { center: center }));
565
575
  };
576
+ /**
577
+ * Sets the maximum zoom level for the map.
578
+ *
579
+ * @param {number} maxZoom - The maximum zoom level to be set.
580
+ * @return {MapSettings} A new instance of MapSettings with the updated maximum zoom level.
581
+ */
566
582
  MapSettings.prototype.setMaxZoom = function (maxZoom) {
567
583
  return MapSettings.copy(Object.assign(Object.assign({}, this), { maxZoom: maxZoom }));
568
584
  };
585
+ /**
586
+ * Sets the minimum zoom level for the map settings.
587
+ *
588
+ * @param {number} minZoom The minimum zoom level to be set. Must be a valid numeric value.
589
+ * @return {MapSettings} A new MapSettings object with the updated minimum zoom level.
590
+ */
569
591
  MapSettings.prototype.setMinZoom = function (minZoom) {
570
592
  return MapSettings.copy(Object.assign(Object.assign({}, this), { minZoom: minZoom }));
571
593
  };
594
+ /**
595
+ * Adjusts the zoom level of the map by setting the specified value.
596
+ *
597
+ * @param {number} zoom - The desired zoom level to be set.
598
+ * @return {MapSettings} A new MapSettings instance with the updated zoom level.
599
+ */
572
600
  MapSettings.prototype.setZoom = function (zoom) {
573
601
  return MapSettings.copy(Object.assign(Object.assign({}, this), { zoom: zoom }));
574
602
  };
603
+ /**
604
+ * Sets the layers in the map settings with the provided layers.
605
+ *
606
+ * @param {MapLyrs} lyrs - The layers to be set in the map settings.
607
+ * @return {MapSettings} A new instance of MapSettings with the updated layers.
608
+ */
575
609
  MapSettings.prototype.setLyrs = function (lyrs) {
576
610
  return MapSettings.copy(Object.assign(Object.assign({}, this), { lyrs: lyrs }));
577
611
  };
612
+ /**
613
+ * Updates the language setting for the map configuration and returns a new instance with the updated language.
614
+ *
615
+ * @param {string} language - The language to be set for the map configuration.
616
+ * @return {MapSettings} A new instance of MapSettings with the updated language.
617
+ */
578
618
  MapSettings.prototype.setLanguage = function (language) {
579
619
  return MapSettings.copy(Object.assign(Object.assign({}, this), { language: language }));
580
620
  };
621
+ /**
622
+ * Compares the current MapSettings instance with another to determine if they are identical.
623
+ *
624
+ * @param {MapSettings} model - The MapSettings instance to compare with the current instance.
625
+ * @return {boolean} Returns true if both MapSettings instances have the same properties and values; otherwise, false.
626
+ */
581
627
  MapSettings.prototype.isSame = function (model) {
582
628
  if (this.maxZoom !== model.maxZoom)
583
629
  return false;
@@ -675,6 +721,19 @@
675
721
  return PolygonModel;
676
722
  }());
677
723
 
724
+ /**
725
+ * Enum representing various drawing types.
726
+ *
727
+ * This enumeration is used to define the types of drawable shapes
728
+ * within a specific drawing context. Each member corresponds to
729
+ * a specific type of drawing.
730
+ *
731
+ * Members:
732
+ * - `Polygon`: Represents a polygonal shape (e.g., triangle, pentagon, etc.).
733
+ * - `Circle`: Represents a circular shape.
734
+ * - `Square`: Represents a square shape.
735
+ * - `Box`: Represents a rectangular box shape.
736
+ */
678
737
  exports.DrawingType = void 0;
679
738
  (function (DrawingType) {
680
739
  DrawingType[DrawingType["Polygon"] = 1] = "Polygon";
@@ -683,6 +742,14 @@
683
742
  DrawingType[DrawingType["Box"] = 4] = "Box";
684
743
  })(exports.DrawingType || (exports.DrawingType = {}));
685
744
 
745
+ /**
746
+ * An enumeration representing different formats for feature outputs.
747
+ * This can be used to specify the desired output format when dealing with geospatial data.
748
+ *
749
+ * Enumerators:
750
+ * - GeoJson: Represents the GeoJSON format for geospatial data.
751
+ * - WKT: Represents the Well-Known Text (WKT) format for geospatial data.
752
+ */
686
753
  exports.FeatureOutputFormat = void 0;
687
754
  (function (FeatureOutputFormat) {
688
755
  FeatureOutputFormat[FeatureOutputFormat["GeoJson"] = 1] = "GeoJson";
@@ -705,82 +772,54 @@
705
772
  return MapControl;
706
773
  }(control.Control));
707
774
 
708
- var MapRenderedEvent = /** @class */ (function (_super) {
709
- __extends(MapRenderedEvent, _super);
710
- function MapRenderedEvent(map) {
711
- var _this = _super.call(this) || this;
712
- _this.map = map;
713
- return _this;
714
- }
715
- Object.defineProperty(MapRenderedEvent.prototype, "id", {
716
- get: function () {
717
- return MapRenderedEvent.ID;
718
- },
719
- enumerable: false,
720
- configurable: true
721
- });
722
- return MapRenderedEvent;
723
- }(postboy.PostboyGenericMessage));
724
- MapRenderedEvent.ID = 'b6121807-3b89-4cd3-82cf-089d2cefdc4f';
725
-
726
- var MapClickEvent = /** @class */ (function (_super) {
727
- __extends(MapClickEvent, _super);
728
- function MapClickEvent(coordinates, entities, features) {
729
- var _this = _super.call(this) || this;
730
- _this.coordinates = coordinates;
731
- _this.entities = entities;
732
- _this.features = features;
733
- return _this;
734
- }
735
- Object.defineProperty(MapClickEvent.prototype, "id", {
736
- get: function () {
737
- return MapClickEvent.ID;
738
- },
739
- enumerable: false,
740
- configurable: true
741
- });
742
- return MapClickEvent;
743
- }(postboy.PostboyGenericMessage));
744
- MapClickEvent.ID = '323df526-8d9c-49c6-83e8-6e9a1e7762f7';
745
-
746
- var MapMoveEndEvent = /** @class */ (function (_super) {
747
- __extends(MapMoveEndEvent, _super);
748
- function MapMoveEndEvent(position) {
775
+ /**
776
+ * Represents a command to add a custom control to a map.
777
+ */
778
+ var AddControlCommand = /** @class */ (function (_super) {
779
+ __extends(AddControlCommand, _super);
780
+ /**
781
+ * Creates an instance of the class with the specified MapControl object.
782
+ *
783
+ * @param {MapControl} item - The MapControl object to be associated with the instance.
784
+ */
785
+ function AddControlCommand(item) {
749
786
  var _this = _super.call(this) || this;
750
- _this.position = position;
787
+ _this.item = item;
751
788
  return _this;
752
789
  }
753
- Object.defineProperty(MapMoveEndEvent.prototype, "id", {
754
- get: function () {
755
- return MapMoveEndEvent.ID;
756
- },
757
- enumerable: false,
758
- configurable: true
759
- });
760
- return MapMoveEndEvent;
761
- }(postboy.PostboyGenericMessage));
762
- MapMoveEndEvent.ID = 'f21f783e-b5af-4489-9fec-8027fd07a8ad';
790
+ return AddControlCommand;
791
+ }(postboy.PostboyGenericMessage));
763
792
 
793
+ /**
794
+ * A command class that represents the action to close a tooltip.
795
+ */
764
796
  var CloseTooltipCommand = /** @class */ (function (_super) {
765
797
  __extends(CloseTooltipCommand, _super);
798
+ /**
799
+ * Creates an instance of the class with the specified tooltip ID.
800
+ *
801
+ * @param {string} tooltipId - The unique identifier for the tooltip.
802
+ */
766
803
  function CloseTooltipCommand(tooltipId) {
767
804
  var _this = _super.call(this) || this;
768
805
  _this.tooltipId = tooltipId;
769
806
  return _this;
770
807
  }
771
- Object.defineProperty(CloseTooltipCommand.prototype, "id", {
772
- get: function () {
773
- return CloseTooltipCommand.ID;
774
- },
775
- enumerable: false,
776
- configurable: true
777
- });
778
808
  return CloseTooltipCommand;
779
- }(postboy.PostboyGenericMessage));
780
- CloseTooltipCommand.ID = '4896d52c-e34f-4994-bcfd-32832d12dbe4';
809
+ }(postboy.PostboyGenericMessage));
781
810
 
811
+ /**
812
+ * Represents a command to start a drawing operation.
813
+ */
782
814
  var StartDrawingCommand = /** @class */ (function (_super) {
783
815
  __extends(StartDrawingCommand, _super);
816
+ /**
817
+ * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
818
+ *
819
+ * @param {DrawingType} type - The type of the drawing to be created.
820
+ * @param {Style} style - The style defining visual appearance of the drawing.
821
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
822
+ */
784
823
  function StartDrawingCommand(type, style, format) {
785
824
  if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
786
825
  var _this = _super.call(this) || this;
@@ -789,35 +828,34 @@
789
828
  _this.format = format;
790
829
  return _this;
791
830
  }
792
- Object.defineProperty(StartDrawingCommand.prototype, "id", {
793
- get: function () {
794
- return StartDrawingCommand.ID;
795
- },
796
- enumerable: false,
797
- configurable: true
798
- });
799
831
  return StartDrawingCommand;
800
- }(postboy.PostboyCallbackMessage));
801
- StartDrawingCommand.ID = 'da904f4b-a1c8-4db7-a6af-14d9ee18ec8c';
832
+ }(postboy.PostboyCallbackMessage));
802
833
 
834
+ /**
835
+ * Represents a command to cancel a drawing action.
836
+ */
803
837
  var CancelDrawingCommand = /** @class */ (function (_super) {
804
838
  __extends(CancelDrawingCommand, _super);
805
839
  function CancelDrawingCommand() {
806
840
  return _super !== null && _super.apply(this, arguments) || this;
807
841
  }
808
- Object.defineProperty(CancelDrawingCommand.prototype, "id", {
809
- get: function () {
810
- return CancelDrawingCommand.ID;
811
- },
812
- enumerable: false,
813
- configurable: true
814
- });
815
842
  return CancelDrawingCommand;
816
- }(postboy.PostboyGenericMessage));
817
- CancelDrawingCommand.ID = '7d38d983-feba-4176-a66b-18175e5ecd6b';
843
+ }(postboy.PostboyGenericMessage));
818
844
 
845
+ /**
846
+ * Class representing a command to draw a selection area with a specific type and style.
847
+ *
848
+ * @return {Dictionary<IIdentified[]>} - a collection of features inside the selected area, grouped by a layer's name
849
+ */
819
850
  var DrawSelectionAreaCommand = /** @class */ (function (_super) {
820
851
  __extends(DrawSelectionAreaCommand, _super);
852
+ /**
853
+ * Constructs a new instance with the specified type, style, and optional set of ignored items.
854
+ *
855
+ * @param {DrawingType} type - The type of drawing to be created.
856
+ * @param {Style} style - The style information for the drawing.
857
+ * @param {Set<string>} [ignore=new Set<string>()] - Optional set of items to be ignored.
858
+ */
821
859
  function DrawSelectionAreaCommand(type, style, ignore) {
822
860
  if (ignore === void 0) { ignore = new Set(); }
823
861
  var _this = _super.call(this) || this;
@@ -826,19 +864,24 @@
826
864
  _this.ignore = ignore;
827
865
  return _this;
828
866
  }
829
- Object.defineProperty(DrawSelectionAreaCommand.prototype, "id", {
830
- get: function () {
831
- return DrawSelectionAreaCommand.ID;
832
- },
833
- enumerable: false,
834
- configurable: true
835
- });
836
867
  return DrawSelectionAreaCommand;
837
- }(postboy.PostboyCallbackMessage));
838
- DrawSelectionAreaCommand.ID = '573d8a0d-f25b-42b7-9ad7-0ac6d86ac362';
868
+ }(postboy.PostboyCallbackMessage));
839
869
 
870
+ /**
871
+ * Represents a command to modify a feature with a specific style and output format
872
+ * for a polygonal model.
873
+ *
874
+ * @return {string | null} a string representation of the modified feature in the appropriate format
875
+ */
840
876
  var ModifyFeatureCommand = /** @class */ (function (_super) {
841
877
  __extends(ModifyFeatureCommand, _super);
878
+ /**
879
+ * Constructs an instance of the class.
880
+ *
881
+ * @param {PolygonModel} model - The polygon model to be used.
882
+ * @param {Style} style - The style configuration for the polygon.
883
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the features. Default is GeoJson.
884
+ */
842
885
  function ModifyFeatureCommand(model, style, format) {
843
886
  if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
844
887
  var _this = _super.call(this) || this;
@@ -847,68 +890,42 @@
847
890
  _this.format = format;
848
891
  return _this;
849
892
  }
850
- Object.defineProperty(ModifyFeatureCommand.prototype, "id", {
851
- get: function () {
852
- return ModifyFeatureCommand.ID;
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
893
  return ModifyFeatureCommand;
858
- }(postboy.PostboyCallbackMessage));
859
- ModifyFeatureCommand.ID = 'ead85caa-24c6-4844-a68c-2cea91774c8c';
894
+ }(postboy.PostboyCallbackMessage));
860
895
 
896
+ /**
897
+ * Represents a command to cancel a feature modification.
898
+ */
861
899
  var CancelFeatureModificationCommand = /** @class */ (function (_super) {
862
900
  __extends(CancelFeatureModificationCommand, _super);
863
901
  function CancelFeatureModificationCommand() {
864
902
  return _super !== null && _super.apply(this, arguments) || this;
865
903
  }
866
- Object.defineProperty(CancelFeatureModificationCommand.prototype, "id", {
867
- get: function () {
868
- return CancelFeatureModificationCommand.ID;
869
- },
870
- enumerable: false,
871
- configurable: true
872
- });
873
904
  return CancelFeatureModificationCommand;
874
- }(postboy.PostboyGenericMessage));
875
- CancelFeatureModificationCommand.ID = '9c9fb40f-ea95-4704-8177-0e9ecabf36fa';
876
-
877
- var AddControlCommand = /** @class */ (function (_super) {
878
- __extends(AddControlCommand, _super);
879
- function AddControlCommand(item) {
880
- var _this = _super.call(this) || this;
881
- _this.item = item;
882
- return _this;
883
- }
884
- Object.defineProperty(AddControlCommand.prototype, "id", {
885
- get: function () {
886
- return AddControlCommand.ID;
887
- },
888
- enumerable: false,
889
- configurable: true
890
- });
891
- return AddControlCommand;
892
- }(postboy.PostboyGenericMessage));
893
- AddControlCommand.ID = '8e1c06eb-b395-4fe1-929c-ebf0805eeb49';
905
+ }(postboy.PostboyGenericMessage));
894
906
 
907
+ /**
908
+ * Represents a command to remove a map control from the map.
909
+ *
910
+ * The command is identified by a unique static ID, and it requires a MapControl item
911
+ * to specify the control to be removed.
912
+ *
913
+ * @extends PostboyGenericMessage
914
+ */
895
915
  var RemoveControlCommand = /** @class */ (function (_super) {
896
916
  __extends(RemoveControlCommand, _super);
917
+ /**
918
+ * Constructs an instance of the class.
919
+ *
920
+ * @param {MapControl} item - The map control instance to be removed.
921
+ */
897
922
  function RemoveControlCommand(item) {
898
923
  var _this = _super.call(this) || this;
899
924
  _this.item = item;
900
925
  return _this;
901
926
  }
902
- Object.defineProperty(RemoveControlCommand.prototype, "id", {
903
- get: function () {
904
- return RemoveControlCommand.ID;
905
- },
906
- enumerable: false,
907
- configurable: true
908
- });
909
927
  return RemoveControlCommand;
910
- }(postboy.PostboyGenericMessage));
911
- RemoveControlCommand.ID = '361641e0-804a-4930-8c27-0cea6330dbfc';
928
+ }(postboy.PostboyGenericMessage));
912
929
 
913
930
  /**
914
931
  * Forces map to move to a specific point
@@ -928,37 +945,21 @@
928
945
  _this.zoom = zoom;
929
946
  return _this;
930
947
  }
931
- Object.defineProperty(SetMapCenterCommand.prototype, "id", {
932
- get: function () {
933
- return SetMapCenterCommand.ID;
934
- },
935
- enumerable: false,
936
- configurable: true
937
- });
938
948
  return SetMapCenterCommand;
939
- }(postboy.PostboyGenericMessage));
940
- SetMapCenterCommand.ID = 'd50e89c9-6707-4f8c-ab57-65fcef232182';
941
-
942
- var CalculateAreaExecutor = /** @class */ (function (_super) {
943
- __extends(CalculateAreaExecutor, _super);
944
- function CalculateAreaExecutor(polygon) {
945
- var _this = _super.call(this) || this;
946
- _this.polygon = polygon;
947
- return _this;
948
- }
949
- Object.defineProperty(CalculateAreaExecutor.prototype, "id", {
950
- get: function () {
951
- return CalculateAreaExecutor.ID;
952
- },
953
- enumerable: false,
954
- configurable: true
955
- });
956
- return CalculateAreaExecutor;
957
- }(postboy.PostboyExecutor));
958
- CalculateAreaExecutor.ID = '172ecf46-86b5-4f46-a5f1-96ba2cbb1694';
949
+ }(postboy.PostboyGenericMessage));
959
950
 
951
+ /**
952
+ * FitToPolygonsCommand is a command used to fit a given set of polygon features
953
+ * to the viewable area, optionally applying a zoom transformation afterwards.
954
+ */
960
955
  var FitToPolygonsCommand = /** @class */ (function (_super) {
961
956
  __extends(FitToPolygonsCommand, _super);
957
+ /**
958
+ * Creates an instance of the class with specified polygon features and an optional zoom level.
959
+ *
960
+ * @param {PolygonModel[]} features - An array of polygon models to fit to.
961
+ * @param {number} [zoomAfter=0] - Optional zoom level change to apply after initialization. Defaults to 0.
962
+ */
962
963
  function FitToPolygonsCommand(features, zoomAfter) {
963
964
  if (zoomAfter === void 0) { zoomAfter = 0; }
964
965
  var _this = _super.call(this) || this;
@@ -966,16 +967,129 @@
966
967
  _this.zoomAfter = zoomAfter;
967
968
  return _this;
968
969
  }
969
- Object.defineProperty(FitToPolygonsCommand.prototype, "id", {
970
- get: function () {
971
- return FitToPolygonsCommand.ID;
972
- },
973
- enumerable: false,
974
- configurable: true
975
- });
976
970
  return FitToPolygonsCommand;
977
- }(postboy.PostboyGenericMessage));
978
- FitToPolygonsCommand.ID = 'a9e42b23-ffaf-4c46-8370-e0432cd14d60';
971
+ }(postboy.PostboyGenericMessage));
972
+
973
+ /**
974
+ * Represents an event triggered when a map rendering process is completed.
975
+ */
976
+ var MapRenderedEvent = /** @class */ (function (_super) {
977
+ __extends(MapRenderedEvent, _super);
978
+ /**
979
+ * Constructor for creating an instance of the class.
980
+ *
981
+ * @param {Map} map - The map instance to be used by the class.
982
+ */
983
+ function MapRenderedEvent(map) {
984
+ var _this = _super.call(this) || this;
985
+ _this.map = map;
986
+ return _this;
987
+ }
988
+ return MapRenderedEvent;
989
+ }(postboy.PostboyGenericMessage));
990
+
991
+ /**
992
+ * Represents an event triggered by a click on a map, containing information about the
993
+ * click's location, relevant entities, and features present at the clicked position.
994
+ *
995
+ * @extends {PostboyGenericMessage}
996
+ */
997
+ var MapClickEvent = /** @class */ (function (_super) {
998
+ __extends(MapClickEvent, _super);
999
+ /**
1000
+ * Creates an instance of this class with the provided coordinates, entities, and features.
1001
+ *
1002
+ * @param {number[]} coordinates - An array representing the coordinates.
1003
+ * @param {{ [layer: string]: IIdentified[] }} entities - A mapping of layer names to arrays of IIdentified entities.
1004
+ * @param {{ [layer: string]: Feature<Geometry>[] }} features - A mapping of layer names to arrays of features with geometry.
1005
+ */
1006
+ function MapClickEvent(coordinates, entities, features) {
1007
+ var _this = _super.call(this) || this;
1008
+ _this.coordinates = coordinates;
1009
+ _this.entities = entities;
1010
+ _this.features = features;
1011
+ return _this;
1012
+ }
1013
+ return MapClickEvent;
1014
+ }(postboy.PostboyGenericMessage));
1015
+
1016
+ /**
1017
+ * Represents an event that is triggered when the movement of a map ends.
1018
+ * This class is used to capture the final position of a map after a movement operation.
1019
+ *
1020
+ * @property {MapPosition | null} position - The final position of the map after movement ends. Can be null.
1021
+ */
1022
+ var MapMoveEndEvent = /** @class */ (function (_super) {
1023
+ __extends(MapMoveEndEvent, _super);
1024
+ function MapMoveEndEvent(position) {
1025
+ var _this = _super.call(this) || this;
1026
+ _this.position = position;
1027
+ return _this;
1028
+ }
1029
+ return MapMoveEndEvent;
1030
+ }(postboy.PostboyGenericMessage));
1031
+
1032
+ /**
1033
+ * A class responsible for executing filtering of geographical features
1034
+ * based on a specific geographical point (latitude and longitude).
1035
+ *
1036
+ * @template Feature - A geographical feature that is processed by the executor.
1037
+ * @template Geometry - The type of geometry associated with the feature.
1038
+ */
1039
+ var FilterFeaturesInPointExecutor = /** @class */ (function (_super) {
1040
+ __extends(FilterFeaturesInPointExecutor, _super);
1041
+ /**
1042
+ * Constructs a new instance with the specified latitude, longitude, and features.
1043
+ *
1044
+ * @param {number} lat - The latitude coordinate.
1045
+ * @param {number} lng - The longitude coordinate.
1046
+ * @param {Feature<Geometry>[]} features - The array of features associated with the location.
1047
+ */
1048
+ function FilterFeaturesInPointExecutor(lat, lng, features) {
1049
+ var _this = _super.call(this) || this;
1050
+ _this.lat = lat;
1051
+ _this.lng = lng;
1052
+ _this.features = features;
1053
+ return _this;
1054
+ }
1055
+ return FilterFeaturesInPointExecutor;
1056
+ }(postboy.PostboyExecutor));
1057
+
1058
+ /**
1059
+ * A class that extends the PostboyExecutor to filter geographical features within a specified area.
1060
+ * This class is designed to process a list of input features and determine which of them are located inside the provided area geometry.
1061
+ *
1062
+ * Parameters:
1063
+ * - `area`: A Geometry object defining the area to filter geographical features.
1064
+ * - `features`: An array of geographical features, represented as `Feature<Geometry>` objects, to be filtered by their presence within the specified area.
1065
+ */
1066
+ var FilterFeaturesInAreaExecutor = /** @class */ (function (_super) {
1067
+ __extends(FilterFeaturesInAreaExecutor, _super);
1068
+ function FilterFeaturesInAreaExecutor(area, features) {
1069
+ var _this = _super.call(this) || this;
1070
+ _this.area = area;
1071
+ _this.features = features;
1072
+ return _this;
1073
+ }
1074
+ return FilterFeaturesInAreaExecutor;
1075
+ }(postboy.PostboyExecutor));
1076
+
1077
+ /**
1078
+ * An executor responsible for calculating the area of a given polygon.
1079
+ *
1080
+ * Use this class to manage and execute area-calculation logic for a polygon.
1081
+ *
1082
+ * @return {number} - the spherical area (in square meters)
1083
+ */
1084
+ var CalculateAreaExecutor = /** @class */ (function (_super) {
1085
+ __extends(CalculateAreaExecutor, _super);
1086
+ function CalculateAreaExecutor(polygon) {
1087
+ var _this = _super.call(this) || this;
1088
+ _this.polygon = polygon;
1089
+ return _this;
1090
+ }
1091
+ return CalculateAreaExecutor;
1092
+ }(postboy.PostboyExecutor));
979
1093
 
980
1094
  /**
981
1095
  * A message that allows to get the current state of the map.
@@ -987,19 +1101,22 @@
987
1101
  function GetMapPositionExecutor() {
988
1102
  return _super.call(this) || this;
989
1103
  }
990
- Object.defineProperty(GetMapPositionExecutor.prototype, "id", {
991
- get: function () {
992
- return GetMapPositionExecutor.ID;
993
- },
994
- enumerable: false,
995
- configurable: true
996
- });
997
1104
  return GetMapPositionExecutor;
998
1105
  }(postboy.PostboyExecutor));
999
1106
  GetMapPositionExecutor.ID = '52c95689-d09b-4082-ba58-9183ea96a213';
1000
1107
 
1108
+ /**
1109
+ * Class representing a query to get features within a specified geographical area.
1110
+ * The query optionally takes a set of layer names to ignore during the operation.
1111
+ */
1001
1112
  var GetFeaturesInAreaQuery = /** @class */ (function (_super) {
1002
1113
  __extends(GetFeaturesInAreaQuery, _super);
1114
+ /**
1115
+ * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
1116
+ *
1117
+ * @param {Geometry} area - The Geometry object used to define the area.
1118
+ * @param {Set<string>} [ignore] - An optional set of layer names that will be ignored. Defaults to an empty set.
1119
+ */
1003
1120
  function GetFeaturesInAreaQuery(area, ignore) {
1004
1121
  if (ignore === void 0) { ignore = new Set(); }
1005
1122
  var _this = _super.call(this) || this;
@@ -1007,35 +1124,8 @@
1007
1124
  _this.ignore = ignore;
1008
1125
  return _this;
1009
1126
  }
1010
- Object.defineProperty(GetFeaturesInAreaQuery.prototype, "id", {
1011
- get: function () {
1012
- return GetFeaturesInAreaQuery.ID;
1013
- },
1014
- enumerable: false,
1015
- configurable: true
1016
- });
1017
1127
  return GetFeaturesInAreaQuery;
1018
- }(postboy.PostboyCallbackMessage));
1019
- GetFeaturesInAreaQuery.ID = 'efcf4271-a07a-40e0-9f02-d4dade40b8ac';
1020
-
1021
- var FilterFeaturesInAreaExecutor = /** @class */ (function (_super) {
1022
- __extends(FilterFeaturesInAreaExecutor, _super);
1023
- function FilterFeaturesInAreaExecutor(area, features) {
1024
- var _this = _super.call(this) || this;
1025
- _this.area = area;
1026
- _this.features = features;
1027
- return _this;
1028
- }
1029
- Object.defineProperty(FilterFeaturesInAreaExecutor.prototype, "id", {
1030
- get: function () {
1031
- return FilterFeaturesInAreaExecutor.ID;
1032
- },
1033
- enumerable: false,
1034
- configurable: true
1035
- });
1036
- return FilterFeaturesInAreaExecutor;
1037
- }(postboy.PostboyExecutor));
1038
- FilterFeaturesInAreaExecutor.ID = '36bb2d94-8028-4512-90dd-2386af3fc67c';
1128
+ }(postboy.PostboyCallbackMessage));
1039
1129
 
1040
1130
  /**
1041
1131
  * Represents a query to retrieve features located at a specific geographical point.
@@ -1043,6 +1133,13 @@
1043
1133
  */
1044
1134
  var GetFeaturesInPointQuery = /** @class */ (function (_super) {
1045
1135
  __extends(GetFeaturesInPointQuery, _super);
1136
+ /**
1137
+ * Constructor for initializing a geographic coordinate object.
1138
+ *
1139
+ * @param {number} lat - The latitude of the location.
1140
+ * @param {number} lng - The longitude of the location.
1141
+ * @param {Set<string>} [ignore=new Set<string>()] - An optional set of strings to ignore during processing.
1142
+ */
1046
1143
  function GetFeaturesInPointQuery(lat, lng, ignore) {
1047
1144
  if (ignore === void 0) { ignore = new Set(); }
1048
1145
  var _this = _super.call(this) || this;
@@ -1051,39 +1148,8 @@
1051
1148
  _this.ignore = ignore;
1052
1149
  return _this;
1053
1150
  }
1054
- Object.defineProperty(GetFeaturesInPointQuery.prototype, "id", {
1055
- get: function () {
1056
- return GetFeaturesInPointQuery.ID;
1057
- },
1058
- enumerable: false,
1059
- configurable: true
1060
- });
1061
1151
  return GetFeaturesInPointQuery;
1062
- }(postboy.PostboyCallbackMessage));
1063
- GetFeaturesInPointQuery.ID = '7c051c97-bbf1-47eb-baa3-4d1eef6f281f';
1064
-
1065
- /**
1066
- * The FilterFeaturesInPointExecutor class is responsible for filtering features within a given point.
1067
- */
1068
- var FilterFeaturesInPointExecutor = /** @class */ (function (_super) {
1069
- __extends(FilterFeaturesInPointExecutor, _super);
1070
- function FilterFeaturesInPointExecutor(lat, lng, features) {
1071
- var _this = _super.call(this) || this;
1072
- _this.lat = lat;
1073
- _this.lng = lng;
1074
- _this.features = features;
1075
- return _this;
1076
- }
1077
- Object.defineProperty(FilterFeaturesInPointExecutor.prototype, "id", {
1078
- get: function () {
1079
- return FilterFeaturesInPointExecutor.ID;
1080
- },
1081
- enumerable: false,
1082
- configurable: true
1083
- });
1084
- return FilterFeaturesInPointExecutor;
1085
- }(postboy.PostboyExecutor));
1086
- FilterFeaturesInPointExecutor.ID = '5b859282-5d5a-47ca-a6ad-863a66c8b82b';
1152
+ }(postboy.PostboyCallbackMessage));
1087
1153
 
1088
1154
  var AddLayerCommand = /** @class */ (function (_super) {
1089
1155
  __extends(AddLayerCommand, _super);
@@ -1092,16 +1158,8 @@
1092
1158
  _this.layer = layer;
1093
1159
  return _this;
1094
1160
  }
1095
- Object.defineProperty(AddLayerCommand.prototype, "id", {
1096
- get: function () {
1097
- return AddLayerCommand.ID;
1098
- },
1099
- enumerable: false,
1100
- configurable: true
1101
- });
1102
1161
  return AddLayerCommand;
1103
- }(postboy.PostboyGenericMessage));
1104
- AddLayerCommand.ID = 'd93e250f-92bc-43ac-9c6a-46c521a1aaa5';
1162
+ }(postboy.PostboyGenericMessage));
1105
1163
 
1106
1164
  var PlaceLayerFeaturesCommand = /** @class */ (function (_super) {
1107
1165
  __extends(PlaceLayerFeaturesCommand, _super);
@@ -1111,16 +1169,8 @@
1111
1169
  _this.features = features;
1112
1170
  return _this;
1113
1171
  }
1114
- Object.defineProperty(PlaceLayerFeaturesCommand.prototype, "id", {
1115
- get: function () {
1116
- return PlaceLayerFeaturesCommand.ID;
1117
- },
1118
- enumerable: false,
1119
- configurable: true
1120
- });
1121
1172
  return PlaceLayerFeaturesCommand;
1122
- }(postboy.PostboyGenericMessage));
1123
- PlaceLayerFeaturesCommand.ID = '8caf86bc-869b-426f-b36d-4642f6b8aab0';
1173
+ }(postboy.PostboyGenericMessage));
1124
1174
 
1125
1175
  var RemoveLayerCommand = /** @class */ (function (_super) {
1126
1176
  __extends(RemoveLayerCommand, _super);
@@ -1129,16 +1179,8 @@
1129
1179
  _this.layer = layer;
1130
1180
  return _this;
1131
1181
  }
1132
- Object.defineProperty(RemoveLayerCommand.prototype, "id", {
1133
- get: function () {
1134
- return RemoveLayerCommand.ID;
1135
- },
1136
- enumerable: false,
1137
- configurable: true
1138
- });
1139
1182
  return RemoveLayerCommand;
1140
- }(postboy.PostboyGenericMessage));
1141
- RemoveLayerCommand.ID = 'ab484e0e-e185-45cd-8434-12101f3c7eb1';
1183
+ }(postboy.PostboyGenericMessage));
1142
1184
 
1143
1185
  var AddTileCommand = /** @class */ (function (_super) {
1144
1186
  __extends(AddTileCommand, _super);
@@ -1147,16 +1189,8 @@
1147
1189
  _this.layer = layer;
1148
1190
  return _this;
1149
1191
  }
1150
- Object.defineProperty(AddTileCommand.prototype, "id", {
1151
- get: function () {
1152
- return AddTileCommand.ID;
1153
- },
1154
- enumerable: false,
1155
- configurable: true
1156
- });
1157
1192
  return AddTileCommand;
1158
- }(postboy.PostboyGenericMessage));
1159
- AddTileCommand.ID = '25b7df28-72ce-4453-9fe6-54285a2fdc57';
1193
+ }(postboy.PostboyGenericMessage));
1160
1194
 
1161
1195
  var RemoveTileCommand = /** @class */ (function (_super) {
1162
1196
  __extends(RemoveTileCommand, _super);
@@ -1165,16 +1199,8 @@
1165
1199
  _this.layer = layer;
1166
1200
  return _this;
1167
1201
  }
1168
- Object.defineProperty(RemoveTileCommand.prototype, "id", {
1169
- get: function () {
1170
- return RemoveTileCommand.ID;
1171
- },
1172
- enumerable: false,
1173
- configurable: true
1174
- });
1175
1202
  return RemoveTileCommand;
1176
- }(postboy.PostboyGenericMessage));
1177
- RemoveTileCommand.ID = 'c36ccc0b-5638-4819-b148-2de57a59a5b7';
1203
+ }(postboy.PostboyGenericMessage));
1178
1204
 
1179
1205
  var FitToFeaturesCommand = /** @class */ (function (_super) {
1180
1206
  __extends(FitToFeaturesCommand, _super);
@@ -1185,16 +1211,8 @@
1185
1211
  _this.zoomAfter = zoomAfter;
1186
1212
  return _this;
1187
1213
  }
1188
- Object.defineProperty(FitToFeaturesCommand.prototype, "id", {
1189
- get: function () {
1190
- return FitToFeaturesCommand.ID;
1191
- },
1192
- enumerable: false,
1193
- configurable: true
1194
- });
1195
1214
  return FitToFeaturesCommand;
1196
- }(postboy.PostboyGenericMessage));
1197
- FitToFeaturesCommand.ID = '76cdc091-3793-4b6c-82f7-1e0334cf08a8';
1215
+ }(postboy.PostboyGenericMessage));
1198
1216
 
1199
1217
  var GetLayerQuery = /** @class */ (function (_super) {
1200
1218
  __extends(GetLayerQuery, _super);
@@ -1203,32 +1221,16 @@
1203
1221
  _this.name = name;
1204
1222
  return _this;
1205
1223
  }
1206
- Object.defineProperty(GetLayerQuery.prototype, "id", {
1207
- get: function () {
1208
- return GetLayerQuery.ID;
1209
- },
1210
- enumerable: false,
1211
- configurable: true
1212
- });
1213
1224
  return GetLayerQuery;
1214
- }(postboy.PostboyCallbackMessage));
1215
- GetLayerQuery.ID = '5c04c87b-8a93-4c2a-979e-d1e313d860ed';
1225
+ }(postboy.PostboyCallbackMessage));
1216
1226
 
1217
1227
  var DrawingFinishedEvent = /** @class */ (function (_super) {
1218
1228
  __extends(DrawingFinishedEvent, _super);
1219
1229
  function DrawingFinishedEvent() {
1220
- return _super.call(this) || this;
1230
+ return _super !== null && _super.apply(this, arguments) || this;
1221
1231
  }
1222
- Object.defineProperty(DrawingFinishedEvent.prototype, "id", {
1223
- get: function () {
1224
- return DrawingFinishedEvent.ID;
1225
- },
1226
- enumerable: false,
1227
- configurable: true
1228
- });
1229
1232
  return DrawingFinishedEvent;
1230
- }(postboy.PostboyGenericMessage));
1231
- DrawingFinishedEvent.ID = 'c724b68e-b4eb-4783-90f1-a8e31973fd36';
1233
+ }(postboy.PostboyGenericMessage));
1232
1234
 
1233
1235
  var DrawingGenerationService = /** @class */ (function () {
1234
1236
  function DrawingGenerationService() {
@@ -1290,16 +1292,8 @@
1290
1292
  _this.type = type;
1291
1293
  return _this;
1292
1294
  }
1293
- Object.defineProperty(GenerateDrawExecutor.prototype, "id", {
1294
- get: function () {
1295
- return GenerateDrawExecutor.ID;
1296
- },
1297
- enumerable: false,
1298
- configurable: true
1299
- });
1300
1295
  return GenerateDrawExecutor;
1301
- }(postboy.PostboyExecutor));
1302
- GenerateDrawExecutor.ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
1296
+ }(postboy.PostboyExecutor));
1303
1297
 
1304
1298
  var GenerateZoomControlExecutor = /** @class */ (function (_super) {
1305
1299
  __extends(GenerateZoomControlExecutor, _super);
@@ -1308,16 +1302,8 @@
1308
1302
  _this.settings = settings;
1309
1303
  return _this;
1310
1304
  }
1311
- Object.defineProperty(GenerateZoomControlExecutor.prototype, "id", {
1312
- get: function () {
1313
- return GenerateZoomControlExecutor.ID;
1314
- },
1315
- enumerable: false,
1316
- configurable: true
1317
- });
1318
1305
  return GenerateZoomControlExecutor;
1319
- }(postboy.PostboyExecutor));
1320
- GenerateZoomControlExecutor.ID = 'ff16a833-c68e-4b1a-bc23-c0d16b002810';
1306
+ }(postboy.PostboyExecutor));
1321
1307
 
1322
1308
  var ZoomControlFactory = /** @class */ (function () {
1323
1309
  function ZoomControlFactory() {
@@ -1338,7 +1324,11 @@
1338
1324
  __extends(MapPostboyService, _super);
1339
1325
  function MapPostboyService() {
1340
1326
  var _this = _super.call(this) || this;
1341
- _this.addLocker({ locker: StartDrawingCommand.ID, unlocker: DrawingFinishedEvent.ID, locking: [MapClickEvent.ID] });
1327
+ _this.addLocker({
1328
+ locker: StartDrawingCommand.name,
1329
+ unlocker: DrawingFinishedEvent.name,
1330
+ locking: [MapClickEvent.name],
1331
+ });
1342
1332
  return _this;
1343
1333
  }
1344
1334
  return MapPostboyService;
@@ -1367,7 +1357,7 @@
1367
1357
  };
1368
1358
  MapManagementService.prototype.observeRemoveTile = function () {
1369
1359
  var _this = this;
1370
- this.postboy.subscribe(RemoveTileCommand.ID).subscribe(function (c) {
1360
+ this.postboy.sub(RemoveTileCommand).subscribe(function (c) {
1371
1361
  if (!_this.map)
1372
1362
  return;
1373
1363
  _this.map.removeLayer(c.layer);
@@ -1375,11 +1365,11 @@
1375
1365
  };
1376
1366
  MapManagementService.prototype.observeLayerQuery = function () {
1377
1367
  var _this = this;
1378
- this.postboy.subscribe(GetLayerQuery.ID).subscribe(function (ev) { return ev.finish(_this.layers.take(ev.name)); });
1368
+ this.postboy.sub(GetLayerQuery).subscribe(function (ev) { return ev.finish(_this.layers.take(ev.name)); });
1379
1369
  };
1380
1370
  MapManagementService.prototype.observeAddTile = function () {
1381
1371
  var _this = this;
1382
- this.postboy.subscribe(AddTileCommand.ID).subscribe(function (c) {
1372
+ this.postboy.sub(AddTileCommand).subscribe(function (c) {
1383
1373
  if (!_this.map)
1384
1374
  return;
1385
1375
  _this.map.addLayer(c.layer);
@@ -1387,13 +1377,13 @@
1387
1377
  };
1388
1378
  MapManagementService.prototype.observeMapRender = function () {
1389
1379
  var _this = this;
1390
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1380
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1391
1381
  _this.map = m.map;
1392
1382
  });
1393
1383
  };
1394
1384
  MapManagementService.prototype.observeAddLayer = function () {
1395
1385
  var _this = this;
1396
- this.postboy.subscribe(AddLayerCommand.ID).subscribe(function (c) {
1386
+ this.postboy.sub(AddLayerCommand).subscribe(function (c) {
1397
1387
  if (!_this.map)
1398
1388
  return;
1399
1389
  _this.layers.put(c.layer.get('name'), c.layer);
@@ -1402,7 +1392,7 @@
1402
1392
  };
1403
1393
  MapManagementService.prototype.observePlaceFeatures = function () {
1404
1394
  var _this = this;
1405
- this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe(function (c) {
1395
+ this.postboy.sub(PlaceLayerFeaturesCommand).subscribe(function (c) {
1406
1396
  var _a, _b;
1407
1397
  if (!_this.layers.has(c.layer))
1408
1398
  return;
@@ -1415,7 +1405,7 @@
1415
1405
  };
1416
1406
  MapManagementService.prototype.observeRemoveLayer = function () {
1417
1407
  var _this = this;
1418
- this.postboy.subscribe(RemoveLayerCommand.ID).subscribe(function (c) {
1408
+ this.postboy.sub(RemoveLayerCommand).subscribe(function (c) {
1419
1409
  if (!_this.map)
1420
1410
  return;
1421
1411
  _this.layers.rmv(c.layer.get('name'));
@@ -1424,11 +1414,11 @@
1424
1414
  };
1425
1415
  MapManagementService.prototype.observeFeaturesInArea = function () {
1426
1416
  var _this = this;
1427
- this.postboy.subscribe(GetFeaturesInAreaQuery.ID).subscribe(function (qr) {
1417
+ this.postboy.sub(GetFeaturesInAreaQuery).subscribe(function (qr) {
1428
1418
  var result = new collections.Dictionary();
1429
1419
  _this.forEachLayer(function (l, s) {
1430
1420
  var _a;
1431
- var features = _this.postboy.execute(new FilterFeaturesInAreaExecutor(qr.area, (_a = s === null || s === void 0 ? void 0 : s.getFeatures()) !== null && _a !== void 0 ? _a : []));
1421
+ var features = _this.postboy.exec(new FilterFeaturesInAreaExecutor(qr.area, (_a = s === null || s === void 0 ? void 0 : s.getFeatures()) !== null && _a !== void 0 ? _a : []));
1432
1422
  result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1433
1423
  }, qr.ignore);
1434
1424
  qr.finish(result);
@@ -1436,11 +1426,11 @@
1436
1426
  };
1437
1427
  MapManagementService.prototype.observeFeaturesInPoint = function () {
1438
1428
  var _this = this;
1439
- this.postboy.subscribe(GetFeaturesInPointQuery.ID).subscribe(function (qr) {
1429
+ this.postboy.sub(GetFeaturesInPointQuery).subscribe(function (qr) {
1440
1430
  var result = new collections.Dictionary();
1441
1431
  _this.forEachLayer(function (l, s) {
1442
1432
  var _a;
1443
- var features = _this.postboy.execute(new FilterFeaturesInPointExecutor(qr.lat, qr.lng, (_a = s === null || s === void 0 ? void 0 : s.getFeatures()) !== null && _a !== void 0 ? _a : []));
1433
+ var features = _this.postboy.exec(new FilterFeaturesInPointExecutor(qr.lat, qr.lng, (_a = s === null || s === void 0 ? void 0 : s.getFeatures()) !== null && _a !== void 0 ? _a : []));
1444
1434
  result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1445
1435
  }, qr.ignore);
1446
1436
  qr.finish(result);
@@ -1485,7 +1475,7 @@
1485
1475
  MapStateService.prototype.observeMapRendering = function () {
1486
1476
  var _this = this;
1487
1477
  this.postboy
1488
- .subscribe(MapRenderedEvent.ID)
1478
+ .sub(MapRenderedEvent)
1489
1479
  .pipe(operators.first())
1490
1480
  .subscribe(function (ev) {
1491
1481
  var _a;
@@ -1497,7 +1487,7 @@
1497
1487
  };
1498
1488
  MapStateService.prototype.observeCenter = function () {
1499
1489
  var _this = this;
1500
- this.postboy.subscribe(SetMapCenterCommand.ID).subscribe(function (c) {
1490
+ this.postboy.sub(SetMapCenterCommand).subscribe(function (c) {
1501
1491
  var _a, _b;
1502
1492
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getView().setCenter([c.lng, c.lat]);
1503
1493
  if (c.zoom)
@@ -1523,7 +1513,7 @@
1523
1513
  };
1524
1514
  MapFeatureService.prototype.observeMapRender = function () {
1525
1515
  var _this = this;
1526
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1516
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1527
1517
  _this.map = m.map;
1528
1518
  if (_this.fitPolygonsWaiting)
1529
1519
  _this.postboy.fire(_this.fitPolygonsWaiting);
@@ -1531,13 +1521,13 @@
1531
1521
  };
1532
1522
  MapFeatureService.prototype.observeFitToFeatures = function () {
1533
1523
  var _this = this;
1534
- this.postboy.subscribe(FitToFeaturesCommand.ID).subscribe(function (cmd) {
1524
+ this.postboy.sub(FitToFeaturesCommand).subscribe(function (cmd) {
1535
1525
  _this.fitToGeometries(cmd.features.map(function (f) { return f.getGeometry(); }), cmd.zoomAfter);
1536
1526
  });
1537
1527
  };
1538
1528
  MapFeatureService.prototype.observeFitToPolygons = function () {
1539
1529
  var _this = this;
1540
- this.postboy.subscribe(FitToPolygonsCommand.ID).subscribe(function (cmd) {
1530
+ this.postboy.sub(FitToPolygonsCommand).subscribe(function (cmd) {
1541
1531
  if (!_this.map) {
1542
1532
  _this.fitPolygonsWaiting = cmd;
1543
1533
  return;
@@ -1590,7 +1580,7 @@
1590
1580
  };
1591
1581
  MapClickService.prototype.observeMapRender = function () {
1592
1582
  var _this = this;
1593
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1583
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1594
1584
  var _a;
1595
1585
  _this.map = m.map;
1596
1586
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.on('singleclick', function (e) {
@@ -1625,24 +1615,20 @@
1625
1615
  };
1626
1616
  DrawingService.prototype.observeSelectArea = function () {
1627
1617
  var _this = this;
1628
- this.postboy.subscribe(DrawSelectionAreaCommand.ID).subscribe(function (ev) {
1629
- var drawingCommand = new StartDrawingCommand(ev.type, ev.style);
1630
- drawingCommand.result.subscribe(function (r) {
1618
+ this.postboy.sub(DrawSelectionAreaCommand).subscribe(function (ev) {
1619
+ _this.postboy.fireCallback(new StartDrawingCommand(ev.type, ev.style), function (r) {
1631
1620
  if (!r) {
1632
1621
  ev.finish(new collections.Dictionary());
1633
1622
  return;
1634
1623
  }
1635
1624
  var area = PolygonModel.fromGeoJson(1, r).feature.getGeometry();
1636
- var getFeaturesCommand = new GetFeaturesInAreaQuery(area, ev.ignore);
1637
- getFeaturesCommand.result.subscribe(function (result) { return ev.finish(result); });
1638
- _this.postboy.fire(getFeaturesCommand);
1625
+ _this.postboy.fireCallback(new GetFeaturesInAreaQuery(area, ev.ignore), function (result) { return ev.finish(result); });
1639
1626
  });
1640
- _this.postboy.fire(drawingCommand);
1641
1627
  });
1642
1628
  };
1643
1629
  DrawingService.prototype.observeDrawing = function () {
1644
1630
  var _this = this;
1645
- this.postboy.subscribe(StartDrawingCommand.ID).subscribe(function (ev) {
1631
+ this.postboy.sub(StartDrawingCommand).subscribe(function (ev) {
1646
1632
  _this.draw(function (l) {
1647
1633
  var _a;
1648
1634
  if (!l || !_this.map) {
@@ -1650,7 +1636,7 @@
1650
1636
  return;
1651
1637
  }
1652
1638
  var cancelSub = _this.observeCancelation(ev, l);
1653
- _this.drawInteraction = _this.postboy.execute(new GenerateDrawExecutor(l, ev.style, ev.type));
1639
+ _this.drawInteraction = _this.postboy.exec(new GenerateDrawExecutor(l, ev.style, ev.type));
1654
1640
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addInteraction(_this.drawInteraction);
1655
1641
  _this.drawInteraction.on('drawend', function (evt) {
1656
1642
  cancelSub.unsubscribe();
@@ -1667,19 +1653,17 @@
1667
1653
  };
1668
1654
  DrawingService.prototype.observeMapRender = function () {
1669
1655
  var _this = this;
1670
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1656
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1671
1657
  _this.map = m.map;
1672
1658
  });
1673
1659
  };
1674
1660
  DrawingService.prototype.draw = function (action) {
1675
- var query = new GetLayerQuery(MapConstants.DrawingLayerId);
1676
- query.result.subscribe(function (l) { return action(l); });
1677
- this.postboy.fire(query);
1661
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1678
1662
  };
1679
1663
  DrawingService.prototype.observeCancelation = function (ev, layer) {
1680
1664
  var _this = this;
1681
1665
  return this.postboy
1682
- .subscribe(CancelDrawingCommand.ID)
1666
+ .sub(CancelDrawingCommand)
1683
1667
  .pipe(operators.first())
1684
1668
  .subscribe(function () {
1685
1669
  ev.finish(null);
@@ -1713,7 +1697,7 @@
1713
1697
  };
1714
1698
  FeatureModificationService.prototype.observeModification = function () {
1715
1699
  var _this = this;
1716
- this.postboy.subscribe(ModifyFeatureCommand.ID).subscribe(function (ev) {
1700
+ this.postboy.sub(ModifyFeatureCommand).subscribe(function (ev) {
1717
1701
  _this.defineLayer(function (l) {
1718
1702
  if (!l || !_this.map) {
1719
1703
  _this.clearInteraction(l);
@@ -1766,19 +1750,17 @@
1766
1750
  };
1767
1751
  FeatureModificationService.prototype.observeMapRender = function () {
1768
1752
  var _this = this;
1769
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1753
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1770
1754
  _this.map = m.map;
1771
1755
  });
1772
1756
  };
1773
1757
  FeatureModificationService.prototype.defineLayer = function (action) {
1774
- var query = new GetLayerQuery(MapConstants.DrawingLayerId);
1775
- query.result.subscribe(function (l) { return action(l); });
1776
- this.postboy.fire(query);
1758
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1777
1759
  };
1778
1760
  FeatureModificationService.prototype.observeCancelation = function (ev, layer) {
1779
1761
  var _this = this;
1780
1762
  return this.postboy
1781
- .subscribe(CancelFeatureModificationCommand.ID)
1763
+ .sub(CancelFeatureModificationCommand)
1782
1764
  .pipe(operators.first())
1783
1765
  .subscribe(function () {
1784
1766
  ev.finish(null);
@@ -1810,7 +1792,7 @@
1810
1792
  ControlsService.prototype.observeMapRender = function () {
1811
1793
  var _this = this;
1812
1794
  this.postboy
1813
- .subscribe(MapRenderedEvent.ID)
1795
+ .sub(MapRenderedEvent)
1814
1796
  .pipe(operators.first())
1815
1797
  .subscribe(function (m) {
1816
1798
  _this.map = m.map;
@@ -1820,13 +1802,11 @@
1820
1802
  };
1821
1803
  ControlsService.prototype.observeAdding = function () {
1822
1804
  var _this = this;
1823
- this.postboy.subscribe(AddControlCommand.ID).subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addControl(c.item); });
1805
+ this.postboy.sub(AddControlCommand).subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addControl(c.item); });
1824
1806
  };
1825
1807
  ControlsService.prototype.observeRemoving = function () {
1826
1808
  var _this = this;
1827
- this.postboy
1828
- .subscribe(RemoveControlCommand.ID)
1829
- .subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.removeControl(c.item); });
1809
+ this.postboy.sub(RemoveControlCommand).subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.removeControl(c.item); });
1830
1810
  };
1831
1811
  return ControlsService;
1832
1812
  }());
@@ -1845,39 +1825,39 @@
1845
1825
  return _this;
1846
1826
  }
1847
1827
  MessageRegistratorService.prototype._up = function () {
1848
- this.registerReplay(MapRenderedEvent.ID);
1849
- this.registerReplay(PlaceLayerFeaturesCommand.ID);
1850
- this.registerReplay(RemoveControlCommand.ID);
1851
- this.registerReplay(AddControlCommand.ID);
1852
- this.registerReplay(SetMapCenterCommand.ID);
1853
- this.registerSubject(AddLayerCommand.ID);
1854
- this.registerSubject(RemoveLayerCommand.ID);
1855
- this.registerSubject(AddTileCommand.ID);
1856
- this.registerSubject(RemoveTileCommand.ID);
1857
- this.registerSubject(MapClickEvent.ID);
1858
- this.registerSubject(CloseTooltipCommand.ID);
1859
- this.registerSubject(FitToFeaturesCommand.ID);
1860
- this.registerSubject(FitToPolygonsCommand.ID);
1861
- this.registerSubject(MapMoveEndEvent.ID);
1862
- this.registerSubject(CancelDrawingCommand.ID);
1863
- this.registerSubject(StartDrawingCommand.ID);
1864
- this.registerSubject(GetLayerQuery.ID);
1865
- this.registerSubject(DrawingFinishedEvent.ID);
1866
- this.registerSubject(GetFeaturesInAreaQuery.ID);
1867
- this.registerSubject(DrawSelectionAreaCommand.ID);
1868
- this.registerSubject(CancelFeatureModificationCommand.ID);
1869
- this.registerSubject(ModifyFeatureCommand.ID);
1870
- this.registerSubject(GetFeaturesInPointQuery.ID);
1828
+ this.recordReplay(MapRenderedEvent);
1829
+ this.recordReplay(PlaceLayerFeaturesCommand);
1830
+ this.recordReplay(RemoveControlCommand);
1831
+ this.recordReplay(AddControlCommand);
1832
+ this.recordReplay(SetMapCenterCommand);
1833
+ this.recordSubject(AddLayerCommand);
1834
+ this.recordSubject(RemoveLayerCommand);
1835
+ this.recordSubject(AddTileCommand);
1836
+ this.recordSubject(RemoveTileCommand);
1837
+ this.recordSubject(MapClickEvent);
1838
+ this.recordSubject(CloseTooltipCommand);
1839
+ this.recordSubject(FitToFeaturesCommand);
1840
+ this.recordSubject(FitToPolygonsCommand);
1841
+ this.recordSubject(MapMoveEndEvent);
1842
+ this.recordSubject(CancelDrawingCommand);
1843
+ this.recordSubject(StartDrawingCommand);
1844
+ this.recordSubject(GetLayerQuery);
1845
+ this.recordSubject(DrawingFinishedEvent);
1846
+ this.recordSubject(GetFeaturesInAreaQuery);
1847
+ this.recordSubject(DrawSelectionAreaCommand);
1848
+ this.recordSubject(CancelFeatureModificationCommand);
1849
+ this.recordSubject(ModifyFeatureCommand);
1850
+ this.recordSubject(GetFeaturesInPointQuery);
1871
1851
  this.setExecutors();
1872
1852
  };
1873
1853
  MessageRegistratorService.prototype.setExecutors = function () {
1874
1854
  var _this = this;
1875
- this.registerExecutor(FilterFeaturesInAreaExecutor.ID, function (e) { return FeatureService.filterFeaturesInArea(e); });
1876
- this.registerExecutor(FilterFeaturesInPointExecutor.ID, function (e) { return FeatureService.filterFeaturesInPoint(e); });
1877
- this.registerExecutor(CalculateAreaExecutor.ID, function (e) { var _a, _b; return FeatureService.calculateArea((_b = (_a = e.polygon) === null || _a === void 0 ? void 0 : _a.feature) === null || _b === void 0 ? void 0 : _b.getGeometry()); });
1878
- this.registerExecutor(GenerateDrawExecutor.ID, function (e) { return DrawingGenerationService.getDraw(e); });
1879
- this.registerExecutor(GenerateZoomControlExecutor.ID, function (e) { return ZoomControlFactory.build(e.settings); });
1880
- this.registerExecutor(GetMapPositionExecutor.ID, function () { return _this.state.getMapPosition(); });
1855
+ this.recordExecutor(FilterFeaturesInAreaExecutor, function (e) { return FeatureService.filterFeaturesInArea(e); });
1856
+ this.recordExecutor(FilterFeaturesInPointExecutor, function (e) { return FeatureService.filterFeaturesInPoint(e); });
1857
+ this.recordExecutor(CalculateAreaExecutor, function (e) { var _a, _b; return FeatureService.calculateArea((_b = (_a = e.polygon) === null || _a === void 0 ? void 0 : _a.feature) === null || _b === void 0 ? void 0 : _b.getGeometry()); });
1858
+ this.recordExecutor(GenerateDrawExecutor, function (e) { return DrawingGenerationService.getDraw(e); });
1859
+ this.recordExecutor(GenerateZoomControlExecutor, function (e) { return ZoomControlFactory.build(e.settings); });
1860
+ this.recordExecutor(GetMapPositionExecutor, function () { return _this.state.getMapPosition(); });
1881
1861
  };
1882
1862
  return MessageRegistratorService;
1883
1863
  }(postboy.PostboyAbstractRegistrator));
@@ -2120,7 +2100,7 @@
2120
2100
  TileLayerComponent.prototype.ngOnInit = function () {
2121
2101
  var _this = this;
2122
2102
  this.postboy
2123
- .subscribe(MapRenderedEvent.ID)
2103
+ .sub(MapRenderedEvent)
2124
2104
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2125
2105
  .subscribe(function (m) { return _this.initLayer(); });
2126
2106
  };
@@ -2377,7 +2357,7 @@
2377
2357
  FeatureLayerComponent.prototype.ngOnInit = function () {
2378
2358
  var _this = this;
2379
2359
  this.postboy
2380
- .subscribe(MapRenderedEvent.ID)
2360
+ .sub(MapRenderedEvent)
2381
2361
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2382
2362
  .subscribe(function (m) { return _this.initLayer(); });
2383
2363
  };
@@ -2563,8 +2543,8 @@
2563
2543
  ClusterLayerManager.prototype.observeMapMovement = function () {
2564
2544
  var _this = this;
2565
2545
  rxjs.combineLatest([
2566
- this.postboy.subscribe(MapMoveEndEvent.ID).pipe(operators.auditTime(250)),
2567
- this.postboy.subscribe(MapRenderedEvent.ID),
2546
+ this.postboy.sub(MapMoveEndEvent).pipe(operators.auditTime(250)),
2547
+ this.postboy.sub(MapRenderedEvent),
2568
2548
  ]).subscribe(function (_d) {
2569
2549
  var _e = __read(_d, 2), movement = _e[0], renderEvent = _e[1];
2570
2550
  _this.checkClusterNecessity(renderEvent.map);
@@ -2572,7 +2552,7 @@
2572
2552
  };
2573
2553
  ClusterLayerManager.prototype.observeClick = function () {
2574
2554
  var _this = this;
2575
- this.postboy.subscribe(MapClickEvent.ID).subscribe(function (m) {
2555
+ this.postboy.sub(MapClickEvent).subscribe(function (m) {
2576
2556
  var _a, _b;
2577
2557
  if (((_b = (_a = m.features[_this.settings.name]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 1) {
2578
2558
  _this.postboy.fire(new FitToFeaturesCommand(m.features[_this.settings.name], -1));
@@ -2674,7 +2654,7 @@
2674
2654
  ClusterLayerComponent.prototype.ngOnInit = function () {
2675
2655
  var _this = this;
2676
2656
  this.postboy
2677
- .subscribe(MapRenderedEvent.ID)
2657
+ .sub(MapRenderedEvent)
2678
2658
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2679
2659
  .subscribe(function (m) { return _this.initLayer(); });
2680
2660
  };
@@ -2846,7 +2826,7 @@
2846
2826
  MarkersComponent.prototype.ngOnInit = function () {
2847
2827
  var _this = this;
2848
2828
  this.postboy
2849
- .subscribe(MapRenderedEvent.ID)
2829
+ .sub(MapRenderedEvent)
2850
2830
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2851
2831
  .subscribe(function () { return _this.putMarkers(); });
2852
2832
  };
@@ -2952,20 +2932,20 @@
2952
2932
  };
2953
2933
  TooltipComponent.prototype.observeMapClick = function () {
2954
2934
  var _this = this;
2955
- return this.postboy.subscribe(MapClickEvent.ID).subscribe(function (ev) {
2935
+ return this.postboy.sub(MapClickEvent).subscribe(function (ev) {
2956
2936
  _this._settings.show(ev) ? _this.addOverlay(ev.coordinates) : _this.removeOverlay();
2957
2937
  });
2958
2938
  };
2959
2939
  TooltipComponent.prototype.observeClose = function () {
2960
2940
  var _this = this;
2961
2941
  return this.postboy
2962
- .subscribe(CloseTooltipCommand.ID)
2942
+ .sub(CloseTooltipCommand)
2963
2943
  .pipe(operators.filter(function (ev) { return ev.tooltipId === _this._settings.id; }))
2964
2944
  .subscribe(function () { return _this.removeOverlay(); });
2965
2945
  };
2966
2946
  TooltipComponent.prototype.observeMapRender = function () {
2967
2947
  var _this = this;
2968
- return this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
2948
+ return this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
2969
2949
  _this.map = m.map;
2970
2950
  });
2971
2951
  };
@@ -3018,7 +2998,7 @@
3018
2998
  PolygonsComponent.prototype.ngOnInit = function () {
3019
2999
  var _this = this;
3020
3000
  this.postboy
3021
- .subscribe(MapRenderedEvent.ID)
3001
+ .sub(MapRenderedEvent)
3022
3002
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
3023
3003
  .subscribe(function () { return _this.putPolygons(); });
3024
3004
  };
@@ -3206,7 +3186,7 @@
3206
3186
  MapControlZoomComponent.prototype.ngOnInit = function () {
3207
3187
  var _this = this;
3208
3188
  this.postboy
3209
- .subscribe(MapRenderedEvent.ID)
3189
+ .sub(MapRenderedEvent)
3210
3190
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
3211
3191
  .subscribe(function (m) {
3212
3192
  _this.map = m.map;
@@ -3216,7 +3196,7 @@
3216
3196
  MapControlZoomComponent.prototype.setControl = function () {
3217
3197
  if (!this.map)
3218
3198
  return;
3219
- this.control = this.postboy.execute(new GenerateZoomControlExecutor(this._settings));
3199
+ this.control = this.postboy.exec(new GenerateZoomControlExecutor(this._settings));
3220
3200
  this.map.addControl(this.control);
3221
3201
  };
3222
3202
  return MapControlZoomComponent;