@artstesh/maps 6.0.7 → 6.0.9

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 (175) hide show
  1. package/dist/esm2022/map/map-plate/controls/map-control-zoom/map-control-zoom.component.mjs +3 -3
  2. package/dist/esm2022/map/map-plate/features/markers/markers.component.mjs +2 -2
  3. package/dist/esm2022/map/map-plate/features/polygons/polygons.component.mjs +2 -2
  4. package/dist/esm2022/map/map-plate/layers/cluster-layer/cluster-layer.component.mjs +2 -2
  5. package/dist/esm2022/map/map-plate/layers/cluster-layer/cluster-layer.manager.mjs +4 -4
  6. package/dist/esm2022/map/map-plate/layers/feature-layer/feature-layer.component.mjs +2 -2
  7. package/dist/esm2022/map/map-plate/layers/tile-layer/tile-layer.component.mjs +2 -2
  8. package/dist/esm2022/map/map-plate/tooltips/tooltip/tooltip.component.mjs +4 -4
  9. package/dist/esm2022/map/messages/commands/add-control.command.mjs +10 -5
  10. package/dist/esm2022/map/messages/commands/add-layer.command.mjs +2 -5
  11. package/dist/esm2022/map/messages/commands/add-tile.command.mjs +2 -5
  12. package/dist/esm2022/map/messages/commands/cancel-drawing.command.mjs +5 -5
  13. package/dist/esm2022/map/messages/commands/cancel-feature-modification.command.mjs +5 -5
  14. package/dist/esm2022/map/messages/commands/close-tooltip.command.mjs +10 -5
  15. package/dist/esm2022/map/messages/commands/draw-selection-area.command.mjs +14 -5
  16. package/dist/esm2022/map/messages/commands/fit-to-features.command.mjs +2 -5
  17. package/dist/esm2022/map/messages/commands/fit-to-polygons.command.mjs +12 -5
  18. package/dist/esm2022/map/messages/commands/modify-feature.command.mjs +15 -5
  19. package/dist/esm2022/map/messages/commands/place-layer-features.command.mjs +2 -5
  20. package/dist/esm2022/map/messages/commands/remove-control.command.mjs +15 -5
  21. package/dist/esm2022/map/messages/commands/remove-layer.command.mjs +2 -5
  22. package/dist/esm2022/map/messages/commands/remove-tile.command.mjs +2 -5
  23. package/dist/esm2022/map/messages/commands/set-map-center.command.mjs +2 -5
  24. package/dist/esm2022/map/messages/commands/start-drawing.command.mjs +12 -5
  25. package/dist/esm2022/map/messages/events/drawing-finished.event.mjs +2 -8
  26. package/dist/esm2022/map/messages/events/map-click.event.mjs +15 -5
  27. package/dist/esm2022/map/messages/events/map-move-end.event.mjs +8 -5
  28. package/dist/esm2022/map/messages/events/map-rendered.event.mjs +10 -5
  29. package/dist/esm2022/map/messages/executors/calculate-area.executor.mjs +9 -5
  30. package/dist/esm2022/map/messages/executors/filter-features-in-area.executor.mjs +10 -5
  31. package/dist/esm2022/map/messages/executors/filter-features-in-point.executor.mjs +14 -6
  32. package/dist/esm2022/map/messages/executors/generate-draw.executor.mjs +2 -5
  33. package/dist/esm2022/map/messages/executors/generate-zoom-control.executor.mjs +2 -5
  34. package/dist/esm2022/map/messages/executors/get-map-position.executor.mjs +1 -4
  35. package/dist/esm2022/map/messages/index.mjs +8 -8
  36. package/dist/esm2022/map/messages/queries/get-features-in-area.query.mjs +12 -5
  37. package/dist/esm2022/map/messages/queries/get-features-in-point.query.mjs +9 -5
  38. package/dist/esm2022/map/messages/queries/get-layer.query.mjs +2 -5
  39. package/dist/esm2022/map/models/drawing-type.enum.mjs +14 -1
  40. package/dist/esm2022/map/models/feature-format.enum.mjs +9 -1
  41. package/dist/esm2022/map/models/map-position.model.mjs +1 -1
  42. package/dist/esm2022/map/models/map-settings.mjs +47 -1
  43. package/dist/esm2022/map/services/controls/controls.service.mjs +4 -6
  44. package/dist/esm2022/map/services/drawing/drawing.service.mjs +9 -15
  45. package/dist/esm2022/map/services/drawing/feature-modification.service.mjs +5 -7
  46. package/dist/esm2022/map/services/map-click.service.mjs +2 -2
  47. package/dist/esm2022/map/services/map-feature.service.mjs +4 -4
  48. package/dist/esm2022/map/services/map-management.service.mjs +12 -12
  49. package/dist/esm2022/map/services/map-postboy.service.mjs +6 -2
  50. package/dist/esm2022/map/services/map-state.service.mjs +3 -3
  51. package/dist/esm2022/map/services/message-registrator.service.mjs +30 -30
  52. package/dist/esm2022/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.mjs +3 -3
  53. package/dist/esm2022/src/map/map-plate/features/markers/markers.component.mjs +2 -2
  54. package/dist/esm2022/src/map/map-plate/features/polygons/polygons.component.mjs +2 -2
  55. package/dist/esm2022/src/map/map-plate/layers/cluster-layer/cluster-layer.component.mjs +2 -2
  56. package/dist/esm2022/src/map/map-plate/layers/cluster-layer/cluster-layer.manager.mjs +4 -4
  57. package/dist/esm2022/src/map/map-plate/layers/feature-layer/feature-layer.component.mjs +2 -2
  58. package/dist/esm2022/src/map/map-plate/layers/tile-layer/tile-layer.component.mjs +2 -2
  59. package/dist/esm2022/src/map/map-plate/tooltips/tooltip/tooltip.component.mjs +4 -4
  60. package/dist/esm2022/src/map/messages/commands/add-control.command.mjs +10 -5
  61. package/dist/esm2022/src/map/messages/commands/add-layer.command.mjs +2 -5
  62. package/dist/esm2022/src/map/messages/commands/add-tile.command.mjs +2 -5
  63. package/dist/esm2022/src/map/messages/commands/cancel-drawing.command.mjs +5 -5
  64. package/dist/esm2022/src/map/messages/commands/cancel-feature-modification.command.mjs +5 -5
  65. package/dist/esm2022/src/map/messages/commands/close-tooltip.command.mjs +10 -5
  66. package/dist/esm2022/src/map/messages/commands/draw-selection-area.command.mjs +14 -5
  67. package/dist/esm2022/src/map/messages/commands/fit-to-features.command.mjs +2 -5
  68. package/dist/esm2022/src/map/messages/commands/fit-to-polygons.command.mjs +12 -5
  69. package/dist/esm2022/src/map/messages/commands/modify-feature.command.mjs +15 -5
  70. package/dist/esm2022/src/map/messages/commands/place-layer-features.command.mjs +2 -5
  71. package/dist/esm2022/src/map/messages/commands/remove-control.command.mjs +15 -5
  72. package/dist/esm2022/src/map/messages/commands/remove-layer.command.mjs +2 -5
  73. package/dist/esm2022/src/map/messages/commands/remove-tile.command.mjs +2 -5
  74. package/dist/esm2022/src/map/messages/commands/set-map-center.command.mjs +2 -5
  75. package/dist/esm2022/src/map/messages/commands/start-drawing.command.mjs +12 -5
  76. package/dist/esm2022/src/map/messages/events/drawing-finished.event.mjs +2 -8
  77. package/dist/esm2022/src/map/messages/events/map-click.event.mjs +15 -5
  78. package/dist/esm2022/src/map/messages/events/map-move-end.event.mjs +8 -5
  79. package/dist/esm2022/src/map/messages/events/map-rendered.event.mjs +10 -5
  80. package/dist/esm2022/src/map/messages/executors/calculate-area.executor.mjs +9 -5
  81. package/dist/esm2022/src/map/messages/executors/filter-features-in-area.executor.mjs +10 -5
  82. package/dist/esm2022/src/map/messages/executors/filter-features-in-point.executor.mjs +14 -6
  83. package/dist/esm2022/src/map/messages/executors/generate-draw.executor.mjs +2 -5
  84. package/dist/esm2022/src/map/messages/executors/generate-zoom-control.executor.mjs +2 -5
  85. package/dist/esm2022/src/map/messages/executors/get-map-position.executor.mjs +1 -4
  86. package/dist/esm2022/src/map/messages/index.mjs +8 -8
  87. package/dist/esm2022/src/map/messages/queries/get-features-in-area.query.mjs +12 -5
  88. package/dist/esm2022/src/map/messages/queries/get-features-in-point.query.mjs +9 -5
  89. package/dist/esm2022/src/map/messages/queries/get-layer.query.mjs +2 -5
  90. package/dist/esm2022/src/map/models/drawing-type.enum.mjs +14 -1
  91. package/dist/esm2022/src/map/models/feature-format.enum.mjs +9 -1
  92. package/dist/esm2022/src/map/models/map-position.model.mjs +1 -1
  93. package/dist/esm2022/src/map/models/map-settings.mjs +47 -1
  94. package/dist/esm2022/src/map/services/controls/controls.service.mjs +4 -6
  95. package/dist/esm2022/src/map/services/drawing/drawing.service.mjs +9 -15
  96. package/dist/esm2022/src/map/services/drawing/feature-modification.service.mjs +5 -7
  97. package/dist/esm2022/src/map/services/map-click.service.mjs +2 -2
  98. package/dist/esm2022/src/map/services/map-feature.service.mjs +4 -4
  99. package/dist/esm2022/src/map/services/map-management.service.mjs +12 -12
  100. package/dist/esm2022/src/map/services/map-postboy.service.mjs +6 -2
  101. package/dist/esm2022/src/map/services/map-state.service.mjs +3 -3
  102. package/dist/esm2022/src/map/services/message-registrator.service.mjs +30 -30
  103. package/dist/fesm2022/maps-components-src-map.mjs +386 -265
  104. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  105. package/dist/fesm2022/maps-components.mjs +386 -265
  106. package/dist/fesm2022/maps-components.mjs.map +1 -1
  107. package/dist/map/messages/commands/add-control.command.d.ts +9 -2
  108. package/dist/map/messages/commands/add-layer.command.d.ts +1 -2
  109. package/dist/map/messages/commands/add-tile.command.d.ts +1 -2
  110. package/dist/map/messages/commands/cancel-drawing.command.d.ts +4 -2
  111. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +4 -2
  112. package/dist/map/messages/commands/close-tooltip.command.d.ts +9 -2
  113. package/dist/map/messages/commands/draw-selection-area.command.d.ts +13 -2
  114. package/dist/map/messages/commands/fit-to-features.command.d.ts +1 -2
  115. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +11 -2
  116. package/dist/map/messages/commands/modify-feature.command.d.ts +14 -2
  117. package/dist/map/messages/commands/place-layer-features.command.d.ts +1 -2
  118. package/dist/map/messages/commands/remove-control.command.d.ts +14 -2
  119. package/dist/map/messages/commands/remove-layer.command.d.ts +1 -2
  120. package/dist/map/messages/commands/remove-tile.command.d.ts +1 -2
  121. package/dist/map/messages/commands/set-map-center.command.d.ts +1 -2
  122. package/dist/map/messages/commands/start-drawing.command.d.ts +11 -2
  123. package/dist/map/messages/events/drawing-finished.event.d.ts +1 -3
  124. package/dist/map/messages/events/map-click.event.d.ts +14 -2
  125. package/dist/map/messages/events/map-move-end.event.d.ts +7 -2
  126. package/dist/map/messages/events/map-rendered.event.d.ts +9 -2
  127. package/dist/map/messages/executors/calculate-area.executor.d.ts +8 -2
  128. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +9 -2
  129. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +13 -3
  130. package/dist/map/messages/executors/generate-draw.executor.d.ts +1 -2
  131. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +1 -2
  132. package/dist/map/messages/executors/get-map-position.executor.d.ts +0 -1
  133. package/dist/map/messages/index.d.ts +7 -7
  134. package/dist/map/messages/queries/get-features-in-area.query.d.ts +11 -2
  135. package/dist/map/messages/queries/get-features-in-point.query.d.ts +8 -2
  136. package/dist/map/messages/queries/get-layer.query.d.ts +1 -2
  137. package/dist/map/models/drawing-type.enum.d.ts +13 -0
  138. package/dist/map/models/feature-format.enum.d.ts +8 -0
  139. package/dist/map/models/map-position.model.d.ts +12 -0
  140. package/dist/map/models/map-settings.d.ts +46 -0
  141. package/dist/src/map/messages/commands/add-control.command.d.ts +9 -2
  142. package/dist/src/map/messages/commands/add-layer.command.d.ts +1 -2
  143. package/dist/src/map/messages/commands/add-tile.command.d.ts +1 -2
  144. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +4 -2
  145. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +4 -2
  146. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +9 -2
  147. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +13 -2
  148. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +1 -2
  149. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +11 -2
  150. package/dist/src/map/messages/commands/modify-feature.command.d.ts +14 -2
  151. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +1 -2
  152. package/dist/src/map/messages/commands/remove-control.command.d.ts +14 -2
  153. package/dist/src/map/messages/commands/remove-layer.command.d.ts +1 -2
  154. package/dist/src/map/messages/commands/remove-tile.command.d.ts +1 -2
  155. package/dist/src/map/messages/commands/set-map-center.command.d.ts +1 -2
  156. package/dist/src/map/messages/commands/start-drawing.command.d.ts +11 -2
  157. package/dist/src/map/messages/events/drawing-finished.event.d.ts +1 -3
  158. package/dist/src/map/messages/events/map-click.event.d.ts +14 -2
  159. package/dist/src/map/messages/events/map-move-end.event.d.ts +7 -2
  160. package/dist/src/map/messages/events/map-rendered.event.d.ts +9 -2
  161. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +8 -2
  162. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +9 -2
  163. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +13 -3
  164. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +1 -2
  165. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +1 -2
  166. package/dist/src/map/messages/executors/get-map-position.executor.d.ts +0 -1
  167. package/dist/src/map/messages/index.d.ts +7 -7
  168. package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +11 -2
  169. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +8 -2
  170. package/dist/src/map/messages/queries/get-layer.query.d.ts +1 -2
  171. package/dist/src/map/models/drawing-type.enum.d.ts +13 -0
  172. package/dist/src/map/models/feature-format.enum.d.ts +8 -0
  173. package/dist/src/map/models/map-position.model.d.ts +12 -0
  174. package/dist/src/map/models/map-settings.d.ts +46 -0
  175. package/package.json +13 -13
@@ -4,7 +4,6 @@ import Cluster from 'ol/source/Cluster';
4
4
  import { PostboyGenericMessage } from '@artstesh/postboy';
5
5
  export declare class AddLayerCommand extends PostboyGenericMessage {
6
6
  layer: Layer<VectorSource<any> | Cluster>;
7
- static readonly ID: string;
7
+ static readonly ID = "7fe68d71-350f-47e2-b1ae-62cc333e1572";
8
8
  constructor(layer: Layer<VectorSource<any> | Cluster>);
9
- get id(): string;
10
9
  }
@@ -3,7 +3,6 @@ import { XYZ } from 'ol/source';
3
3
  import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  export declare class AddTileCommand extends PostboyGenericMessage {
5
5
  layer: TileLayer<XYZ>;
6
- static readonly ID: string;
6
+ static readonly ID = "ae29b7af-21aa-4b0a-8586-92c23779e6cb";
7
7
  constructor(layer: TileLayer<XYZ>);
8
- get id(): string;
9
8
  }
@@ -1,5 +1,7 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
+ /**
3
+ * Represents a command to cancel a drawing action.
4
+ */
2
5
  export declare class CancelDrawingCommand extends PostboyGenericMessage {
3
- static readonly ID: string;
4
- get id(): string;
6
+ static readonly ID = "192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de";
5
7
  }
@@ -1,5 +1,7 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
+ /**
3
+ * Represents a command to cancel a feature modification.
4
+ */
2
5
  export declare class CancelFeatureModificationCommand extends PostboyGenericMessage {
3
- static readonly ID: string;
4
- get id(): string;
6
+ static readonly ID = "e7886353-53b3-4bbe-93b5-6490e5f1305e";
5
7
  }
@@ -1,7 +1,14 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
+ /**
3
+ * A command class that represents the action to close a tooltip.
4
+ */
2
5
  export declare class CloseTooltipCommand extends PostboyGenericMessage {
3
6
  tooltipId: string;
4
- static readonly ID: string;
7
+ static readonly ID = "df687e26-7298-46d7-8911-d014801dafac";
8
+ /**
9
+ * Creates an instance of the class with the specified tooltip ID.
10
+ *
11
+ * @param {string} tooltipId - The unique identifier for the tooltip.
12
+ */
5
13
  constructor(tooltipId: string);
6
- get id(): string;
7
14
  }
@@ -3,11 +3,22 @@ import Style from 'ol/style/Style';
3
3
  import { IIdentified } from '../../models/i-identified';
4
4
  import { Dictionary } from '@artstesh/collections';
5
5
  import { DrawingType } from '../../models';
6
+ /**
7
+ * Class representing a command to draw a selection area with a specific type and style.
8
+ *
9
+ * @return {Dictionary<IIdentified[]>} - a collection of features inside the selected area, grouped by a layer's name
10
+ */
6
11
  export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
7
12
  type: DrawingType;
8
13
  style: Style;
9
14
  ignore: Set<string>;
10
- static readonly ID: string;
15
+ static readonly ID = "06e43f59-c6ba-41bb-9c5b-f6534d914905";
16
+ /**
17
+ * Constructs a new instance with the specified type, style, and optional set of ignored items.
18
+ *
19
+ * @param {DrawingType} type - The type of drawing to be created.
20
+ * @param {Style} style - The style information for the drawing.
21
+ * @param {Set<string>} [ignore=new Set<string>()] - Optional set of items to be ignored.
22
+ */
11
23
  constructor(type: DrawingType, style: Style, ignore?: Set<string>);
12
- get id(): string;
13
24
  }
@@ -4,7 +4,6 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  export declare class FitToFeaturesCommand extends PostboyGenericMessage {
5
5
  features: Feature<Geometry>[];
6
6
  zoomAfter: number;
7
- static readonly ID: string;
7
+ static readonly ID = "04d67609-0b4c-4f52-aa53-ad0a3db967dc";
8
8
  constructor(features: Feature<Geometry>[], zoomAfter?: number);
9
- get id(): string;
10
9
  }
@@ -1,9 +1,18 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  import { PolygonModel } from '../../models';
3
+ /**
4
+ * FitToPolygonsCommand is a command used to fit a given set of polygon features
5
+ * to the viewable area, optionally applying a zoom transformation afterwards.
6
+ */
3
7
  export declare class FitToPolygonsCommand extends PostboyGenericMessage {
4
8
  features: PolygonModel[];
5
9
  zoomAfter: number;
6
- static readonly ID: string;
10
+ static readonly ID = "308394ce-48d3-45f5-8671-52207fba4be3";
11
+ /**
12
+ * Creates an instance of the class with specified polygon features and an optional zoom level.
13
+ *
14
+ * @param {PolygonModel[]} features - An array of polygon models to fit to.
15
+ * @param {number} [zoomAfter=0] - Optional zoom level change to apply after initialization. Defaults to 0.
16
+ */
7
17
  constructor(features: PolygonModel[], zoomAfter?: number);
8
- get id(): string;
9
18
  }
@@ -1,11 +1,23 @@
1
1
  import { PostboyCallbackMessage } from '@artstesh/postboy';
2
2
  import { FeatureOutputFormat, PolygonModel } from '../../models';
3
3
  import Style from 'ol/style/Style';
4
+ /**
5
+ * Represents a command to modify a feature with a specific style and output format
6
+ * for a polygonal model.
7
+ *
8
+ * @return {string | null} a string representation of the modified feature in the appropriate format
9
+ */
4
10
  export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string | null> {
5
11
  model: PolygonModel;
6
12
  style: Style;
7
13
  format: FeatureOutputFormat;
8
- static readonly ID: string;
14
+ static readonly ID = "8f76507e-f18d-4232-bab7-f3d4e3d707bb";
15
+ /**
16
+ * Constructs an instance of the class.
17
+ *
18
+ * @param {PolygonModel} model - The polygon model to be used.
19
+ * @param {Style} style - The style configuration for the polygon.
20
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the features. Default is GeoJson.
21
+ */
9
22
  constructor(model: PolygonModel, style: Style, format?: FeatureOutputFormat);
10
- get id(): string;
11
23
  }
@@ -4,7 +4,6 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  export declare class PlaceLayerFeaturesCommand extends PostboyGenericMessage {
5
5
  layer: string;
6
6
  features: Feature<Geometry>[];
7
- static readonly ID: string;
7
+ static readonly ID = "5f27a2cd-8d8a-4929-b703-8aee6dcdc21c";
8
8
  constructor(layer: string, features: Feature<Geometry>[]);
9
- get id(): string;
10
9
  }
@@ -1,8 +1,20 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  import { MapControl } from '../../models/map-control';
3
+ /**
4
+ * Represents a command to remove a map control from the map.
5
+ *
6
+ * The command is identified by a unique static ID, and it requires a MapControl item
7
+ * to specify the control to be removed.
8
+ *
9
+ * @extends PostboyGenericMessage
10
+ */
3
11
  export declare class RemoveControlCommand extends PostboyGenericMessage {
4
12
  item: MapControl;
5
- static readonly ID: string;
13
+ static readonly ID = "73bcb4f5-ce7d-4c71-b70d-e772100136a1";
14
+ /**
15
+ * Constructs an instance of the class.
16
+ *
17
+ * @param {MapControl} item - The map control instance to be removed.
18
+ */
6
19
  constructor(item: MapControl);
7
- get id(): string;
8
20
  }
@@ -2,7 +2,6 @@ import BaseLayer from 'ol/layer/Base';
2
2
  import { PostboyGenericMessage } from '@artstesh/postboy';
3
3
  export declare class RemoveLayerCommand extends PostboyGenericMessage {
4
4
  layer: BaseLayer;
5
- static readonly ID: string;
5
+ static readonly ID = "1b60599c-599a-4fdb-bad2-23b12e435e1a";
6
6
  constructor(layer: BaseLayer);
7
- get id(): string;
8
7
  }
@@ -3,7 +3,6 @@ import { XYZ } from 'ol/source';
3
3
  import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  export declare class RemoveTileCommand extends PostboyGenericMessage {
5
5
  layer: TileLayer<XYZ>;
6
- static readonly ID: string;
6
+ static readonly ID = "dab0f861-bb25-46da-9388-717bfaae798f";
7
7
  constructor(layer: TileLayer<XYZ>);
8
- get id(): string;
9
8
  }
@@ -6,7 +6,7 @@ export declare class SetMapCenterCommand extends PostboyGenericMessage {
6
6
  lat: number;
7
7
  lng: number;
8
8
  zoom?: number | undefined;
9
- static readonly ID: string;
9
+ static readonly ID = "d4e3cf4f-0be7-4c1a-8355-8607d02c3dea";
10
10
  /**
11
11
  *
12
12
  * @param lat - the desired latitude
@@ -14,5 +14,4 @@ export declare class SetMapCenterCommand extends PostboyGenericMessage {
14
14
  * @param zoom - the desired zoom; doesn't change zoom if undefined
15
15
  */
16
16
  constructor(lat: number, lng: number, zoom?: number | undefined);
17
- get id(): string;
18
17
  }
@@ -1,11 +1,20 @@
1
1
  import { PostboyCallbackMessage } from '@artstesh/postboy';
2
2
  import { DrawingType, FeatureOutputFormat } from '../../models';
3
3
  import Style from 'ol/style/Style';
4
+ /**
5
+ * Represents a command to start a drawing operation.
6
+ */
4
7
  export declare class StartDrawingCommand extends PostboyCallbackMessage<string | null> {
5
8
  type: DrawingType;
6
9
  style: Style;
7
10
  format: FeatureOutputFormat;
8
- static readonly ID: string;
11
+ static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
12
+ /**
13
+ * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
14
+ *
15
+ * @param {DrawingType} type - The type of the drawing to be created.
16
+ * @param {Style} style - The style defining visual appearance of the drawing.
17
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
18
+ */
9
19
  constructor(type: DrawingType, style: Style, format?: FeatureOutputFormat);
10
- get id(): string;
11
20
  }
@@ -1,6 +1,4 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  export declare class DrawingFinishedEvent extends PostboyGenericMessage {
3
- static readonly ID: string;
4
- constructor();
5
- get id(): string;
3
+ static readonly ID = "9094e160-8df7-4868-883a-3436724106dd";
6
4
  }
@@ -2,6 +2,12 @@ import { Feature } from 'ol';
2
2
  import { Geometry } from 'ol/geom';
3
3
  import { IIdentified } from '../../models/i-identified';
4
4
  import { PostboyGenericMessage } from '@artstesh/postboy';
5
+ /**
6
+ * Represents an event triggered by a click on a map, containing information about the
7
+ * click's location, relevant entities, and features present at the clicked position.
8
+ *
9
+ * @extends {PostboyGenericMessage}
10
+ */
5
11
  export declare class MapClickEvent extends PostboyGenericMessage {
6
12
  coordinates: number[];
7
13
  entities: {
@@ -10,11 +16,17 @@ export declare class MapClickEvent extends PostboyGenericMessage {
10
16
  features: {
11
17
  [layer: string]: Feature<Geometry>[];
12
18
  };
13
- static readonly ID: string;
19
+ static readonly ID = "ee31a86c-e838-4531-8399-983753a354df";
20
+ /**
21
+ * Creates an instance of this class with the provided coordinates, entities, and features.
22
+ *
23
+ * @param {number[]} coordinates - An array representing the coordinates.
24
+ * @param {{ [layer: string]: IIdentified[] }} entities - A mapping of layer names to arrays of IIdentified entities.
25
+ * @param {{ [layer: string]: Feature<Geometry>[] }} features - A mapping of layer names to arrays of features with geometry.
26
+ */
14
27
  constructor(coordinates: number[], entities: {
15
28
  [layer: string]: IIdentified[];
16
29
  }, features: {
17
30
  [layer: string]: Feature<Geometry>[];
18
31
  });
19
- get id(): string;
20
32
  }
@@ -1,8 +1,13 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  import { MapPosition } from '../../models';
3
+ /**
4
+ * Represents an event that is triggered when the movement of a map ends.
5
+ * This class is used to capture the final position of a map after a movement operation.
6
+ *
7
+ * @property {MapPosition | null} position - The final position of the map after movement ends. Can be null.
8
+ */
3
9
  export declare class MapMoveEndEvent extends PostboyGenericMessage {
4
10
  position: MapPosition | null;
5
- static readonly ID: string;
11
+ static readonly ID = "d210ec7e-032f-4ce8-8a39-7b816519eaae";
6
12
  constructor(position: MapPosition | null);
7
- get id(): string;
8
13
  }
@@ -1,8 +1,15 @@
1
1
  import Map from 'ol/Map';
2
2
  import { PostboyGenericMessage } from '@artstesh/postboy';
3
+ /**
4
+ * Represents an event triggered when a map rendering process is completed.
5
+ */
3
6
  export declare class MapRenderedEvent extends PostboyGenericMessage {
4
7
  map: Map;
5
- static readonly ID: string;
8
+ static readonly ID = "4515dde8-1519-4e3f-a0e3-10d3c52deabe";
9
+ /**
10
+ * Constructor for creating an instance of the class.
11
+ *
12
+ * @param {Map} map - The map instance to be used by the class.
13
+ */
6
14
  constructor(map: Map);
7
- get id(): string;
8
15
  }
@@ -2,9 +2,15 @@ import { PostboyExecutor } from '@artstesh/postboy';
2
2
  import { Feature } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
4
  import { PolygonModel } from '../../models';
5
+ /**
6
+ * An executor responsible for calculating the area of a given polygon.
7
+ *
8
+ * Use this class to manage and execute area-calculation logic for a polygon.
9
+ *
10
+ * @return {number} - the spherical area (in square meters)
11
+ */
5
12
  export declare class CalculateAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
6
13
  polygon: PolygonModel;
7
- static readonly ID: string;
14
+ static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
8
15
  constructor(polygon: PolygonModel);
9
- get id(): string;
10
16
  }
@@ -1,10 +1,17 @@
1
1
  import { PostboyExecutor } from '@artstesh/postboy';
2
2
  import { Feature } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
+ /**
5
+ * A class that extends the PostboyExecutor to filter geographical features within a specified area.
6
+ * This class is designed to process a list of input features and determine which of them are located inside the provided area geometry.
7
+ *
8
+ * Parameters:
9
+ * - `area`: A Geometry object defining the area to filter geographical features.
10
+ * - `features`: An array of geographical features, represented as `Feature<Geometry>` objects, to be filtered by their presence within the specified area.
11
+ */
4
12
  export declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
5
13
  area: Geometry;
6
14
  features: Feature<Geometry>[];
7
- static readonly ID: string;
15
+ static readonly ID = "4d26e1e3-e60f-4e49-804b-5b3eadc2adce";
8
16
  constructor(area: Geometry, features: Feature<Geometry>[]);
9
- get id(): string;
10
17
  }
@@ -2,13 +2,23 @@ import { PostboyExecutor } from '@artstesh/postboy';
2
2
  import { Feature } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
4
  /**
5
- * The FilterFeaturesInPointExecutor class is responsible for filtering features within a given point.
5
+ * A class responsible for executing filtering of geographical features
6
+ * based on a specific geographical point (latitude and longitude).
7
+ *
8
+ * @template Feature - A geographical feature that is processed by the executor.
9
+ * @template Geometry - The type of geometry associated with the feature.
6
10
  */
7
11
  export declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Feature<Geometry>[]> {
8
12
  lat: number;
9
13
  lng: number;
10
14
  features: Feature<Geometry>[];
11
- static readonly ID = "5b859282-5d5a-47ca-a6ad-863a66c8b82b";
12
- get id(): string;
15
+ static readonly ID = "dcbb156d-def3-45b4-91af-84d1483d8941";
16
+ /**
17
+ * Constructs a new instance with the specified latitude, longitude, and features.
18
+ *
19
+ * @param {number} lat - The latitude coordinate.
20
+ * @param {number} lng - The longitude coordinate.
21
+ * @param {Feature<Geometry>[]} features - The array of features associated with the location.
22
+ */
13
23
  constructor(lat: number, lng: number, features: Feature<Geometry>[]);
14
24
  }
@@ -8,7 +8,6 @@ export declare class GenerateDrawExecutor extends PostboyExecutor<Draw> {
8
8
  layer: Layer<VectorSource<any>>;
9
9
  style: Style;
10
10
  type: DrawingType;
11
- static readonly ID: string;
11
+ static readonly ID = "5d5f0737-ff70-461e-9a2e-bf6166c914cb";
12
12
  constructor(layer: Layer<VectorSource<any>>, style: Style, type: DrawingType);
13
- get id(): string;
14
13
  }
@@ -3,7 +3,6 @@ import { Draw } from 'ol/interaction';
3
3
  import { ZoomControlSettings } from '../../map-plate/controls/map-control-zoom/zoom-control.settings';
4
4
  export declare class GenerateZoomControlExecutor extends PostboyExecutor<Draw> {
5
5
  settings: ZoomControlSettings;
6
- static readonly ID: string;
6
+ static readonly ID = "c59f4fc3-ccf6-4cb3-a38b-3a8c249114a2";
7
7
  constructor(settings: ZoomControlSettings);
8
- get id(): string;
9
8
  }
@@ -7,6 +7,5 @@ import { MapPosition } from '../../models';
7
7
  */
8
8
  export declare class GetMapPositionExecutor extends PostboyExecutor<MapPosition | null> {
9
9
  static readonly ID = "52c95689-d09b-4082-ba58-9183ea96a213";
10
- get id(): string;
11
10
  constructor();
12
11
  }
@@ -1,19 +1,19 @@
1
- export * from './events/map-rendered.event';
2
- export * from './events/map-click.event';
3
- export * from './events/map-move-end.event';
1
+ export * from './commands/add-control.command';
4
2
  export * from './commands/close-tooltip.command';
5
3
  export * from './commands/start-drawing.command';
6
4
  export * from './commands/cancel-drawing.command';
7
5
  export * from './commands/draw-selection-area.command';
8
6
  export * from './commands/modify-feature.command';
9
7
  export * from './commands/cancel-feature-modification.command';
10
- export * from './commands/add-control.command';
11
8
  export * from './commands/remove-control.command';
12
9
  export * from './commands/set-map-center.command';
13
- export * from './executors/calculate-area.executor';
14
10
  export * from './commands/fit-to-polygons.command';
11
+ export * from './events/map-rendered.event';
12
+ export * from './events/map-click.event';
13
+ export * from './events/map-move-end.event';
14
+ export * from './executors/filter-features-in-point.executor';
15
+ export * from './executors/filter-features-in-area.executor';
16
+ export * from './executors/calculate-area.executor';
15
17
  export * from './executors/get-map-position.executor';
16
18
  export * from './queries/get-features-in-area.query';
17
- export * from './executors/filter-features-in-area.executor';
18
19
  export * from './queries/get-features-in-point.query';
19
- export * from './executors/filter-features-in-point.executor';
@@ -2,10 +2,19 @@ import { PostboyCallbackMessage } from '@artstesh/postboy';
2
2
  import { Geometry } from 'ol/geom';
3
3
  import { IIdentified } from '../../models/i-identified';
4
4
  import { Dictionary } from '@artstesh/collections';
5
+ /**
6
+ * Class representing a query to get features within a specified geographical area.
7
+ * The query optionally takes a set of layer names to ignore during the operation.
8
+ */
5
9
  export declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
6
10
  area: Geometry;
7
11
  ignore: Set<string>;
8
- static readonly ID: string;
12
+ static readonly ID = "317cf427-a029-4a43-97c4-cb6b8148ff65";
13
+ /**
14
+ * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
15
+ *
16
+ * @param {Geometry} area - The Geometry object used to define the area.
17
+ * @param {Set<string>} [ignore] - An optional set of layer names that will be ignored. Defaults to an empty set.
18
+ */
9
19
  constructor(area: Geometry, ignore?: Set<string>);
10
- get id(): string;
11
20
  }
@@ -9,7 +9,13 @@ export declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dict
9
9
  lat: number;
10
10
  lng: number;
11
11
  ignore: Set<string>;
12
- static readonly ID: string;
12
+ static readonly ID = "99bbc56f-34a2-4064-8300-13bb3d0662c1";
13
+ /**
14
+ * Constructor for initializing a geographic coordinate object.
15
+ *
16
+ * @param {number} lat - The latitude of the location.
17
+ * @param {number} lng - The longitude of the location.
18
+ * @param {Set<string>} [ignore=new Set<string>()] - An optional set of strings to ignore during processing.
19
+ */
13
20
  constructor(lat: number, lng: number, ignore?: Set<string>);
14
- get id(): string;
15
21
  }
@@ -4,7 +4,6 @@ import VectorSource from 'ol/source/Vector';
4
4
  import Cluster from 'ol/source/Cluster';
5
5
  export declare class GetLayerQuery extends PostboyCallbackMessage<Layer<VectorSource<any> | Cluster> | null> {
6
6
  name: string;
7
- static readonly ID: string;
7
+ static readonly ID = "d2683490-2aa2-4dee-855d-f752ce4d3be5";
8
8
  constructor(name: string);
9
- get id(): string;
10
9
  }
@@ -1,3 +1,16 @@
1
+ /**
2
+ * Enum representing various drawing types.
3
+ *
4
+ * This enumeration is used to define the types of drawable shapes
5
+ * within a specific drawing context. Each member corresponds to
6
+ * a specific type of drawing.
7
+ *
8
+ * Members:
9
+ * - `Polygon`: Represents a polygonal shape (e.g., triangle, pentagon, etc.).
10
+ * - `Circle`: Represents a circular shape.
11
+ * - `Square`: Represents a square shape.
12
+ * - `Box`: Represents a rectangular box shape.
13
+ */
1
14
  export declare enum DrawingType {
2
15
  Polygon = 1,
3
16
  Circle = 2,
@@ -1,3 +1,11 @@
1
+ /**
2
+ * An enumeration representing different formats for feature outputs.
3
+ * This can be used to specify the desired output format when dealing with geospatial data.
4
+ *
5
+ * Enumerators:
6
+ * - GeoJson: Represents the GeoJSON format for geospatial data.
7
+ * - WKT: Represents the Well-Known Text (WKT) format for geospatial data.
8
+ */
1
9
  export declare enum FeatureOutputFormat {
2
10
  GeoJson = 1,
3
11
  WKT = 2
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Represents a position and view configuration on a map.
3
+ *
4
+ * This interface is utilized to store and retrieve geographic and viewport details,
5
+ * including location coordinates, zoom level, and map extent.
6
+ *
7
+ * Properties:
8
+ * - `latitude`: The latitude coordinate of the map's center point.
9
+ * - `longitude`: The longitude coordinate of the map's center point.
10
+ * - `zoom`: The zoom level of the map's view.
11
+ * - `extent`: The geographical rectangular bounds defining the visible area of the map, represented as an array of coordinates [minX, minY, maxX, maxY].
12
+ */
1
13
  export interface MapPosition {
2
14
  latitude: number;
3
15
  longitude: number;
@@ -1,4 +1,8 @@
1
1
  import { MapLyrs } from './map-lyrs.enum';
2
+ /**
3
+ * Represents the configurable settings for a map instance, providing
4
+ * options for center coordinates, zoom levels, map layers, and language.
5
+ */
2
6
  export declare class MapSettings {
3
7
  center: number[];
4
8
  maxZoom: number;
@@ -7,11 +11,53 @@ export declare class MapSettings {
7
11
  lyrs: MapLyrs;
8
12
  language: string;
9
13
  static copy(model: MapSettings): MapSettings;
14
+ /**
15
+ * Sets the center for the map settings.
16
+ *
17
+ * @param {number[]} center - A two-element array representing the latitude and longitude of the map's center.
18
+ * @return {MapSettings} A new MapSettings object with the updated center.
19
+ */
10
20
  setCenter(center: number[]): MapSettings;
21
+ /**
22
+ * Sets the maximum zoom level for the map.
23
+ *
24
+ * @param {number} maxZoom - The maximum zoom level to be set.
25
+ * @return {MapSettings} A new instance of MapSettings with the updated maximum zoom level.
26
+ */
11
27
  setMaxZoom(maxZoom: number): MapSettings;
28
+ /**
29
+ * Sets the minimum zoom level for the map settings.
30
+ *
31
+ * @param {number} minZoom The minimum zoom level to be set. Must be a valid numeric value.
32
+ * @return {MapSettings} A new MapSettings object with the updated minimum zoom level.
33
+ */
12
34
  setMinZoom(minZoom: number): MapSettings;
35
+ /**
36
+ * Adjusts the zoom level of the map by setting the specified value.
37
+ *
38
+ * @param {number} zoom - The desired zoom level to be set.
39
+ * @return {MapSettings} A new MapSettings instance with the updated zoom level.
40
+ */
13
41
  setZoom(zoom: number): MapSettings;
42
+ /**
43
+ * Sets the layers in the map settings with the provided layers.
44
+ *
45
+ * @param {MapLyrs} lyrs - The layers to be set in the map settings.
46
+ * @return {MapSettings} A new instance of MapSettings with the updated layers.
47
+ */
14
48
  setLyrs(lyrs: MapLyrs): MapSettings;
49
+ /**
50
+ * Updates the language setting for the map configuration and returns a new instance with the updated language.
51
+ *
52
+ * @param {string} language - The language to be set for the map configuration.
53
+ * @return {MapSettings} A new instance of MapSettings with the updated language.
54
+ */
15
55
  setLanguage(language: string): MapSettings;
56
+ /**
57
+ * Compares the current MapSettings instance with another to determine if they are identical.
58
+ *
59
+ * @param {MapSettings} model - The MapSettings instance to compare with the current instance.
60
+ * @return {boolean} Returns true if both MapSettings instances have the same properties and values; otherwise, false.
61
+ */
16
62
  isSame(model: MapSettings): boolean;
17
63
  }