@artstesh/maps 1.1.13 → 1.1.16

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 +398 -390
  2. package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
  3. package/dist/bundles/maps-components.umd.js +398 -390
  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 +10 -5
  14. package/dist/esm2015/map/messages/commands/add-layer.command.js +2 -5
  15. package/dist/esm2015/map/messages/commands/add-tile.command.js +2 -5
  16. package/dist/esm2015/map/messages/commands/cancel-drawing.command.js +5 -5
  17. package/dist/esm2015/map/messages/commands/cancel-feature-modification.command.js +5 -5
  18. package/dist/esm2015/map/messages/commands/close-tooltip.command.js +10 -5
  19. package/dist/esm2015/map/messages/commands/draw-selection-area.command.js +14 -5
  20. package/dist/esm2015/map/messages/commands/fit-to-features.command.js +2 -5
  21. package/dist/esm2015/map/messages/commands/fit-to-polygons.command.js +12 -5
  22. package/dist/esm2015/map/messages/commands/modify-feature.command.js +15 -5
  23. package/dist/esm2015/map/messages/commands/place-layer-features.command.js +2 -5
  24. package/dist/esm2015/map/messages/commands/remove-control.command.js +15 -5
  25. package/dist/esm2015/map/messages/commands/remove-layer.command.js +2 -5
  26. package/dist/esm2015/map/messages/commands/remove-tile.command.js +2 -5
  27. package/dist/esm2015/map/messages/commands/set-map-center.command.js +2 -5
  28. package/dist/esm2015/map/messages/commands/start-drawing.command.js +12 -5
  29. package/dist/esm2015/map/messages/events/drawing-finished.event.js +2 -8
  30. package/dist/esm2015/map/messages/events/map-click.event.js +15 -5
  31. package/dist/esm2015/map/messages/events/map-move-end.event.js +8 -5
  32. package/dist/esm2015/map/messages/events/map-rendered.event.js +10 -5
  33. package/dist/esm2015/map/messages/executors/calculate-area.executor.js +9 -5
  34. package/dist/esm2015/map/messages/executors/filter-features-in-area.executor.js +10 -5
  35. package/dist/esm2015/map/messages/executors/filter-features-in-point.executor.js +14 -6
  36. package/dist/esm2015/map/messages/executors/generate-draw.executor.js +2 -5
  37. package/dist/esm2015/map/messages/executors/generate-zoom-control.executor.js +2 -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 +12 -5
  41. package/dist/esm2015/map/messages/queries/get-features-in-point.query.js +9 -5
  42. package/dist/esm2015/map/messages/queries/get-layer.query.js +2 -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 +10 -5
  65. package/dist/esm2015/src/map/messages/commands/add-layer.command.js +2 -5
  66. package/dist/esm2015/src/map/messages/commands/add-tile.command.js +2 -5
  67. package/dist/esm2015/src/map/messages/commands/cancel-drawing.command.js +5 -5
  68. package/dist/esm2015/src/map/messages/commands/cancel-feature-modification.command.js +5 -5
  69. package/dist/esm2015/src/map/messages/commands/close-tooltip.command.js +10 -5
  70. package/dist/esm2015/src/map/messages/commands/draw-selection-area.command.js +14 -5
  71. package/dist/esm2015/src/map/messages/commands/fit-to-features.command.js +2 -5
  72. package/dist/esm2015/src/map/messages/commands/fit-to-polygons.command.js +12 -5
  73. package/dist/esm2015/src/map/messages/commands/modify-feature.command.js +15 -5
  74. package/dist/esm2015/src/map/messages/commands/place-layer-features.command.js +2 -5
  75. package/dist/esm2015/src/map/messages/commands/remove-control.command.js +15 -5
  76. package/dist/esm2015/src/map/messages/commands/remove-layer.command.js +2 -5
  77. package/dist/esm2015/src/map/messages/commands/remove-tile.command.js +2 -5
  78. package/dist/esm2015/src/map/messages/commands/set-map-center.command.js +2 -5
  79. package/dist/esm2015/src/map/messages/commands/start-drawing.command.js +12 -5
  80. package/dist/esm2015/src/map/messages/events/drawing-finished.event.js +2 -8
  81. package/dist/esm2015/src/map/messages/events/map-click.event.js +15 -5
  82. package/dist/esm2015/src/map/messages/events/map-move-end.event.js +8 -5
  83. package/dist/esm2015/src/map/messages/events/map-rendered.event.js +10 -5
  84. package/dist/esm2015/src/map/messages/executors/calculate-area.executor.js +9 -5
  85. package/dist/esm2015/src/map/messages/executors/filter-features-in-area.executor.js +10 -5
  86. package/dist/esm2015/src/map/messages/executors/filter-features-in-point.executor.js +14 -6
  87. package/dist/esm2015/src/map/messages/executors/generate-draw.executor.js +2 -5
  88. package/dist/esm2015/src/map/messages/executors/generate-zoom-control.executor.js +2 -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 +12 -5
  92. package/dist/esm2015/src/map/messages/queries/get-features-in-point.query.js +9 -5
  93. package/dist/esm2015/src/map/messages/queries/get-layer.query.js +2 -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 +373 -252
  108. package/dist/fesm2015/maps-components-src-map.js.map +1 -1
  109. package/dist/fesm2015/maps-components.js +373 -252
  110. package/dist/fesm2015/maps-components.js.map +1 -1
  111. package/dist/map/messages/commands/add-control.command.d.ts +9 -2
  112. package/dist/map/messages/commands/add-layer.command.d.ts +1 -2
  113. package/dist/map/messages/commands/add-tile.command.d.ts +1 -2
  114. package/dist/map/messages/commands/cancel-drawing.command.d.ts +4 -2
  115. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +4 -2
  116. package/dist/map/messages/commands/close-tooltip.command.d.ts +9 -2
  117. package/dist/map/messages/commands/draw-selection-area.command.d.ts +13 -2
  118. package/dist/map/messages/commands/fit-to-features.command.d.ts +1 -2
  119. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +11 -2
  120. package/dist/map/messages/commands/modify-feature.command.d.ts +14 -2
  121. package/dist/map/messages/commands/place-layer-features.command.d.ts +1 -2
  122. package/dist/map/messages/commands/remove-control.command.d.ts +14 -2
  123. package/dist/map/messages/commands/remove-layer.command.d.ts +1 -2
  124. package/dist/map/messages/commands/remove-tile.command.d.ts +1 -2
  125. package/dist/map/messages/commands/set-map-center.command.d.ts +1 -2
  126. package/dist/map/messages/commands/start-drawing.command.d.ts +11 -2
  127. package/dist/map/messages/events/drawing-finished.event.d.ts +1 -3
  128. package/dist/map/messages/events/map-click.event.d.ts +14 -2
  129. package/dist/map/messages/events/map-move-end.event.d.ts +7 -2
  130. package/dist/map/messages/events/map-rendered.event.d.ts +9 -2
  131. package/dist/map/messages/executors/calculate-area.executor.d.ts +8 -2
  132. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +9 -2
  133. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +13 -3
  134. package/dist/map/messages/executors/generate-draw.executor.d.ts +1 -2
  135. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +1 -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 +11 -2
  139. package/dist/map/messages/queries/get-features-in-point.query.d.ts +8 -2
  140. package/dist/map/messages/queries/get-layer.query.d.ts +1 -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 +9 -2
  147. package/dist/src/map/messages/commands/add-layer.command.d.ts +1 -2
  148. package/dist/src/map/messages/commands/add-tile.command.d.ts +1 -2
  149. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +4 -2
  150. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +4 -2
  151. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +9 -2
  152. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +13 -2
  153. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +1 -2
  154. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +11 -2
  155. package/dist/src/map/messages/commands/modify-feature.command.d.ts +14 -2
  156. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +1 -2
  157. package/dist/src/map/messages/commands/remove-control.command.d.ts +14 -2
  158. package/dist/src/map/messages/commands/remove-layer.command.d.ts +1 -2
  159. package/dist/src/map/messages/commands/remove-tile.command.d.ts +1 -2
  160. package/dist/src/map/messages/commands/set-map-center.command.d.ts +1 -2
  161. package/dist/src/map/messages/commands/start-drawing.command.d.ts +11 -2
  162. package/dist/src/map/messages/events/drawing-finished.event.d.ts +1 -3
  163. package/dist/src/map/messages/events/map-click.event.d.ts +14 -2
  164. package/dist/src/map/messages/events/map-move-end.event.d.ts +7 -2
  165. package/dist/src/map/messages/events/map-rendered.event.d.ts +9 -2
  166. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +8 -2
  167. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +9 -2
  168. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +13 -3
  169. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +1 -2
  170. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +1 -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 +11 -2
  174. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +8 -2
  175. package/dist/src/map/messages/queries/get-layer.query.d.ts +1 -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,56 @@
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;
790
+ return AddControlCommand;
761
791
  }(postboy.PostboyGenericMessage));
762
- MapMoveEndEvent.ID = 'f21f783e-b5af-4489-9fec-8027fd07a8ad';
792
+ AddControlCommand.ID = '2921fb19-f1c4-4bf4-97be-001f98241f3b';
763
793
 
794
+ /**
795
+ * A command class that represents the action to close a tooltip.
796
+ */
764
797
  var CloseTooltipCommand = /** @class */ (function (_super) {
765
798
  __extends(CloseTooltipCommand, _super);
799
+ /**
800
+ * Creates an instance of the class with the specified tooltip ID.
801
+ *
802
+ * @param {string} tooltipId - The unique identifier for the tooltip.
803
+ */
766
804
  function CloseTooltipCommand(tooltipId) {
767
805
  var _this = _super.call(this) || this;
768
806
  _this.tooltipId = tooltipId;
769
807
  return _this;
770
808
  }
771
- Object.defineProperty(CloseTooltipCommand.prototype, "id", {
772
- get: function () {
773
- return CloseTooltipCommand.ID;
774
- },
775
- enumerable: false,
776
- configurable: true
777
- });
778
809
  return CloseTooltipCommand;
779
810
  }(postboy.PostboyGenericMessage));
780
- CloseTooltipCommand.ID = '4896d52c-e34f-4994-bcfd-32832d12dbe4';
811
+ CloseTooltipCommand.ID = 'df687e26-7298-46d7-8911-d014801dafac';
781
812
 
813
+ /**
814
+ * Represents a command to start a drawing operation.
815
+ */
782
816
  var StartDrawingCommand = /** @class */ (function (_super) {
783
817
  __extends(StartDrawingCommand, _super);
818
+ /**
819
+ * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
820
+ *
821
+ * @param {DrawingType} type - The type of the drawing to be created.
822
+ * @param {Style} style - The style defining visual appearance of the drawing.
823
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
824
+ */
784
825
  function StartDrawingCommand(type, style, format) {
785
826
  if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
786
827
  var _this = _super.call(this) || this;
@@ -789,35 +830,36 @@
789
830
  _this.format = format;
790
831
  return _this;
791
832
  }
792
- Object.defineProperty(StartDrawingCommand.prototype, "id", {
793
- get: function () {
794
- return StartDrawingCommand.ID;
795
- },
796
- enumerable: false,
797
- configurable: true
798
- });
799
833
  return StartDrawingCommand;
800
834
  }(postboy.PostboyCallbackMessage));
801
- StartDrawingCommand.ID = 'da904f4b-a1c8-4db7-a6af-14d9ee18ec8c';
835
+ StartDrawingCommand.ID = '4407e9ee-d6c3-4e77-8000-c1aae7433fb6';
802
836
 
837
+ /**
838
+ * Represents a command to cancel a drawing action.
839
+ */
803
840
  var CancelDrawingCommand = /** @class */ (function (_super) {
804
841
  __extends(CancelDrawingCommand, _super);
805
842
  function CancelDrawingCommand() {
806
843
  return _super !== null && _super.apply(this, arguments) || this;
807
844
  }
808
- Object.defineProperty(CancelDrawingCommand.prototype, "id", {
809
- get: function () {
810
- return CancelDrawingCommand.ID;
811
- },
812
- enumerable: false,
813
- configurable: true
814
- });
815
845
  return CancelDrawingCommand;
816
846
  }(postboy.PostboyGenericMessage));
817
- CancelDrawingCommand.ID = '7d38d983-feba-4176-a66b-18175e5ecd6b';
847
+ CancelDrawingCommand.ID = '192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de';
818
848
 
849
+ /**
850
+ * Class representing a command to draw a selection area with a specific type and style.
851
+ *
852
+ * @return {Dictionary<IIdentified[]>} - a collection of features inside the selected area, grouped by a layer's name
853
+ */
819
854
  var DrawSelectionAreaCommand = /** @class */ (function (_super) {
820
855
  __extends(DrawSelectionAreaCommand, _super);
856
+ /**
857
+ * Constructs a new instance with the specified type, style, and optional set of ignored items.
858
+ *
859
+ * @param {DrawingType} type - The type of drawing to be created.
860
+ * @param {Style} style - The style information for the drawing.
861
+ * @param {Set<string>} [ignore=new Set<string>()] - Optional set of items to be ignored.
862
+ */
821
863
  function DrawSelectionAreaCommand(type, style, ignore) {
822
864
  if (ignore === void 0) { ignore = new Set(); }
823
865
  var _this = _super.call(this) || this;
@@ -826,19 +868,25 @@
826
868
  _this.ignore = ignore;
827
869
  return _this;
828
870
  }
829
- Object.defineProperty(DrawSelectionAreaCommand.prototype, "id", {
830
- get: function () {
831
- return DrawSelectionAreaCommand.ID;
832
- },
833
- enumerable: false,
834
- configurable: true
835
- });
836
871
  return DrawSelectionAreaCommand;
837
872
  }(postboy.PostboyCallbackMessage));
838
- DrawSelectionAreaCommand.ID = '573d8a0d-f25b-42b7-9ad7-0ac6d86ac362';
873
+ DrawSelectionAreaCommand.ID = '06e43f59-c6ba-41bb-9c5b-f6534d914905';
839
874
 
875
+ /**
876
+ * Represents a command to modify a feature with a specific style and output format
877
+ * for a polygonal model.
878
+ *
879
+ * @return {string | null} a string representation of the modified feature in the appropriate format
880
+ */
840
881
  var ModifyFeatureCommand = /** @class */ (function (_super) {
841
882
  __extends(ModifyFeatureCommand, _super);
883
+ /**
884
+ * Constructs an instance of the class.
885
+ *
886
+ * @param {PolygonModel} model - The polygon model to be used.
887
+ * @param {Style} style - The style configuration for the polygon.
888
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the features. Default is GeoJson.
889
+ */
842
890
  function ModifyFeatureCommand(model, style, format) {
843
891
  if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
844
892
  var _this = _super.call(this) || this;
@@ -847,68 +895,45 @@
847
895
  _this.format = format;
848
896
  return _this;
849
897
  }
850
- Object.defineProperty(ModifyFeatureCommand.prototype, "id", {
851
- get: function () {
852
- return ModifyFeatureCommand.ID;
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
898
  return ModifyFeatureCommand;
858
899
  }(postboy.PostboyCallbackMessage));
859
- ModifyFeatureCommand.ID = 'ead85caa-24c6-4844-a68c-2cea91774c8c';
900
+ ModifyFeatureCommand.ID = '8f76507e-f18d-4232-bab7-f3d4e3d707bb';
860
901
 
902
+ /**
903
+ * Represents a command to cancel a feature modification.
904
+ */
861
905
  var CancelFeatureModificationCommand = /** @class */ (function (_super) {
862
906
  __extends(CancelFeatureModificationCommand, _super);
863
907
  function CancelFeatureModificationCommand() {
864
908
  return _super !== null && _super.apply(this, arguments) || this;
865
909
  }
866
- Object.defineProperty(CancelFeatureModificationCommand.prototype, "id", {
867
- get: function () {
868
- return CancelFeatureModificationCommand.ID;
869
- },
870
- enumerable: false,
871
- configurable: true
872
- });
873
910
  return CancelFeatureModificationCommand;
874
911
  }(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';
912
+ CancelFeatureModificationCommand.ID = 'e7886353-53b3-4bbe-93b5-6490e5f1305e';
894
913
 
914
+ /**
915
+ * Represents a command to remove a map control from the map.
916
+ *
917
+ * The command is identified by a unique static ID, and it requires a MapControl item
918
+ * to specify the control to be removed.
919
+ *
920
+ * @extends PostboyGenericMessage
921
+ */
895
922
  var RemoveControlCommand = /** @class */ (function (_super) {
896
923
  __extends(RemoveControlCommand, _super);
924
+ /**
925
+ * Constructs an instance of the class.
926
+ *
927
+ * @param {MapControl} item - The map control instance to be removed.
928
+ */
897
929
  function RemoveControlCommand(item) {
898
930
  var _this = _super.call(this) || this;
899
931
  _this.item = item;
900
932
  return _this;
901
933
  }
902
- Object.defineProperty(RemoveControlCommand.prototype, "id", {
903
- get: function () {
904
- return RemoveControlCommand.ID;
905
- },
906
- enumerable: false,
907
- configurable: true
908
- });
909
934
  return RemoveControlCommand;
910
935
  }(postboy.PostboyGenericMessage));
911
- RemoveControlCommand.ID = '361641e0-804a-4930-8c27-0cea6330dbfc';
936
+ RemoveControlCommand.ID = '73bcb4f5-ce7d-4c71-b70d-e772100136a1';
912
937
 
913
938
  /**
914
939
  * Forces map to move to a specific point
@@ -928,37 +953,22 @@
928
953
  _this.zoom = zoom;
929
954
  return _this;
930
955
  }
931
- Object.defineProperty(SetMapCenterCommand.prototype, "id", {
932
- get: function () {
933
- return SetMapCenterCommand.ID;
934
- },
935
- enumerable: false,
936
- configurable: true
937
- });
938
956
  return SetMapCenterCommand;
939
957
  }(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';
958
+ SetMapCenterCommand.ID = 'd4e3cf4f-0be7-4c1a-8355-8607d02c3dea';
959
959
 
960
+ /**
961
+ * FitToPolygonsCommand is a command used to fit a given set of polygon features
962
+ * to the viewable area, optionally applying a zoom transformation afterwards.
963
+ */
960
964
  var FitToPolygonsCommand = /** @class */ (function (_super) {
961
965
  __extends(FitToPolygonsCommand, _super);
966
+ /**
967
+ * Creates an instance of the class with specified polygon features and an optional zoom level.
968
+ *
969
+ * @param {PolygonModel[]} features - An array of polygon models to fit to.
970
+ * @param {number} [zoomAfter=0] - Optional zoom level change to apply after initialization. Defaults to 0.
971
+ */
962
972
  function FitToPolygonsCommand(features, zoomAfter) {
963
973
  if (zoomAfter === void 0) { zoomAfter = 0; }
964
974
  var _this = _super.call(this) || this;
@@ -966,16 +976,136 @@
966
976
  _this.zoomAfter = zoomAfter;
967
977
  return _this;
968
978
  }
969
- Object.defineProperty(FitToPolygonsCommand.prototype, "id", {
970
- get: function () {
971
- return FitToPolygonsCommand.ID;
972
- },
973
- enumerable: false,
974
- configurable: true
975
- });
976
979
  return FitToPolygonsCommand;
977
980
  }(postboy.PostboyGenericMessage));
978
- FitToPolygonsCommand.ID = 'a9e42b23-ffaf-4c46-8370-e0432cd14d60';
981
+ FitToPolygonsCommand.ID = '308394ce-48d3-45f5-8671-52207fba4be3';
982
+
983
+ /**
984
+ * Represents an event triggered when a map rendering process is completed.
985
+ */
986
+ var MapRenderedEvent = /** @class */ (function (_super) {
987
+ __extends(MapRenderedEvent, _super);
988
+ /**
989
+ * Constructor for creating an instance of the class.
990
+ *
991
+ * @param {Map} map - The map instance to be used by the class.
992
+ */
993
+ function MapRenderedEvent(map) {
994
+ var _this = _super.call(this) || this;
995
+ _this.map = map;
996
+ return _this;
997
+ }
998
+ return MapRenderedEvent;
999
+ }(postboy.PostboyGenericMessage));
1000
+ MapRenderedEvent.ID = '4515dde8-1519-4e3f-a0e3-10d3c52deabe';
1001
+
1002
+ /**
1003
+ * Represents an event triggered by a click on a map, containing information about the
1004
+ * click's location, relevant entities, and features present at the clicked position.
1005
+ *
1006
+ * @extends {PostboyGenericMessage}
1007
+ */
1008
+ var MapClickEvent = /** @class */ (function (_super) {
1009
+ __extends(MapClickEvent, _super);
1010
+ /**
1011
+ * Creates an instance of this class with the provided coordinates, entities, and features.
1012
+ *
1013
+ * @param {number[]} coordinates - An array representing the coordinates.
1014
+ * @param {{ [layer: string]: IIdentified[] }} entities - A mapping of layer names to arrays of IIdentified entities.
1015
+ * @param {{ [layer: string]: Feature<Geometry>[] }} features - A mapping of layer names to arrays of features with geometry.
1016
+ */
1017
+ function MapClickEvent(coordinates, entities, features) {
1018
+ var _this = _super.call(this) || this;
1019
+ _this.coordinates = coordinates;
1020
+ _this.entities = entities;
1021
+ _this.features = features;
1022
+ return _this;
1023
+ }
1024
+ return MapClickEvent;
1025
+ }(postboy.PostboyGenericMessage));
1026
+ MapClickEvent.ID = 'ee31a86c-e838-4531-8399-983753a354df';
1027
+
1028
+ /**
1029
+ * Represents an event that is triggered when the movement of a map ends.
1030
+ * This class is used to capture the final position of a map after a movement operation.
1031
+ *
1032
+ * @property {MapPosition | null} position - The final position of the map after movement ends. Can be null.
1033
+ */
1034
+ var MapMoveEndEvent = /** @class */ (function (_super) {
1035
+ __extends(MapMoveEndEvent, _super);
1036
+ function MapMoveEndEvent(position) {
1037
+ var _this = _super.call(this) || this;
1038
+ _this.position = position;
1039
+ return _this;
1040
+ }
1041
+ return MapMoveEndEvent;
1042
+ }(postboy.PostboyGenericMessage));
1043
+ MapMoveEndEvent.ID = 'd210ec7e-032f-4ce8-8a39-7b816519eaae';
1044
+
1045
+ /**
1046
+ * A class responsible for executing filtering of geographical features
1047
+ * based on a specific geographical point (latitude and longitude).
1048
+ *
1049
+ * @template Feature - A geographical feature that is processed by the executor.
1050
+ * @template Geometry - The type of geometry associated with the feature.
1051
+ */
1052
+ var FilterFeaturesInPointExecutor = /** @class */ (function (_super) {
1053
+ __extends(FilterFeaturesInPointExecutor, _super);
1054
+ /**
1055
+ * Constructs a new instance with the specified latitude, longitude, and features.
1056
+ *
1057
+ * @param {number} lat - The latitude coordinate.
1058
+ * @param {number} lng - The longitude coordinate.
1059
+ * @param {Feature<Geometry>[]} features - The array of features associated with the location.
1060
+ */
1061
+ function FilterFeaturesInPointExecutor(lat, lng, features) {
1062
+ var _this = _super.call(this) || this;
1063
+ _this.lat = lat;
1064
+ _this.lng = lng;
1065
+ _this.features = features;
1066
+ return _this;
1067
+ }
1068
+ return FilterFeaturesInPointExecutor;
1069
+ }(postboy.PostboyExecutor));
1070
+ FilterFeaturesInPointExecutor.ID = 'dcbb156d-def3-45b4-91af-84d1483d8941';
1071
+
1072
+ /**
1073
+ * A class that extends the PostboyExecutor to filter geographical features within a specified area.
1074
+ * This class is designed to process a list of input features and determine which of them are located inside the provided area geometry.
1075
+ *
1076
+ * Parameters:
1077
+ * - `area`: A Geometry object defining the area to filter geographical features.
1078
+ * - `features`: An array of geographical features, represented as `Feature<Geometry>` objects, to be filtered by their presence within the specified area.
1079
+ */
1080
+ var FilterFeaturesInAreaExecutor = /** @class */ (function (_super) {
1081
+ __extends(FilterFeaturesInAreaExecutor, _super);
1082
+ function FilterFeaturesInAreaExecutor(area, features) {
1083
+ var _this = _super.call(this) || this;
1084
+ _this.area = area;
1085
+ _this.features = features;
1086
+ return _this;
1087
+ }
1088
+ return FilterFeaturesInAreaExecutor;
1089
+ }(postboy.PostboyExecutor));
1090
+ FilterFeaturesInAreaExecutor.ID = '4d26e1e3-e60f-4e49-804b-5b3eadc2adce';
1091
+
1092
+ /**
1093
+ * An executor responsible for calculating the area of a given polygon.
1094
+ *
1095
+ * Use this class to manage and execute area-calculation logic for a polygon.
1096
+ *
1097
+ * @return {number} - the spherical area (in square meters)
1098
+ */
1099
+ var CalculateAreaExecutor = /** @class */ (function (_super) {
1100
+ __extends(CalculateAreaExecutor, _super);
1101
+ function CalculateAreaExecutor(polygon) {
1102
+ var _this = _super.call(this) || this;
1103
+ _this.polygon = polygon;
1104
+ return _this;
1105
+ }
1106
+ return CalculateAreaExecutor;
1107
+ }(postboy.PostboyExecutor));
1108
+ CalculateAreaExecutor.ID = '82347b8c-7635-45ec-85ef-75aaf43bc34c';
979
1109
 
980
1110
  /**
981
1111
  * A message that allows to get the current state of the map.
@@ -987,19 +1117,22 @@
987
1117
  function GetMapPositionExecutor() {
988
1118
  return _super.call(this) || this;
989
1119
  }
990
- Object.defineProperty(GetMapPositionExecutor.prototype, "id", {
991
- get: function () {
992
- return GetMapPositionExecutor.ID;
993
- },
994
- enumerable: false,
995
- configurable: true
996
- });
997
1120
  return GetMapPositionExecutor;
998
1121
  }(postboy.PostboyExecutor));
999
1122
  GetMapPositionExecutor.ID = '52c95689-d09b-4082-ba58-9183ea96a213';
1000
1123
 
1124
+ /**
1125
+ * Class representing a query to get features within a specified geographical area.
1126
+ * The query optionally takes a set of layer names to ignore during the operation.
1127
+ */
1001
1128
  var GetFeaturesInAreaQuery = /** @class */ (function (_super) {
1002
1129
  __extends(GetFeaturesInAreaQuery, _super);
1130
+ /**
1131
+ * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
1132
+ *
1133
+ * @param {Geometry} area - The Geometry object used to define the area.
1134
+ * @param {Set<string>} [ignore] - An optional set of layer names that will be ignored. Defaults to an empty set.
1135
+ */
1003
1136
  function GetFeaturesInAreaQuery(area, ignore) {
1004
1137
  if (ignore === void 0) { ignore = new Set(); }
1005
1138
  var _this = _super.call(this) || this;
@@ -1007,35 +1140,9 @@
1007
1140
  _this.ignore = ignore;
1008
1141
  return _this;
1009
1142
  }
1010
- Object.defineProperty(GetFeaturesInAreaQuery.prototype, "id", {
1011
- get: function () {
1012
- return GetFeaturesInAreaQuery.ID;
1013
- },
1014
- enumerable: false,
1015
- configurable: true
1016
- });
1017
1143
  return GetFeaturesInAreaQuery;
1018
1144
  }(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';
1145
+ GetFeaturesInAreaQuery.ID = '317cf427-a029-4a43-97c4-cb6b8148ff65';
1039
1146
 
1040
1147
  /**
1041
1148
  * Represents a query to retrieve features located at a specific geographical point.
@@ -1043,6 +1150,13 @@
1043
1150
  */
1044
1151
  var GetFeaturesInPointQuery = /** @class */ (function (_super) {
1045
1152
  __extends(GetFeaturesInPointQuery, _super);
1153
+ /**
1154
+ * Constructor for initializing a geographic coordinate object.
1155
+ *
1156
+ * @param {number} lat - The latitude of the location.
1157
+ * @param {number} lng - The longitude of the location.
1158
+ * @param {Set<string>} [ignore=new Set<string>()] - An optional set of strings to ignore during processing.
1159
+ */
1046
1160
  function GetFeaturesInPointQuery(lat, lng, ignore) {
1047
1161
  if (ignore === void 0) { ignore = new Set(); }
1048
1162
  var _this = _super.call(this) || this;
@@ -1051,39 +1165,9 @@
1051
1165
  _this.ignore = ignore;
1052
1166
  return _this;
1053
1167
  }
1054
- Object.defineProperty(GetFeaturesInPointQuery.prototype, "id", {
1055
- get: function () {
1056
- return GetFeaturesInPointQuery.ID;
1057
- },
1058
- enumerable: false,
1059
- configurable: true
1060
- });
1061
1168
  return GetFeaturesInPointQuery;
1062
1169
  }(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';
1170
+ GetFeaturesInPointQuery.ID = '99bbc56f-34a2-4064-8300-13bb3d0662c1';
1087
1171
 
1088
1172
  var AddLayerCommand = /** @class */ (function (_super) {
1089
1173
  __extends(AddLayerCommand, _super);
@@ -1092,16 +1176,9 @@
1092
1176
  _this.layer = layer;
1093
1177
  return _this;
1094
1178
  }
1095
- Object.defineProperty(AddLayerCommand.prototype, "id", {
1096
- get: function () {
1097
- return AddLayerCommand.ID;
1098
- },
1099
- enumerable: false,
1100
- configurable: true
1101
- });
1102
1179
  return AddLayerCommand;
1103
1180
  }(postboy.PostboyGenericMessage));
1104
- AddLayerCommand.ID = 'd93e250f-92bc-43ac-9c6a-46c521a1aaa5';
1181
+ AddLayerCommand.ID = '7fe68d71-350f-47e2-b1ae-62cc333e1572';
1105
1182
 
1106
1183
  var PlaceLayerFeaturesCommand = /** @class */ (function (_super) {
1107
1184
  __extends(PlaceLayerFeaturesCommand, _super);
@@ -1111,16 +1188,9 @@
1111
1188
  _this.features = features;
1112
1189
  return _this;
1113
1190
  }
1114
- Object.defineProperty(PlaceLayerFeaturesCommand.prototype, "id", {
1115
- get: function () {
1116
- return PlaceLayerFeaturesCommand.ID;
1117
- },
1118
- enumerable: false,
1119
- configurable: true
1120
- });
1121
1191
  return PlaceLayerFeaturesCommand;
1122
1192
  }(postboy.PostboyGenericMessage));
1123
- PlaceLayerFeaturesCommand.ID = '8caf86bc-869b-426f-b36d-4642f6b8aab0';
1193
+ PlaceLayerFeaturesCommand.ID = '5f27a2cd-8d8a-4929-b703-8aee6dcdc21c';
1124
1194
 
1125
1195
  var RemoveLayerCommand = /** @class */ (function (_super) {
1126
1196
  __extends(RemoveLayerCommand, _super);
@@ -1129,16 +1199,9 @@
1129
1199
  _this.layer = layer;
1130
1200
  return _this;
1131
1201
  }
1132
- Object.defineProperty(RemoveLayerCommand.prototype, "id", {
1133
- get: function () {
1134
- return RemoveLayerCommand.ID;
1135
- },
1136
- enumerable: false,
1137
- configurable: true
1138
- });
1139
1202
  return RemoveLayerCommand;
1140
1203
  }(postboy.PostboyGenericMessage));
1141
- RemoveLayerCommand.ID = 'ab484e0e-e185-45cd-8434-12101f3c7eb1';
1204
+ RemoveLayerCommand.ID = '1b60599c-599a-4fdb-bad2-23b12e435e1a';
1142
1205
 
1143
1206
  var AddTileCommand = /** @class */ (function (_super) {
1144
1207
  __extends(AddTileCommand, _super);
@@ -1147,16 +1210,9 @@
1147
1210
  _this.layer = layer;
1148
1211
  return _this;
1149
1212
  }
1150
- Object.defineProperty(AddTileCommand.prototype, "id", {
1151
- get: function () {
1152
- return AddTileCommand.ID;
1153
- },
1154
- enumerable: false,
1155
- configurable: true
1156
- });
1157
1213
  return AddTileCommand;
1158
1214
  }(postboy.PostboyGenericMessage));
1159
- AddTileCommand.ID = '25b7df28-72ce-4453-9fe6-54285a2fdc57';
1215
+ AddTileCommand.ID = 'ae29b7af-21aa-4b0a-8586-92c23779e6cb';
1160
1216
 
1161
1217
  var RemoveTileCommand = /** @class */ (function (_super) {
1162
1218
  __extends(RemoveTileCommand, _super);
@@ -1165,16 +1221,9 @@
1165
1221
  _this.layer = layer;
1166
1222
  return _this;
1167
1223
  }
1168
- Object.defineProperty(RemoveTileCommand.prototype, "id", {
1169
- get: function () {
1170
- return RemoveTileCommand.ID;
1171
- },
1172
- enumerable: false,
1173
- configurable: true
1174
- });
1175
1224
  return RemoveTileCommand;
1176
1225
  }(postboy.PostboyGenericMessage));
1177
- RemoveTileCommand.ID = 'c36ccc0b-5638-4819-b148-2de57a59a5b7';
1226
+ RemoveTileCommand.ID = 'dab0f861-bb25-46da-9388-717bfaae798f';
1178
1227
 
1179
1228
  var FitToFeaturesCommand = /** @class */ (function (_super) {
1180
1229
  __extends(FitToFeaturesCommand, _super);
@@ -1185,16 +1234,9 @@
1185
1234
  _this.zoomAfter = zoomAfter;
1186
1235
  return _this;
1187
1236
  }
1188
- Object.defineProperty(FitToFeaturesCommand.prototype, "id", {
1189
- get: function () {
1190
- return FitToFeaturesCommand.ID;
1191
- },
1192
- enumerable: false,
1193
- configurable: true
1194
- });
1195
1237
  return FitToFeaturesCommand;
1196
1238
  }(postboy.PostboyGenericMessage));
1197
- FitToFeaturesCommand.ID = '76cdc091-3793-4b6c-82f7-1e0334cf08a8';
1239
+ FitToFeaturesCommand.ID = '04d67609-0b4c-4f52-aa53-ad0a3db967dc';
1198
1240
 
1199
1241
  var GetLayerQuery = /** @class */ (function (_super) {
1200
1242
  __extends(GetLayerQuery, _super);
@@ -1203,32 +1245,18 @@
1203
1245
  _this.name = name;
1204
1246
  return _this;
1205
1247
  }
1206
- Object.defineProperty(GetLayerQuery.prototype, "id", {
1207
- get: function () {
1208
- return GetLayerQuery.ID;
1209
- },
1210
- enumerable: false,
1211
- configurable: true
1212
- });
1213
1248
  return GetLayerQuery;
1214
1249
  }(postboy.PostboyCallbackMessage));
1215
- GetLayerQuery.ID = '5c04c87b-8a93-4c2a-979e-d1e313d860ed';
1250
+ GetLayerQuery.ID = 'd2683490-2aa2-4dee-855d-f752ce4d3be5';
1216
1251
 
1217
1252
  var DrawingFinishedEvent = /** @class */ (function (_super) {
1218
1253
  __extends(DrawingFinishedEvent, _super);
1219
1254
  function DrawingFinishedEvent() {
1220
- return _super.call(this) || this;
1255
+ return _super !== null && _super.apply(this, arguments) || this;
1221
1256
  }
1222
- Object.defineProperty(DrawingFinishedEvent.prototype, "id", {
1223
- get: function () {
1224
- return DrawingFinishedEvent.ID;
1225
- },
1226
- enumerable: false,
1227
- configurable: true
1228
- });
1229
1257
  return DrawingFinishedEvent;
1230
1258
  }(postboy.PostboyGenericMessage));
1231
- DrawingFinishedEvent.ID = 'c724b68e-b4eb-4783-90f1-a8e31973fd36';
1259
+ DrawingFinishedEvent.ID = '9094e160-8df7-4868-883a-3436724106dd';
1232
1260
 
1233
1261
  var DrawingGenerationService = /** @class */ (function () {
1234
1262
  function DrawingGenerationService() {
@@ -1290,16 +1318,9 @@
1290
1318
  _this.type = type;
1291
1319
  return _this;
1292
1320
  }
1293
- Object.defineProperty(GenerateDrawExecutor.prototype, "id", {
1294
- get: function () {
1295
- return GenerateDrawExecutor.ID;
1296
- },
1297
- enumerable: false,
1298
- configurable: true
1299
- });
1300
1321
  return GenerateDrawExecutor;
1301
1322
  }(postboy.PostboyExecutor));
1302
- GenerateDrawExecutor.ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
1323
+ GenerateDrawExecutor.ID = '5d5f0737-ff70-461e-9a2e-bf6166c914cb';
1303
1324
 
1304
1325
  var GenerateZoomControlExecutor = /** @class */ (function (_super) {
1305
1326
  __extends(GenerateZoomControlExecutor, _super);
@@ -1308,16 +1329,9 @@
1308
1329
  _this.settings = settings;
1309
1330
  return _this;
1310
1331
  }
1311
- Object.defineProperty(GenerateZoomControlExecutor.prototype, "id", {
1312
- get: function () {
1313
- return GenerateZoomControlExecutor.ID;
1314
- },
1315
- enumerable: false,
1316
- configurable: true
1317
- });
1318
1332
  return GenerateZoomControlExecutor;
1319
1333
  }(postboy.PostboyExecutor));
1320
- GenerateZoomControlExecutor.ID = 'ff16a833-c68e-4b1a-bc23-c0d16b002810';
1334
+ GenerateZoomControlExecutor.ID = 'c59f4fc3-ccf6-4cb3-a38b-3a8c249114a2';
1321
1335
 
1322
1336
  var ZoomControlFactory = /** @class */ (function () {
1323
1337
  function ZoomControlFactory() {
@@ -1338,7 +1352,11 @@
1338
1352
  __extends(MapPostboyService, _super);
1339
1353
  function MapPostboyService() {
1340
1354
  var _this = _super.call(this) || this;
1341
- _this.addLocker({ locker: StartDrawingCommand.ID, unlocker: DrawingFinishedEvent.ID, locking: [MapClickEvent.ID] });
1355
+ _this.addLocker({
1356
+ locker: StartDrawingCommand.ID,
1357
+ unlocker: DrawingFinishedEvent.ID,
1358
+ locking: [MapClickEvent.ID],
1359
+ });
1342
1360
  return _this;
1343
1361
  }
1344
1362
  return MapPostboyService;
@@ -1367,7 +1385,7 @@
1367
1385
  };
1368
1386
  MapManagementService.prototype.observeRemoveTile = function () {
1369
1387
  var _this = this;
1370
- this.postboy.subscribe(RemoveTileCommand.ID).subscribe(function (c) {
1388
+ this.postboy.sub(RemoveTileCommand).subscribe(function (c) {
1371
1389
  if (!_this.map)
1372
1390
  return;
1373
1391
  _this.map.removeLayer(c.layer);
@@ -1375,11 +1393,11 @@
1375
1393
  };
1376
1394
  MapManagementService.prototype.observeLayerQuery = function () {
1377
1395
  var _this = this;
1378
- this.postboy.subscribe(GetLayerQuery.ID).subscribe(function (ev) { return ev.finish(_this.layers.take(ev.name)); });
1396
+ this.postboy.sub(GetLayerQuery).subscribe(function (ev) { return ev.finish(_this.layers.take(ev.name)); });
1379
1397
  };
1380
1398
  MapManagementService.prototype.observeAddTile = function () {
1381
1399
  var _this = this;
1382
- this.postboy.subscribe(AddTileCommand.ID).subscribe(function (c) {
1400
+ this.postboy.sub(AddTileCommand).subscribe(function (c) {
1383
1401
  if (!_this.map)
1384
1402
  return;
1385
1403
  _this.map.addLayer(c.layer);
@@ -1387,13 +1405,13 @@
1387
1405
  };
1388
1406
  MapManagementService.prototype.observeMapRender = function () {
1389
1407
  var _this = this;
1390
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1408
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1391
1409
  _this.map = m.map;
1392
1410
  });
1393
1411
  };
1394
1412
  MapManagementService.prototype.observeAddLayer = function () {
1395
1413
  var _this = this;
1396
- this.postboy.subscribe(AddLayerCommand.ID).subscribe(function (c) {
1414
+ this.postboy.sub(AddLayerCommand).subscribe(function (c) {
1397
1415
  if (!_this.map)
1398
1416
  return;
1399
1417
  _this.layers.put(c.layer.get('name'), c.layer);
@@ -1402,7 +1420,7 @@
1402
1420
  };
1403
1421
  MapManagementService.prototype.observePlaceFeatures = function () {
1404
1422
  var _this = this;
1405
- this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe(function (c) {
1423
+ this.postboy.sub(PlaceLayerFeaturesCommand).subscribe(function (c) {
1406
1424
  var _a, _b;
1407
1425
  if (!_this.layers.has(c.layer))
1408
1426
  return;
@@ -1415,7 +1433,7 @@
1415
1433
  };
1416
1434
  MapManagementService.prototype.observeRemoveLayer = function () {
1417
1435
  var _this = this;
1418
- this.postboy.subscribe(RemoveLayerCommand.ID).subscribe(function (c) {
1436
+ this.postboy.sub(RemoveLayerCommand).subscribe(function (c) {
1419
1437
  if (!_this.map)
1420
1438
  return;
1421
1439
  _this.layers.rmv(c.layer.get('name'));
@@ -1424,11 +1442,11 @@
1424
1442
  };
1425
1443
  MapManagementService.prototype.observeFeaturesInArea = function () {
1426
1444
  var _this = this;
1427
- this.postboy.subscribe(GetFeaturesInAreaQuery.ID).subscribe(function (qr) {
1445
+ this.postboy.sub(GetFeaturesInAreaQuery).subscribe(function (qr) {
1428
1446
  var result = new collections.Dictionary();
1429
1447
  _this.forEachLayer(function (l, s) {
1430
1448
  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 : []));
1449
+ 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
1450
  result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1433
1451
  }, qr.ignore);
1434
1452
  qr.finish(result);
@@ -1436,11 +1454,11 @@
1436
1454
  };
1437
1455
  MapManagementService.prototype.observeFeaturesInPoint = function () {
1438
1456
  var _this = this;
1439
- this.postboy.subscribe(GetFeaturesInPointQuery.ID).subscribe(function (qr) {
1457
+ this.postboy.sub(GetFeaturesInPointQuery).subscribe(function (qr) {
1440
1458
  var result = new collections.Dictionary();
1441
1459
  _this.forEachLayer(function (l, s) {
1442
1460
  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 : []));
1461
+ 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
1462
  result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1445
1463
  }, qr.ignore);
1446
1464
  qr.finish(result);
@@ -1485,7 +1503,7 @@
1485
1503
  MapStateService.prototype.observeMapRendering = function () {
1486
1504
  var _this = this;
1487
1505
  this.postboy
1488
- .subscribe(MapRenderedEvent.ID)
1506
+ .sub(MapRenderedEvent)
1489
1507
  .pipe(operators.first())
1490
1508
  .subscribe(function (ev) {
1491
1509
  var _a;
@@ -1497,7 +1515,7 @@
1497
1515
  };
1498
1516
  MapStateService.prototype.observeCenter = function () {
1499
1517
  var _this = this;
1500
- this.postboy.subscribe(SetMapCenterCommand.ID).subscribe(function (c) {
1518
+ this.postboy.sub(SetMapCenterCommand).subscribe(function (c) {
1501
1519
  var _a, _b;
1502
1520
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getView().setCenter([c.lng, c.lat]);
1503
1521
  if (c.zoom)
@@ -1523,7 +1541,7 @@
1523
1541
  };
1524
1542
  MapFeatureService.prototype.observeMapRender = function () {
1525
1543
  var _this = this;
1526
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1544
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1527
1545
  _this.map = m.map;
1528
1546
  if (_this.fitPolygonsWaiting)
1529
1547
  _this.postboy.fire(_this.fitPolygonsWaiting);
@@ -1531,13 +1549,13 @@
1531
1549
  };
1532
1550
  MapFeatureService.prototype.observeFitToFeatures = function () {
1533
1551
  var _this = this;
1534
- this.postboy.subscribe(FitToFeaturesCommand.ID).subscribe(function (cmd) {
1552
+ this.postboy.sub(FitToFeaturesCommand).subscribe(function (cmd) {
1535
1553
  _this.fitToGeometries(cmd.features.map(function (f) { return f.getGeometry(); }), cmd.zoomAfter);
1536
1554
  });
1537
1555
  };
1538
1556
  MapFeatureService.prototype.observeFitToPolygons = function () {
1539
1557
  var _this = this;
1540
- this.postboy.subscribe(FitToPolygonsCommand.ID).subscribe(function (cmd) {
1558
+ this.postboy.sub(FitToPolygonsCommand).subscribe(function (cmd) {
1541
1559
  if (!_this.map) {
1542
1560
  _this.fitPolygonsWaiting = cmd;
1543
1561
  return;
@@ -1590,7 +1608,7 @@
1590
1608
  };
1591
1609
  MapClickService.prototype.observeMapRender = function () {
1592
1610
  var _this = this;
1593
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1611
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1594
1612
  var _a;
1595
1613
  _this.map = m.map;
1596
1614
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.on('singleclick', function (e) {
@@ -1625,24 +1643,20 @@
1625
1643
  };
1626
1644
  DrawingService.prototype.observeSelectArea = function () {
1627
1645
  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) {
1646
+ this.postboy.sub(DrawSelectionAreaCommand).subscribe(function (ev) {
1647
+ _this.postboy.fireCallback(new StartDrawingCommand(ev.type, ev.style), function (r) {
1631
1648
  if (!r) {
1632
1649
  ev.finish(new collections.Dictionary());
1633
1650
  return;
1634
1651
  }
1635
1652
  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);
1653
+ _this.postboy.fireCallback(new GetFeaturesInAreaQuery(area, ev.ignore), function (result) { return ev.finish(result); });
1639
1654
  });
1640
- _this.postboy.fire(drawingCommand);
1641
1655
  });
1642
1656
  };
1643
1657
  DrawingService.prototype.observeDrawing = function () {
1644
1658
  var _this = this;
1645
- this.postboy.subscribe(StartDrawingCommand.ID).subscribe(function (ev) {
1659
+ this.postboy.sub(StartDrawingCommand).subscribe(function (ev) {
1646
1660
  _this.draw(function (l) {
1647
1661
  var _a;
1648
1662
  if (!l || !_this.map) {
@@ -1650,7 +1664,7 @@
1650
1664
  return;
1651
1665
  }
1652
1666
  var cancelSub = _this.observeCancelation(ev, l);
1653
- _this.drawInteraction = _this.postboy.execute(new GenerateDrawExecutor(l, ev.style, ev.type));
1667
+ _this.drawInteraction = _this.postboy.exec(new GenerateDrawExecutor(l, ev.style, ev.type));
1654
1668
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addInteraction(_this.drawInteraction);
1655
1669
  _this.drawInteraction.on('drawend', function (evt) {
1656
1670
  cancelSub.unsubscribe();
@@ -1667,19 +1681,17 @@
1667
1681
  };
1668
1682
  DrawingService.prototype.observeMapRender = function () {
1669
1683
  var _this = this;
1670
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1684
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1671
1685
  _this.map = m.map;
1672
1686
  });
1673
1687
  };
1674
1688
  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);
1689
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1678
1690
  };
1679
1691
  DrawingService.prototype.observeCancelation = function (ev, layer) {
1680
1692
  var _this = this;
1681
1693
  return this.postboy
1682
- .subscribe(CancelDrawingCommand.ID)
1694
+ .sub(CancelDrawingCommand)
1683
1695
  .pipe(operators.first())
1684
1696
  .subscribe(function () {
1685
1697
  ev.finish(null);
@@ -1713,7 +1725,7 @@
1713
1725
  };
1714
1726
  FeatureModificationService.prototype.observeModification = function () {
1715
1727
  var _this = this;
1716
- this.postboy.subscribe(ModifyFeatureCommand.ID).subscribe(function (ev) {
1728
+ this.postboy.sub(ModifyFeatureCommand).subscribe(function (ev) {
1717
1729
  _this.defineLayer(function (l) {
1718
1730
  if (!l || !_this.map) {
1719
1731
  _this.clearInteraction(l);
@@ -1766,19 +1778,17 @@
1766
1778
  };
1767
1779
  FeatureModificationService.prototype.observeMapRender = function () {
1768
1780
  var _this = this;
1769
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1781
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1770
1782
  _this.map = m.map;
1771
1783
  });
1772
1784
  };
1773
1785
  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);
1786
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1777
1787
  };
1778
1788
  FeatureModificationService.prototype.observeCancelation = function (ev, layer) {
1779
1789
  var _this = this;
1780
1790
  return this.postboy
1781
- .subscribe(CancelFeatureModificationCommand.ID)
1791
+ .sub(CancelFeatureModificationCommand)
1782
1792
  .pipe(operators.first())
1783
1793
  .subscribe(function () {
1784
1794
  ev.finish(null);
@@ -1810,7 +1820,7 @@
1810
1820
  ControlsService.prototype.observeMapRender = function () {
1811
1821
  var _this = this;
1812
1822
  this.postboy
1813
- .subscribe(MapRenderedEvent.ID)
1823
+ .sub(MapRenderedEvent)
1814
1824
  .pipe(operators.first())
1815
1825
  .subscribe(function (m) {
1816
1826
  _this.map = m.map;
@@ -1820,13 +1830,11 @@
1820
1830
  };
1821
1831
  ControlsService.prototype.observeAdding = function () {
1822
1832
  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); });
1833
+ this.postboy.sub(AddControlCommand).subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addControl(c.item); });
1824
1834
  };
1825
1835
  ControlsService.prototype.observeRemoving = function () {
1826
1836
  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); });
1837
+ this.postboy.sub(RemoveControlCommand).subscribe(function (c) { var _a; return (_a = _this.map) === null || _a === void 0 ? void 0 : _a.removeControl(c.item); });
1830
1838
  };
1831
1839
  return ControlsService;
1832
1840
  }());
@@ -1845,39 +1853,39 @@
1845
1853
  return _this;
1846
1854
  }
1847
1855
  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);
1856
+ this.recordReplay(MapRenderedEvent);
1857
+ this.recordReplay(PlaceLayerFeaturesCommand);
1858
+ this.recordReplay(RemoveControlCommand);
1859
+ this.recordReplay(AddControlCommand);
1860
+ this.recordReplay(SetMapCenterCommand);
1861
+ this.recordSubject(AddLayerCommand);
1862
+ this.recordSubject(RemoveLayerCommand);
1863
+ this.recordSubject(AddTileCommand);
1864
+ this.recordSubject(RemoveTileCommand);
1865
+ this.recordSubject(MapClickEvent);
1866
+ this.recordSubject(CloseTooltipCommand);
1867
+ this.recordSubject(FitToFeaturesCommand);
1868
+ this.recordSubject(FitToPolygonsCommand);
1869
+ this.recordSubject(MapMoveEndEvent);
1870
+ this.recordSubject(CancelDrawingCommand);
1871
+ this.recordSubject(StartDrawingCommand);
1872
+ this.recordSubject(GetLayerQuery);
1873
+ this.recordSubject(DrawingFinishedEvent);
1874
+ this.recordSubject(GetFeaturesInAreaQuery);
1875
+ this.recordSubject(DrawSelectionAreaCommand);
1876
+ this.recordSubject(CancelFeatureModificationCommand);
1877
+ this.recordSubject(ModifyFeatureCommand);
1878
+ this.recordSubject(GetFeaturesInPointQuery);
1871
1879
  this.setExecutors();
1872
1880
  };
1873
1881
  MessageRegistratorService.prototype.setExecutors = function () {
1874
1882
  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(); });
1883
+ this.recordExecutor(FilterFeaturesInAreaExecutor, function (e) { return FeatureService.filterFeaturesInArea(e); });
1884
+ this.recordExecutor(FilterFeaturesInPointExecutor, function (e) { return FeatureService.filterFeaturesInPoint(e); });
1885
+ 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()); });
1886
+ this.recordExecutor(GenerateDrawExecutor, function (e) { return DrawingGenerationService.getDraw(e); });
1887
+ this.recordExecutor(GenerateZoomControlExecutor, function (e) { return ZoomControlFactory.build(e.settings); });
1888
+ this.recordExecutor(GetMapPositionExecutor, function () { return _this.state.getMapPosition(); });
1881
1889
  };
1882
1890
  return MessageRegistratorService;
1883
1891
  }(postboy.PostboyAbstractRegistrator));
@@ -2120,7 +2128,7 @@
2120
2128
  TileLayerComponent.prototype.ngOnInit = function () {
2121
2129
  var _this = this;
2122
2130
  this.postboy
2123
- .subscribe(MapRenderedEvent.ID)
2131
+ .sub(MapRenderedEvent)
2124
2132
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2125
2133
  .subscribe(function (m) { return _this.initLayer(); });
2126
2134
  };
@@ -2377,7 +2385,7 @@
2377
2385
  FeatureLayerComponent.prototype.ngOnInit = function () {
2378
2386
  var _this = this;
2379
2387
  this.postboy
2380
- .subscribe(MapRenderedEvent.ID)
2388
+ .sub(MapRenderedEvent)
2381
2389
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2382
2390
  .subscribe(function (m) { return _this.initLayer(); });
2383
2391
  };
@@ -2563,8 +2571,8 @@
2563
2571
  ClusterLayerManager.prototype.observeMapMovement = function () {
2564
2572
  var _this = this;
2565
2573
  rxjs.combineLatest([
2566
- this.postboy.subscribe(MapMoveEndEvent.ID).pipe(operators.auditTime(250)),
2567
- this.postboy.subscribe(MapRenderedEvent.ID),
2574
+ this.postboy.sub(MapMoveEndEvent).pipe(operators.auditTime(250)),
2575
+ this.postboy.sub(MapRenderedEvent),
2568
2576
  ]).subscribe(function (_d) {
2569
2577
  var _e = __read(_d, 2), movement = _e[0], renderEvent = _e[1];
2570
2578
  _this.checkClusterNecessity(renderEvent.map);
@@ -2572,7 +2580,7 @@
2572
2580
  };
2573
2581
  ClusterLayerManager.prototype.observeClick = function () {
2574
2582
  var _this = this;
2575
- this.postboy.subscribe(MapClickEvent.ID).subscribe(function (m) {
2583
+ this.postboy.sub(MapClickEvent).subscribe(function (m) {
2576
2584
  var _a, _b;
2577
2585
  if (((_b = (_a = m.features[_this.settings.name]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 1) {
2578
2586
  _this.postboy.fire(new FitToFeaturesCommand(m.features[_this.settings.name], -1));
@@ -2674,7 +2682,7 @@
2674
2682
  ClusterLayerComponent.prototype.ngOnInit = function () {
2675
2683
  var _this = this;
2676
2684
  this.postboy
2677
- .subscribe(MapRenderedEvent.ID)
2685
+ .sub(MapRenderedEvent)
2678
2686
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2679
2687
  .subscribe(function (m) { return _this.initLayer(); });
2680
2688
  };
@@ -2846,7 +2854,7 @@
2846
2854
  MarkersComponent.prototype.ngOnInit = function () {
2847
2855
  var _this = this;
2848
2856
  this.postboy
2849
- .subscribe(MapRenderedEvent.ID)
2857
+ .sub(MapRenderedEvent)
2850
2858
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2851
2859
  .subscribe(function () { return _this.putMarkers(); });
2852
2860
  };
@@ -2952,20 +2960,20 @@
2952
2960
  };
2953
2961
  TooltipComponent.prototype.observeMapClick = function () {
2954
2962
  var _this = this;
2955
- return this.postboy.subscribe(MapClickEvent.ID).subscribe(function (ev) {
2963
+ return this.postboy.sub(MapClickEvent).subscribe(function (ev) {
2956
2964
  _this._settings.show(ev) ? _this.addOverlay(ev.coordinates) : _this.removeOverlay();
2957
2965
  });
2958
2966
  };
2959
2967
  TooltipComponent.prototype.observeClose = function () {
2960
2968
  var _this = this;
2961
2969
  return this.postboy
2962
- .subscribe(CloseTooltipCommand.ID)
2970
+ .sub(CloseTooltipCommand)
2963
2971
  .pipe(operators.filter(function (ev) { return ev.tooltipId === _this._settings.id; }))
2964
2972
  .subscribe(function () { return _this.removeOverlay(); });
2965
2973
  };
2966
2974
  TooltipComponent.prototype.observeMapRender = function () {
2967
2975
  var _this = this;
2968
- return this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
2976
+ return this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
2969
2977
  _this.map = m.map;
2970
2978
  });
2971
2979
  };
@@ -3018,7 +3026,7 @@
3018
3026
  PolygonsComponent.prototype.ngOnInit = function () {
3019
3027
  var _this = this;
3020
3028
  this.postboy
3021
- .subscribe(MapRenderedEvent.ID)
3029
+ .sub(MapRenderedEvent)
3022
3030
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
3023
3031
  .subscribe(function () { return _this.putPolygons(); });
3024
3032
  };
@@ -3206,7 +3214,7 @@
3206
3214
  MapControlZoomComponent.prototype.ngOnInit = function () {
3207
3215
  var _this = this;
3208
3216
  this.postboy
3209
- .subscribe(MapRenderedEvent.ID)
3217
+ .sub(MapRenderedEvent)
3210
3218
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
3211
3219
  .subscribe(function (m) {
3212
3220
  _this.map = m.map;
@@ -3216,7 +3224,7 @@
3216
3224
  MapControlZoomComponent.prototype.setControl = function () {
3217
3225
  if (!this.map)
3218
3226
  return;
3219
- this.control = this.postboy.execute(new GenerateZoomControlExecutor(this._settings));
3227
+ this.control = this.postboy.exec(new GenerateZoomControlExecutor(this._settings));
3220
3228
  this.map.addControl(this.control);
3221
3229
  };
3222
3230
  return MapControlZoomComponent;