@artstesh/maps 1.1.12 → 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 (186) hide show
  1. package/dist/bundles/maps-components-src-map.umd.js +436 -382
  2. package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
  3. package/dist/bundles/maps-components.umd.js +436 -382
  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 +24 -0
  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 +9 -7
  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 +21 -0
  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/feature.service.js +5 -1
  51. package/dist/esm2015/map/services/map-click.service.js +2 -2
  52. package/dist/esm2015/map/services/map-feature.service.js +4 -4
  53. package/dist/esm2015/map/services/map-management.service.js +39 -21
  54. package/dist/esm2015/map/services/map-postboy.service.js +6 -2
  55. package/dist/esm2015/map/services/map-state.service.js +3 -3
  56. package/dist/esm2015/map/services/message-registrator.service.js +32 -29
  57. package/dist/esm2015/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.js +3 -3
  58. package/dist/esm2015/src/map/map-plate/features/markers/markers.component.js +2 -2
  59. package/dist/esm2015/src/map/map-plate/features/polygons/polygons.component.js +2 -2
  60. package/dist/esm2015/src/map/map-plate/layers/cluster-layer/cluster-layer.component.js +2 -2
  61. package/dist/esm2015/src/map/map-plate/layers/cluster-layer/cluster-layer.manager.js +4 -4
  62. package/dist/esm2015/src/map/map-plate/layers/feature-layer/feature-layer.component.js +2 -2
  63. package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.component.js +2 -2
  64. package/dist/esm2015/src/map/map-plate/tooltips/tooltip/tooltip.component.js +4 -4
  65. package/dist/esm2015/src/map/messages/commands/add-control.command.js +9 -5
  66. package/dist/esm2015/src/map/messages/commands/add-layer.command.js +1 -5
  67. package/dist/esm2015/src/map/messages/commands/add-tile.command.js +1 -5
  68. package/dist/esm2015/src/map/messages/commands/cancel-drawing.command.js +4 -5
  69. package/dist/esm2015/src/map/messages/commands/cancel-feature-modification.command.js +4 -5
  70. package/dist/esm2015/src/map/messages/commands/close-tooltip.command.js +9 -5
  71. package/dist/esm2015/src/map/messages/commands/draw-selection-area.command.js +13 -5
  72. package/dist/esm2015/src/map/messages/commands/fit-to-features.command.js +1 -5
  73. package/dist/esm2015/src/map/messages/commands/fit-to-polygons.command.js +11 -5
  74. package/dist/esm2015/src/map/messages/commands/modify-feature.command.js +14 -5
  75. package/dist/esm2015/src/map/messages/commands/place-layer-features.command.js +1 -5
  76. package/dist/esm2015/src/map/messages/commands/remove-control.command.js +14 -5
  77. package/dist/esm2015/src/map/messages/commands/remove-layer.command.js +1 -5
  78. package/dist/esm2015/src/map/messages/commands/remove-tile.command.js +1 -5
  79. package/dist/esm2015/src/map/messages/commands/set-map-center.command.js +1 -5
  80. package/dist/esm2015/src/map/messages/commands/start-drawing.command.js +11 -5
  81. package/dist/esm2015/src/map/messages/events/drawing-finished.event.js +1 -8
  82. package/dist/esm2015/src/map/messages/events/map-click.event.js +14 -5
  83. package/dist/esm2015/src/map/messages/events/map-move-end.event.js +7 -5
  84. package/dist/esm2015/src/map/messages/events/map-rendered.event.js +9 -5
  85. package/dist/esm2015/src/map/messages/executors/calculate-area.executor.js +8 -5
  86. package/dist/esm2015/src/map/messages/executors/filter-features-in-area.executor.js +9 -5
  87. package/dist/esm2015/src/map/messages/executors/filter-features-in-point.executor.js +24 -0
  88. package/dist/esm2015/src/map/messages/executors/generate-draw.executor.js +1 -5
  89. package/dist/esm2015/src/map/messages/executors/generate-zoom-control.executor.js +1 -5
  90. package/dist/esm2015/src/map/messages/executors/get-map-position.executor.js +1 -4
  91. package/dist/esm2015/src/map/messages/index.js +9 -7
  92. package/dist/esm2015/src/map/messages/queries/get-features-in-area.query.js +11 -5
  93. package/dist/esm2015/src/map/messages/queries/get-features-in-point.query.js +21 -0
  94. package/dist/esm2015/src/map/messages/queries/get-layer.query.js +1 -5
  95. package/dist/esm2015/src/map/models/drawing-type.enum.js +14 -1
  96. package/dist/esm2015/src/map/models/feature-format.enum.js +9 -1
  97. package/dist/esm2015/src/map/models/map-position.model.js +1 -1
  98. package/dist/esm2015/src/map/models/map-settings.js +47 -1
  99. package/dist/esm2015/src/map/services/controls/controls.service.js +4 -6
  100. package/dist/esm2015/src/map/services/drawing/drawing.service.js +9 -15
  101. package/dist/esm2015/src/map/services/drawing/feature-modification.service.js +5 -7
  102. package/dist/esm2015/src/map/services/feature.service.js +5 -1
  103. package/dist/esm2015/src/map/services/map-click.service.js +2 -2
  104. package/dist/esm2015/src/map/services/map-feature.service.js +4 -4
  105. package/dist/esm2015/src/map/services/map-management.service.js +39 -21
  106. package/dist/esm2015/src/map/services/map-postboy.service.js +6 -2
  107. package/dist/esm2015/src/map/services/map-state.service.js +3 -3
  108. package/dist/esm2015/src/map/services/message-registrator.service.js +32 -29
  109. package/dist/fesm2015/maps-components-src-map.js +407 -258
  110. package/dist/fesm2015/maps-components-src-map.js.map +1 -1
  111. package/dist/fesm2015/maps-components.js +407 -258
  112. package/dist/fesm2015/maps-components.js.map +1 -1
  113. package/dist/map/messages/commands/add-control.command.d.ts +8 -2
  114. package/dist/map/messages/commands/add-layer.command.d.ts +0 -2
  115. package/dist/map/messages/commands/add-tile.command.d.ts +0 -2
  116. package/dist/map/messages/commands/cancel-drawing.command.d.ts +3 -2
  117. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +3 -2
  118. package/dist/map/messages/commands/close-tooltip.command.d.ts +8 -2
  119. package/dist/map/messages/commands/draw-selection-area.command.d.ts +12 -2
  120. package/dist/map/messages/commands/fit-to-features.command.d.ts +0 -2
  121. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +10 -2
  122. package/dist/map/messages/commands/modify-feature.command.d.ts +13 -2
  123. package/dist/map/messages/commands/place-layer-features.command.d.ts +0 -2
  124. package/dist/map/messages/commands/remove-control.command.d.ts +13 -2
  125. package/dist/map/messages/commands/remove-layer.command.d.ts +0 -2
  126. package/dist/map/messages/commands/remove-tile.command.d.ts +0 -2
  127. package/dist/map/messages/commands/set-map-center.command.d.ts +0 -2
  128. package/dist/map/messages/commands/start-drawing.command.d.ts +10 -2
  129. package/dist/map/messages/events/drawing-finished.event.d.ts +0 -3
  130. package/dist/map/messages/events/map-click.event.d.ts +13 -2
  131. package/dist/map/messages/events/map-move-end.event.d.ts +6 -2
  132. package/dist/map/messages/events/map-rendered.event.d.ts +8 -2
  133. package/dist/map/messages/executors/calculate-area.executor.d.ts +7 -2
  134. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +8 -2
  135. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +23 -0
  136. package/dist/map/messages/executors/generate-draw.executor.d.ts +0 -2
  137. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +0 -2
  138. package/dist/map/messages/executors/get-map-position.executor.d.ts +0 -1
  139. package/dist/map/messages/index.d.ts +8 -6
  140. package/dist/map/messages/queries/get-features-in-area.query.d.ts +10 -2
  141. package/dist/map/messages/queries/get-features-in-point.query.d.ts +20 -0
  142. package/dist/map/messages/queries/get-layer.query.d.ts +0 -2
  143. package/dist/map/models/drawing-type.enum.d.ts +13 -0
  144. package/dist/map/models/feature-format.enum.d.ts +8 -0
  145. package/dist/map/models/map-position.model.d.ts +12 -0
  146. package/dist/map/models/map-settings.d.ts +46 -0
  147. package/dist/map/services/feature.service.d.ts +2 -0
  148. package/dist/map/services/map-management.service.d.ts +2 -0
  149. package/dist/package.json +1 -1
  150. package/dist/src/map/messages/commands/add-control.command.d.ts +8 -2
  151. package/dist/src/map/messages/commands/add-layer.command.d.ts +0 -2
  152. package/dist/src/map/messages/commands/add-tile.command.d.ts +0 -2
  153. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +3 -2
  154. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +3 -2
  155. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +8 -2
  156. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +12 -2
  157. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +0 -2
  158. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +10 -2
  159. package/dist/src/map/messages/commands/modify-feature.command.d.ts +13 -2
  160. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +0 -2
  161. package/dist/src/map/messages/commands/remove-control.command.d.ts +13 -2
  162. package/dist/src/map/messages/commands/remove-layer.command.d.ts +0 -2
  163. package/dist/src/map/messages/commands/remove-tile.command.d.ts +0 -2
  164. package/dist/src/map/messages/commands/set-map-center.command.d.ts +0 -2
  165. package/dist/src/map/messages/commands/start-drawing.command.d.ts +10 -2
  166. package/dist/src/map/messages/events/drawing-finished.event.d.ts +0 -3
  167. package/dist/src/map/messages/events/map-click.event.d.ts +13 -2
  168. package/dist/src/map/messages/events/map-move-end.event.d.ts +6 -2
  169. package/dist/src/map/messages/events/map-rendered.event.d.ts +8 -2
  170. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +7 -2
  171. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +8 -2
  172. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +23 -0
  173. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +0 -2
  174. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +0 -2
  175. package/dist/src/map/messages/executors/get-map-position.executor.d.ts +0 -1
  176. package/dist/src/map/messages/index.d.ts +8 -6
  177. package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +10 -2
  178. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +20 -0
  179. package/dist/src/map/messages/queries/get-layer.query.d.ts +0 -2
  180. package/dist/src/map/models/drawing-type.enum.d.ts +13 -0
  181. package/dist/src/map/models/feature-format.enum.d.ts +8 -0
  182. package/dist/src/map/models/map-position.model.d.ts +12 -0
  183. package/dist/src/map/models/map-settings.d.ts +46 -0
  184. package/dist/src/map/services/feature.service.d.ts +2 -0
  185. package/dist/src/map/services/map-management.service.d.ts +2 -0
  186. 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,32 @@
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';
1128
+ }(postboy.PostboyCallbackMessage));
1020
1129
 
1021
- var FilterFeaturesInAreaExecutor = /** @class */ (function (_super) {
1022
- __extends(FilterFeaturesInAreaExecutor, _super);
1023
- function FilterFeaturesInAreaExecutor(area, features) {
1130
+ /**
1131
+ * Represents a query to retrieve features located at a specific geographical point.
1132
+ * The query is defined by latitude, longitude, and an optional set of features to ignore.
1133
+ */
1134
+ var GetFeaturesInPointQuery = /** @class */ (function (_super) {
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
+ */
1143
+ function GetFeaturesInPointQuery(lat, lng, ignore) {
1144
+ if (ignore === void 0) { ignore = new Set(); }
1024
1145
  var _this = _super.call(this) || this;
1025
- _this.area = area;
1026
- _this.features = features;
1146
+ _this.lat = lat;
1147
+ _this.lng = lng;
1148
+ _this.ignore = ignore;
1027
1149
  return _this;
1028
1150
  }
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';
1151
+ return GetFeaturesInPointQuery;
1152
+ }(postboy.PostboyCallbackMessage));
1039
1153
 
1040
1154
  var AddLayerCommand = /** @class */ (function (_super) {
1041
1155
  __extends(AddLayerCommand, _super);
@@ -1044,16 +1158,8 @@
1044
1158
  _this.layer = layer;
1045
1159
  return _this;
1046
1160
  }
1047
- Object.defineProperty(AddLayerCommand.prototype, "id", {
1048
- get: function () {
1049
- return AddLayerCommand.ID;
1050
- },
1051
- enumerable: false,
1052
- configurable: true
1053
- });
1054
1161
  return AddLayerCommand;
1055
- }(postboy.PostboyGenericMessage));
1056
- AddLayerCommand.ID = 'd93e250f-92bc-43ac-9c6a-46c521a1aaa5';
1162
+ }(postboy.PostboyGenericMessage));
1057
1163
 
1058
1164
  var PlaceLayerFeaturesCommand = /** @class */ (function (_super) {
1059
1165
  __extends(PlaceLayerFeaturesCommand, _super);
@@ -1063,16 +1169,8 @@
1063
1169
  _this.features = features;
1064
1170
  return _this;
1065
1171
  }
1066
- Object.defineProperty(PlaceLayerFeaturesCommand.prototype, "id", {
1067
- get: function () {
1068
- return PlaceLayerFeaturesCommand.ID;
1069
- },
1070
- enumerable: false,
1071
- configurable: true
1072
- });
1073
1172
  return PlaceLayerFeaturesCommand;
1074
- }(postboy.PostboyGenericMessage));
1075
- PlaceLayerFeaturesCommand.ID = '8caf86bc-869b-426f-b36d-4642f6b8aab0';
1173
+ }(postboy.PostboyGenericMessage));
1076
1174
 
1077
1175
  var RemoveLayerCommand = /** @class */ (function (_super) {
1078
1176
  __extends(RemoveLayerCommand, _super);
@@ -1081,16 +1179,8 @@
1081
1179
  _this.layer = layer;
1082
1180
  return _this;
1083
1181
  }
1084
- Object.defineProperty(RemoveLayerCommand.prototype, "id", {
1085
- get: function () {
1086
- return RemoveLayerCommand.ID;
1087
- },
1088
- enumerable: false,
1089
- configurable: true
1090
- });
1091
1182
  return RemoveLayerCommand;
1092
- }(postboy.PostboyGenericMessage));
1093
- RemoveLayerCommand.ID = 'ab484e0e-e185-45cd-8434-12101f3c7eb1';
1183
+ }(postboy.PostboyGenericMessage));
1094
1184
 
1095
1185
  var AddTileCommand = /** @class */ (function (_super) {
1096
1186
  __extends(AddTileCommand, _super);
@@ -1099,16 +1189,8 @@
1099
1189
  _this.layer = layer;
1100
1190
  return _this;
1101
1191
  }
1102
- Object.defineProperty(AddTileCommand.prototype, "id", {
1103
- get: function () {
1104
- return AddTileCommand.ID;
1105
- },
1106
- enumerable: false,
1107
- configurable: true
1108
- });
1109
1192
  return AddTileCommand;
1110
- }(postboy.PostboyGenericMessage));
1111
- AddTileCommand.ID = '25b7df28-72ce-4453-9fe6-54285a2fdc57';
1193
+ }(postboy.PostboyGenericMessage));
1112
1194
 
1113
1195
  var RemoveTileCommand = /** @class */ (function (_super) {
1114
1196
  __extends(RemoveTileCommand, _super);
@@ -1117,16 +1199,8 @@
1117
1199
  _this.layer = layer;
1118
1200
  return _this;
1119
1201
  }
1120
- Object.defineProperty(RemoveTileCommand.prototype, "id", {
1121
- get: function () {
1122
- return RemoveTileCommand.ID;
1123
- },
1124
- enumerable: false,
1125
- configurable: true
1126
- });
1127
1202
  return RemoveTileCommand;
1128
- }(postboy.PostboyGenericMessage));
1129
- RemoveTileCommand.ID = 'c36ccc0b-5638-4819-b148-2de57a59a5b7';
1203
+ }(postboy.PostboyGenericMessage));
1130
1204
 
1131
1205
  var FitToFeaturesCommand = /** @class */ (function (_super) {
1132
1206
  __extends(FitToFeaturesCommand, _super);
@@ -1137,16 +1211,8 @@
1137
1211
  _this.zoomAfter = zoomAfter;
1138
1212
  return _this;
1139
1213
  }
1140
- Object.defineProperty(FitToFeaturesCommand.prototype, "id", {
1141
- get: function () {
1142
- return FitToFeaturesCommand.ID;
1143
- },
1144
- enumerable: false,
1145
- configurable: true
1146
- });
1147
1214
  return FitToFeaturesCommand;
1148
- }(postboy.PostboyGenericMessage));
1149
- FitToFeaturesCommand.ID = '76cdc091-3793-4b6c-82f7-1e0334cf08a8';
1215
+ }(postboy.PostboyGenericMessage));
1150
1216
 
1151
1217
  var GetLayerQuery = /** @class */ (function (_super) {
1152
1218
  __extends(GetLayerQuery, _super);
@@ -1155,32 +1221,16 @@
1155
1221
  _this.name = name;
1156
1222
  return _this;
1157
1223
  }
1158
- Object.defineProperty(GetLayerQuery.prototype, "id", {
1159
- get: function () {
1160
- return GetLayerQuery.ID;
1161
- },
1162
- enumerable: false,
1163
- configurable: true
1164
- });
1165
1224
  return GetLayerQuery;
1166
- }(postboy.PostboyCallbackMessage));
1167
- GetLayerQuery.ID = '5c04c87b-8a93-4c2a-979e-d1e313d860ed';
1225
+ }(postboy.PostboyCallbackMessage));
1168
1226
 
1169
1227
  var DrawingFinishedEvent = /** @class */ (function (_super) {
1170
1228
  __extends(DrawingFinishedEvent, _super);
1171
1229
  function DrawingFinishedEvent() {
1172
- return _super.call(this) || this;
1230
+ return _super !== null && _super.apply(this, arguments) || this;
1173
1231
  }
1174
- Object.defineProperty(DrawingFinishedEvent.prototype, "id", {
1175
- get: function () {
1176
- return DrawingFinishedEvent.ID;
1177
- },
1178
- enumerable: false,
1179
- configurable: true
1180
- });
1181
1232
  return DrawingFinishedEvent;
1182
- }(postboy.PostboyGenericMessage));
1183
- DrawingFinishedEvent.ID = 'c724b68e-b4eb-4783-90f1-a8e31973fd36';
1233
+ }(postboy.PostboyGenericMessage));
1184
1234
 
1185
1235
  var DrawingGenerationService = /** @class */ (function () {
1186
1236
  function DrawingGenerationService() {
@@ -1213,6 +1263,9 @@
1213
1263
  FeatureService.filterFeaturesInArea = function (query) {
1214
1264
  return query.features.filter(function (f) { return FeatureService.booleanIntersects(query.area, f.getGeometry()); });
1215
1265
  };
1266
+ FeatureService.filterFeaturesInPoint = function (query) {
1267
+ return query.features.filter(function (f) { return FeatureService.booleanIntersects(f.getGeometry(), new geom.Point([query.lng, query.lat])); });
1268
+ };
1216
1269
  FeatureService.calculateArea = function (g) {
1217
1270
  if (!g)
1218
1271
  return 0;
@@ -1239,16 +1292,8 @@
1239
1292
  _this.type = type;
1240
1293
  return _this;
1241
1294
  }
1242
- Object.defineProperty(GenerateDrawExecutor.prototype, "id", {
1243
- get: function () {
1244
- return GenerateDrawExecutor.ID;
1245
- },
1246
- enumerable: false,
1247
- configurable: true
1248
- });
1249
1295
  return GenerateDrawExecutor;
1250
- }(postboy.PostboyExecutor));
1251
- GenerateDrawExecutor.ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
1296
+ }(postboy.PostboyExecutor));
1252
1297
 
1253
1298
  var GenerateZoomControlExecutor = /** @class */ (function (_super) {
1254
1299
  __extends(GenerateZoomControlExecutor, _super);
@@ -1257,16 +1302,8 @@
1257
1302
  _this.settings = settings;
1258
1303
  return _this;
1259
1304
  }
1260
- Object.defineProperty(GenerateZoomControlExecutor.prototype, "id", {
1261
- get: function () {
1262
- return GenerateZoomControlExecutor.ID;
1263
- },
1264
- enumerable: false,
1265
- configurable: true
1266
- });
1267
1305
  return GenerateZoomControlExecutor;
1268
- }(postboy.PostboyExecutor));
1269
- GenerateZoomControlExecutor.ID = 'ff16a833-c68e-4b1a-bc23-c0d16b002810';
1306
+ }(postboy.PostboyExecutor));
1270
1307
 
1271
1308
  var ZoomControlFactory = /** @class */ (function () {
1272
1309
  function ZoomControlFactory() {
@@ -1287,7 +1324,11 @@
1287
1324
  __extends(MapPostboyService, _super);
1288
1325
  function MapPostboyService() {
1289
1326
  var _this = _super.call(this) || this;
1290
- _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
+ });
1291
1332
  return _this;
1292
1333
  }
1293
1334
  return MapPostboyService;
@@ -1312,10 +1353,11 @@
1312
1353
  this.observeRemoveTile();
1313
1354
  this.observeLayerQuery();
1314
1355
  this.observeFeaturesInArea();
1356
+ this.observeFeaturesInPoint();
1315
1357
  };
1316
1358
  MapManagementService.prototype.observeRemoveTile = function () {
1317
1359
  var _this = this;
1318
- this.postboy.subscribe(RemoveTileCommand.ID).subscribe(function (c) {
1360
+ this.postboy.sub(RemoveTileCommand).subscribe(function (c) {
1319
1361
  if (!_this.map)
1320
1362
  return;
1321
1363
  _this.map.removeLayer(c.layer);
@@ -1323,11 +1365,11 @@
1323
1365
  };
1324
1366
  MapManagementService.prototype.observeLayerQuery = function () {
1325
1367
  var _this = this;
1326
- 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)); });
1327
1369
  };
1328
1370
  MapManagementService.prototype.observeAddTile = function () {
1329
1371
  var _this = this;
1330
- this.postboy.subscribe(AddTileCommand.ID).subscribe(function (c) {
1372
+ this.postboy.sub(AddTileCommand).subscribe(function (c) {
1331
1373
  if (!_this.map)
1332
1374
  return;
1333
1375
  _this.map.addLayer(c.layer);
@@ -1335,13 +1377,13 @@
1335
1377
  };
1336
1378
  MapManagementService.prototype.observeMapRender = function () {
1337
1379
  var _this = this;
1338
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1380
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1339
1381
  _this.map = m.map;
1340
1382
  });
1341
1383
  };
1342
1384
  MapManagementService.prototype.observeAddLayer = function () {
1343
1385
  var _this = this;
1344
- this.postboy.subscribe(AddLayerCommand.ID).subscribe(function (c) {
1386
+ this.postboy.sub(AddLayerCommand).subscribe(function (c) {
1345
1387
  if (!_this.map)
1346
1388
  return;
1347
1389
  _this.layers.put(c.layer.get('name'), c.layer);
@@ -1350,7 +1392,7 @@
1350
1392
  };
1351
1393
  MapManagementService.prototype.observePlaceFeatures = function () {
1352
1394
  var _this = this;
1353
- this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe(function (c) {
1395
+ this.postboy.sub(PlaceLayerFeaturesCommand).subscribe(function (c) {
1354
1396
  var _a, _b;
1355
1397
  if (!_this.layers.has(c.layer))
1356
1398
  return;
@@ -1363,7 +1405,7 @@
1363
1405
  };
1364
1406
  MapManagementService.prototype.observeRemoveLayer = function () {
1365
1407
  var _this = this;
1366
- this.postboy.subscribe(RemoveLayerCommand.ID).subscribe(function (c) {
1408
+ this.postboy.sub(RemoveLayerCommand).subscribe(function (c) {
1367
1409
  if (!_this.map)
1368
1410
  return;
1369
1411
  _this.layers.rmv(c.layer.get('name'));
@@ -1372,22 +1414,40 @@
1372
1414
  };
1373
1415
  MapManagementService.prototype.observeFeaturesInArea = function () {
1374
1416
  var _this = this;
1375
- this.postboy.subscribe(GetFeaturesInAreaQuery.ID).subscribe(function (qr) {
1417
+ this.postboy.sub(GetFeaturesInAreaQuery).subscribe(function (qr) {
1376
1418
  var result = new collections.Dictionary();
1377
- _this.layers.forEach(function (l) {
1378
- var _a, _b;
1379
- var layerName = l.get('name');
1380
- if (qr.ignore.has(layerName) || layerName === MapConstants.DrawingLayerId)
1381
- return;
1382
- var source = l.getSource();
1383
- if (!!source['getSource'])
1384
- source = (_a = source) === null || _a === void 0 ? void 0 : _a.getSource();
1385
- var features = _this.postboy.execute(new FilterFeaturesInAreaExecutor(qr.area, (_b = source === null || source === void 0 ? void 0 : source.getFeatures()) !== null && _b !== void 0 ? _b : []));
1386
- result.put(layerName, features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1387
- });
1419
+ _this.forEachLayer(function (l, s) {
1420
+ var _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 : []));
1422
+ result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1423
+ }, qr.ignore);
1424
+ qr.finish(result);
1425
+ });
1426
+ };
1427
+ MapManagementService.prototype.observeFeaturesInPoint = function () {
1428
+ var _this = this;
1429
+ this.postboy.sub(GetFeaturesInPointQuery).subscribe(function (qr) {
1430
+ var result = new collections.Dictionary();
1431
+ _this.forEachLayer(function (l, s) {
1432
+ var _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 : []));
1434
+ result.put(l.get('name'), features.map(function (e) { return (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo))); }));
1435
+ }, qr.ignore);
1388
1436
  qr.finish(result);
1389
1437
  });
1390
1438
  };
1439
+ MapManagementService.prototype.forEachLayer = function (action, ignore) {
1440
+ this.layers.forEach(function (l) {
1441
+ var _a;
1442
+ var layerName = l.get('name');
1443
+ if (ignore.has(layerName) || layerName === MapConstants.DrawingLayerId)
1444
+ return;
1445
+ var source = l.getSource();
1446
+ if (!!source['getSource'])
1447
+ source = (_a = source) === null || _a === void 0 ? void 0 : _a.getSource();
1448
+ action(l, source);
1449
+ });
1450
+ };
1391
1451
  return MapManagementService;
1392
1452
  }());
1393
1453
  MapManagementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapManagementService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
@@ -1415,7 +1475,7 @@
1415
1475
  MapStateService.prototype.observeMapRendering = function () {
1416
1476
  var _this = this;
1417
1477
  this.postboy
1418
- .subscribe(MapRenderedEvent.ID)
1478
+ .sub(MapRenderedEvent)
1419
1479
  .pipe(operators.first())
1420
1480
  .subscribe(function (ev) {
1421
1481
  var _a;
@@ -1427,7 +1487,7 @@
1427
1487
  };
1428
1488
  MapStateService.prototype.observeCenter = function () {
1429
1489
  var _this = this;
1430
- this.postboy.subscribe(SetMapCenterCommand.ID).subscribe(function (c) {
1490
+ this.postboy.sub(SetMapCenterCommand).subscribe(function (c) {
1431
1491
  var _a, _b;
1432
1492
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getView().setCenter([c.lng, c.lat]);
1433
1493
  if (c.zoom)
@@ -1453,7 +1513,7 @@
1453
1513
  };
1454
1514
  MapFeatureService.prototype.observeMapRender = function () {
1455
1515
  var _this = this;
1456
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1516
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1457
1517
  _this.map = m.map;
1458
1518
  if (_this.fitPolygonsWaiting)
1459
1519
  _this.postboy.fire(_this.fitPolygonsWaiting);
@@ -1461,13 +1521,13 @@
1461
1521
  };
1462
1522
  MapFeatureService.prototype.observeFitToFeatures = function () {
1463
1523
  var _this = this;
1464
- this.postboy.subscribe(FitToFeaturesCommand.ID).subscribe(function (cmd) {
1524
+ this.postboy.sub(FitToFeaturesCommand).subscribe(function (cmd) {
1465
1525
  _this.fitToGeometries(cmd.features.map(function (f) { return f.getGeometry(); }), cmd.zoomAfter);
1466
1526
  });
1467
1527
  };
1468
1528
  MapFeatureService.prototype.observeFitToPolygons = function () {
1469
1529
  var _this = this;
1470
- this.postboy.subscribe(FitToPolygonsCommand.ID).subscribe(function (cmd) {
1530
+ this.postboy.sub(FitToPolygonsCommand).subscribe(function (cmd) {
1471
1531
  if (!_this.map) {
1472
1532
  _this.fitPolygonsWaiting = cmd;
1473
1533
  return;
@@ -1520,7 +1580,7 @@
1520
1580
  };
1521
1581
  MapClickService.prototype.observeMapRender = function () {
1522
1582
  var _this = this;
1523
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1583
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1524
1584
  var _a;
1525
1585
  _this.map = m.map;
1526
1586
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.on('singleclick', function (e) {
@@ -1555,24 +1615,20 @@
1555
1615
  };
1556
1616
  DrawingService.prototype.observeSelectArea = function () {
1557
1617
  var _this = this;
1558
- this.postboy.subscribe(DrawSelectionAreaCommand.ID).subscribe(function (ev) {
1559
- var drawingCommand = new StartDrawingCommand(ev.type, ev.style);
1560
- 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) {
1561
1620
  if (!r) {
1562
1621
  ev.finish(new collections.Dictionary());
1563
1622
  return;
1564
1623
  }
1565
1624
  var area = PolygonModel.fromGeoJson(1, r).feature.getGeometry();
1566
- var getFeaturesCommand = new GetFeaturesInAreaQuery(area, ev.ignore);
1567
- getFeaturesCommand.result.subscribe(function (result) { return ev.finish(result); });
1568
- _this.postboy.fire(getFeaturesCommand);
1625
+ _this.postboy.fireCallback(new GetFeaturesInAreaQuery(area, ev.ignore), function (result) { return ev.finish(result); });
1569
1626
  });
1570
- _this.postboy.fire(drawingCommand);
1571
1627
  });
1572
1628
  };
1573
1629
  DrawingService.prototype.observeDrawing = function () {
1574
1630
  var _this = this;
1575
- this.postboy.subscribe(StartDrawingCommand.ID).subscribe(function (ev) {
1631
+ this.postboy.sub(StartDrawingCommand).subscribe(function (ev) {
1576
1632
  _this.draw(function (l) {
1577
1633
  var _a;
1578
1634
  if (!l || !_this.map) {
@@ -1580,7 +1636,7 @@
1580
1636
  return;
1581
1637
  }
1582
1638
  var cancelSub = _this.observeCancelation(ev, l);
1583
- _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));
1584
1640
  (_a = _this.map) === null || _a === void 0 ? void 0 : _a.addInteraction(_this.drawInteraction);
1585
1641
  _this.drawInteraction.on('drawend', function (evt) {
1586
1642
  cancelSub.unsubscribe();
@@ -1597,19 +1653,17 @@
1597
1653
  };
1598
1654
  DrawingService.prototype.observeMapRender = function () {
1599
1655
  var _this = this;
1600
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1656
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1601
1657
  _this.map = m.map;
1602
1658
  });
1603
1659
  };
1604
1660
  DrawingService.prototype.draw = function (action) {
1605
- var query = new GetLayerQuery(MapConstants.DrawingLayerId);
1606
- query.result.subscribe(function (l) { return action(l); });
1607
- this.postboy.fire(query);
1661
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1608
1662
  };
1609
1663
  DrawingService.prototype.observeCancelation = function (ev, layer) {
1610
1664
  var _this = this;
1611
1665
  return this.postboy
1612
- .subscribe(CancelDrawingCommand.ID)
1666
+ .sub(CancelDrawingCommand)
1613
1667
  .pipe(operators.first())
1614
1668
  .subscribe(function () {
1615
1669
  ev.finish(null);
@@ -1643,7 +1697,7 @@
1643
1697
  };
1644
1698
  FeatureModificationService.prototype.observeModification = function () {
1645
1699
  var _this = this;
1646
- this.postboy.subscribe(ModifyFeatureCommand.ID).subscribe(function (ev) {
1700
+ this.postboy.sub(ModifyFeatureCommand).subscribe(function (ev) {
1647
1701
  _this.defineLayer(function (l) {
1648
1702
  if (!l || !_this.map) {
1649
1703
  _this.clearInteraction(l);
@@ -1696,19 +1750,17 @@
1696
1750
  };
1697
1751
  FeatureModificationService.prototype.observeMapRender = function () {
1698
1752
  var _this = this;
1699
- this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
1753
+ this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
1700
1754
  _this.map = m.map;
1701
1755
  });
1702
1756
  };
1703
1757
  FeatureModificationService.prototype.defineLayer = function (action) {
1704
- var query = new GetLayerQuery(MapConstants.DrawingLayerId);
1705
- query.result.subscribe(function (l) { return action(l); });
1706
- this.postboy.fire(query);
1758
+ this.postboy.fireCallback(new GetLayerQuery(MapConstants.DrawingLayerId), function (l) { return action(l); });
1707
1759
  };
1708
1760
  FeatureModificationService.prototype.observeCancelation = function (ev, layer) {
1709
1761
  var _this = this;
1710
1762
  return this.postboy
1711
- .subscribe(CancelFeatureModificationCommand.ID)
1763
+ .sub(CancelFeatureModificationCommand)
1712
1764
  .pipe(operators.first())
1713
1765
  .subscribe(function () {
1714
1766
  ev.finish(null);
@@ -1740,7 +1792,7 @@
1740
1792
  ControlsService.prototype.observeMapRender = function () {
1741
1793
  var _this = this;
1742
1794
  this.postboy
1743
- .subscribe(MapRenderedEvent.ID)
1795
+ .sub(MapRenderedEvent)
1744
1796
  .pipe(operators.first())
1745
1797
  .subscribe(function (m) {
1746
1798
  _this.map = m.map;
@@ -1750,13 +1802,11 @@
1750
1802
  };
1751
1803
  ControlsService.prototype.observeAdding = function () {
1752
1804
  var _this = this;
1753
- 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); });
1754
1806
  };
1755
1807
  ControlsService.prototype.observeRemoving = function () {
1756
1808
  var _this = this;
1757
- this.postboy
1758
- .subscribe(RemoveControlCommand.ID)
1759
- .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); });
1760
1810
  };
1761
1811
  return ControlsService;
1762
1812
  }());
@@ -1775,37 +1825,39 @@
1775
1825
  return _this;
1776
1826
  }
1777
1827
  MessageRegistratorService.prototype._up = function () {
1778
- this.registerReplay(MapRenderedEvent.ID);
1779
- this.registerReplay(PlaceLayerFeaturesCommand.ID);
1780
- this.registerReplay(RemoveControlCommand.ID);
1781
- this.registerReplay(AddControlCommand.ID);
1782
- this.registerReplay(SetMapCenterCommand.ID);
1783
- this.registerSubject(AddLayerCommand.ID);
1784
- this.registerSubject(RemoveLayerCommand.ID);
1785
- this.registerSubject(AddTileCommand.ID);
1786
- this.registerSubject(RemoveTileCommand.ID);
1787
- this.registerSubject(MapClickEvent.ID);
1788
- this.registerSubject(CloseTooltipCommand.ID);
1789
- this.registerSubject(FitToFeaturesCommand.ID);
1790
- this.registerSubject(FitToPolygonsCommand.ID);
1791
- this.registerSubject(MapMoveEndEvent.ID);
1792
- this.registerSubject(CancelDrawingCommand.ID);
1793
- this.registerSubject(StartDrawingCommand.ID);
1794
- this.registerSubject(GetLayerQuery.ID);
1795
- this.registerSubject(DrawingFinishedEvent.ID);
1796
- this.registerSubject(GetFeaturesInAreaQuery.ID);
1797
- this.registerSubject(DrawSelectionAreaCommand.ID);
1798
- this.registerSubject(CancelFeatureModificationCommand.ID);
1799
- this.registerSubject(ModifyFeatureCommand.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);
1800
1851
  this.setExecutors();
1801
1852
  };
1802
1853
  MessageRegistratorService.prototype.setExecutors = function () {
1803
1854
  var _this = this;
1804
- this.registerExecutor(FilterFeaturesInAreaExecutor.ID, function (e) { return FeatureService.filterFeaturesInArea(e); });
1805
- 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()); });
1806
- this.registerExecutor(GenerateDrawExecutor.ID, function (e) { return DrawingGenerationService.getDraw(e); });
1807
- this.registerExecutor(GenerateZoomControlExecutor.ID, function (e) { return ZoomControlFactory.build(e.settings); });
1808
- 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(); });
1809
1861
  };
1810
1862
  return MessageRegistratorService;
1811
1863
  }(postboy.PostboyAbstractRegistrator));
@@ -2048,7 +2100,7 @@
2048
2100
  TileLayerComponent.prototype.ngOnInit = function () {
2049
2101
  var _this = this;
2050
2102
  this.postboy
2051
- .subscribe(MapRenderedEvent.ID)
2103
+ .sub(MapRenderedEvent)
2052
2104
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2053
2105
  .subscribe(function (m) { return _this.initLayer(); });
2054
2106
  };
@@ -2305,7 +2357,7 @@
2305
2357
  FeatureLayerComponent.prototype.ngOnInit = function () {
2306
2358
  var _this = this;
2307
2359
  this.postboy
2308
- .subscribe(MapRenderedEvent.ID)
2360
+ .sub(MapRenderedEvent)
2309
2361
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2310
2362
  .subscribe(function (m) { return _this.initLayer(); });
2311
2363
  };
@@ -2491,8 +2543,8 @@
2491
2543
  ClusterLayerManager.prototype.observeMapMovement = function () {
2492
2544
  var _this = this;
2493
2545
  rxjs.combineLatest([
2494
- this.postboy.subscribe(MapMoveEndEvent.ID).pipe(operators.auditTime(250)),
2495
- this.postboy.subscribe(MapRenderedEvent.ID),
2546
+ this.postboy.sub(MapMoveEndEvent).pipe(operators.auditTime(250)),
2547
+ this.postboy.sub(MapRenderedEvent),
2496
2548
  ]).subscribe(function (_d) {
2497
2549
  var _e = __read(_d, 2), movement = _e[0], renderEvent = _e[1];
2498
2550
  _this.checkClusterNecessity(renderEvent.map);
@@ -2500,7 +2552,7 @@
2500
2552
  };
2501
2553
  ClusterLayerManager.prototype.observeClick = function () {
2502
2554
  var _this = this;
2503
- this.postboy.subscribe(MapClickEvent.ID).subscribe(function (m) {
2555
+ this.postboy.sub(MapClickEvent).subscribe(function (m) {
2504
2556
  var _a, _b;
2505
2557
  if (((_b = (_a = m.features[_this.settings.name]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 1) {
2506
2558
  _this.postboy.fire(new FitToFeaturesCommand(m.features[_this.settings.name], -1));
@@ -2602,7 +2654,7 @@
2602
2654
  ClusterLayerComponent.prototype.ngOnInit = function () {
2603
2655
  var _this = this;
2604
2656
  this.postboy
2605
- .subscribe(MapRenderedEvent.ID)
2657
+ .sub(MapRenderedEvent)
2606
2658
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2607
2659
  .subscribe(function (m) { return _this.initLayer(); });
2608
2660
  };
@@ -2774,7 +2826,7 @@
2774
2826
  MarkersComponent.prototype.ngOnInit = function () {
2775
2827
  var _this = this;
2776
2828
  this.postboy
2777
- .subscribe(MapRenderedEvent.ID)
2829
+ .sub(MapRenderedEvent)
2778
2830
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2779
2831
  .subscribe(function () { return _this.putMarkers(); });
2780
2832
  };
@@ -2880,20 +2932,20 @@
2880
2932
  };
2881
2933
  TooltipComponent.prototype.observeMapClick = function () {
2882
2934
  var _this = this;
2883
- return this.postboy.subscribe(MapClickEvent.ID).subscribe(function (ev) {
2935
+ return this.postboy.sub(MapClickEvent).subscribe(function (ev) {
2884
2936
  _this._settings.show(ev) ? _this.addOverlay(ev.coordinates) : _this.removeOverlay();
2885
2937
  });
2886
2938
  };
2887
2939
  TooltipComponent.prototype.observeClose = function () {
2888
2940
  var _this = this;
2889
2941
  return this.postboy
2890
- .subscribe(CloseTooltipCommand.ID)
2942
+ .sub(CloseTooltipCommand)
2891
2943
  .pipe(operators.filter(function (ev) { return ev.tooltipId === _this._settings.id; }))
2892
2944
  .subscribe(function () { return _this.removeOverlay(); });
2893
2945
  };
2894
2946
  TooltipComponent.prototype.observeMapRender = function () {
2895
2947
  var _this = this;
2896
- return this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
2948
+ return this.postboy.sub(MapRenderedEvent).subscribe(function (m) {
2897
2949
  _this.map = m.map;
2898
2950
  });
2899
2951
  };
@@ -2946,7 +2998,7 @@
2946
2998
  PolygonsComponent.prototype.ngOnInit = function () {
2947
2999
  var _this = this;
2948
3000
  this.postboy
2949
- .subscribe(MapRenderedEvent.ID)
3001
+ .sub(MapRenderedEvent)
2950
3002
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
2951
3003
  .subscribe(function () { return _this.putPolygons(); });
2952
3004
  };
@@ -3134,7 +3186,7 @@
3134
3186
  MapControlZoomComponent.prototype.ngOnInit = function () {
3135
3187
  var _this = this;
3136
3188
  this.postboy
3137
- .subscribe(MapRenderedEvent.ID)
3189
+ .sub(MapRenderedEvent)
3138
3190
  .pipe(operators.filter(function (m) { return !!m; }), operators.first())
3139
3191
  .subscribe(function (m) {
3140
3192
  _this.map = m.map;
@@ -3144,7 +3196,7 @@
3144
3196
  MapControlZoomComponent.prototype.setControl = function () {
3145
3197
  if (!this.map)
3146
3198
  return;
3147
- this.control = this.postboy.execute(new GenerateZoomControlExecutor(this._settings));
3199
+ this.control = this.postboy.exec(new GenerateZoomControlExecutor(this._settings));
3148
3200
  this.map.addControl(this.control);
3149
3201
  };
3150
3202
  return MapControlZoomComponent;
@@ -3436,8 +3488,10 @@
3436
3488
  exports.FeatureLayerComponent = FeatureLayerComponent;
3437
3489
  exports.FeatureLayerSettings = FeatureLayerSettings;
3438
3490
  exports.FilterFeaturesInAreaExecutor = FilterFeaturesInAreaExecutor;
3491
+ exports.FilterFeaturesInPointExecutor = FilterFeaturesInPointExecutor;
3439
3492
  exports.FitToPolygonsCommand = FitToPolygonsCommand;
3440
3493
  exports.GetFeaturesInAreaQuery = GetFeaturesInAreaQuery;
3494
+ exports.GetFeaturesInPointQuery = GetFeaturesInPointQuery;
3441
3495
  exports.GetMapPositionExecutor = GetMapPositionExecutor;
3442
3496
  exports.MapClickEvent = MapClickEvent;
3443
3497
  exports.MapControl = MapControl;