@artstesh/maps 6.0.8 → 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 (117) hide show
  1. package/dist/esm2022/map/messages/commands/add-control.command.mjs +2 -1
  2. package/dist/esm2022/map/messages/commands/add-layer.command.mjs +2 -1
  3. package/dist/esm2022/map/messages/commands/add-tile.command.mjs +2 -1
  4. package/dist/esm2022/map/messages/commands/cancel-drawing.command.mjs +2 -1
  5. package/dist/esm2022/map/messages/commands/cancel-feature-modification.command.mjs +2 -1
  6. package/dist/esm2022/map/messages/commands/close-tooltip.command.mjs +2 -1
  7. package/dist/esm2022/map/messages/commands/draw-selection-area.command.mjs +2 -1
  8. package/dist/esm2022/map/messages/commands/fit-to-features.command.mjs +2 -1
  9. package/dist/esm2022/map/messages/commands/fit-to-polygons.command.mjs +2 -1
  10. package/dist/esm2022/map/messages/commands/modify-feature.command.mjs +2 -1
  11. package/dist/esm2022/map/messages/commands/place-layer-features.command.mjs +2 -1
  12. package/dist/esm2022/map/messages/commands/remove-control.command.mjs +2 -1
  13. package/dist/esm2022/map/messages/commands/remove-layer.command.mjs +2 -1
  14. package/dist/esm2022/map/messages/commands/remove-tile.command.mjs +2 -1
  15. package/dist/esm2022/map/messages/commands/set-map-center.command.mjs +2 -1
  16. package/dist/esm2022/map/messages/commands/start-drawing.command.mjs +2 -1
  17. package/dist/esm2022/map/messages/events/drawing-finished.event.mjs +2 -1
  18. package/dist/esm2022/map/messages/events/map-click.event.mjs +2 -1
  19. package/dist/esm2022/map/messages/events/map-move-end.event.mjs +2 -1
  20. package/dist/esm2022/map/messages/events/map-rendered.event.mjs +2 -1
  21. package/dist/esm2022/map/messages/executors/calculate-area.executor.mjs +2 -1
  22. package/dist/esm2022/map/messages/executors/filter-features-in-area.executor.mjs +2 -1
  23. package/dist/esm2022/map/messages/executors/filter-features-in-point.executor.mjs +2 -1
  24. package/dist/esm2022/map/messages/executors/generate-draw.executor.mjs +2 -1
  25. package/dist/esm2022/map/messages/executors/generate-zoom-control.executor.mjs +2 -1
  26. package/dist/esm2022/map/messages/queries/get-features-in-area.query.mjs +2 -1
  27. package/dist/esm2022/map/messages/queries/get-features-in-point.query.mjs +2 -1
  28. package/dist/esm2022/map/messages/queries/get-layer.query.mjs +2 -1
  29. package/dist/esm2022/src/map/messages/commands/add-control.command.mjs +2 -1
  30. package/dist/esm2022/src/map/messages/commands/add-layer.command.mjs +2 -1
  31. package/dist/esm2022/src/map/messages/commands/add-tile.command.mjs +2 -1
  32. package/dist/esm2022/src/map/messages/commands/cancel-drawing.command.mjs +2 -1
  33. package/dist/esm2022/src/map/messages/commands/cancel-feature-modification.command.mjs +2 -1
  34. package/dist/esm2022/src/map/messages/commands/close-tooltip.command.mjs +2 -1
  35. package/dist/esm2022/src/map/messages/commands/draw-selection-area.command.mjs +2 -1
  36. package/dist/esm2022/src/map/messages/commands/fit-to-features.command.mjs +2 -1
  37. package/dist/esm2022/src/map/messages/commands/fit-to-polygons.command.mjs +2 -1
  38. package/dist/esm2022/src/map/messages/commands/modify-feature.command.mjs +2 -1
  39. package/dist/esm2022/src/map/messages/commands/place-layer-features.command.mjs +2 -1
  40. package/dist/esm2022/src/map/messages/commands/remove-control.command.mjs +2 -1
  41. package/dist/esm2022/src/map/messages/commands/remove-layer.command.mjs +2 -1
  42. package/dist/esm2022/src/map/messages/commands/remove-tile.command.mjs +2 -1
  43. package/dist/esm2022/src/map/messages/commands/set-map-center.command.mjs +2 -1
  44. package/dist/esm2022/src/map/messages/commands/start-drawing.command.mjs +2 -1
  45. package/dist/esm2022/src/map/messages/events/drawing-finished.event.mjs +2 -1
  46. package/dist/esm2022/src/map/messages/events/map-click.event.mjs +2 -1
  47. package/dist/esm2022/src/map/messages/events/map-move-end.event.mjs +2 -1
  48. package/dist/esm2022/src/map/messages/events/map-rendered.event.mjs +2 -1
  49. package/dist/esm2022/src/map/messages/executors/calculate-area.executor.mjs +2 -1
  50. package/dist/esm2022/src/map/messages/executors/filter-features-in-area.executor.mjs +2 -1
  51. package/dist/esm2022/src/map/messages/executors/filter-features-in-point.executor.mjs +2 -1
  52. package/dist/esm2022/src/map/messages/executors/generate-draw.executor.mjs +2 -1
  53. package/dist/esm2022/src/map/messages/executors/generate-zoom-control.executor.mjs +2 -1
  54. package/dist/esm2022/src/map/messages/queries/get-features-in-area.query.mjs +2 -1
  55. package/dist/esm2022/src/map/messages/queries/get-features-in-point.query.mjs +2 -1
  56. package/dist/esm2022/src/map/messages/queries/get-layer.query.mjs +2 -1
  57. package/dist/fesm2022/maps-components-src-map.mjs +28 -0
  58. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  59. package/dist/fesm2022/maps-components.mjs +28 -0
  60. package/dist/fesm2022/maps-components.mjs.map +1 -1
  61. package/dist/map/messages/commands/add-control.command.d.ts +1 -0
  62. package/dist/map/messages/commands/add-layer.command.d.ts +1 -0
  63. package/dist/map/messages/commands/add-tile.command.d.ts +1 -0
  64. package/dist/map/messages/commands/cancel-drawing.command.d.ts +1 -0
  65. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +1 -0
  66. package/dist/map/messages/commands/close-tooltip.command.d.ts +1 -0
  67. package/dist/map/messages/commands/draw-selection-area.command.d.ts +1 -0
  68. package/dist/map/messages/commands/fit-to-features.command.d.ts +1 -0
  69. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +1 -0
  70. package/dist/map/messages/commands/modify-feature.command.d.ts +1 -0
  71. package/dist/map/messages/commands/place-layer-features.command.d.ts +1 -0
  72. package/dist/map/messages/commands/remove-control.command.d.ts +1 -0
  73. package/dist/map/messages/commands/remove-layer.command.d.ts +1 -0
  74. package/dist/map/messages/commands/remove-tile.command.d.ts +1 -0
  75. package/dist/map/messages/commands/set-map-center.command.d.ts +1 -0
  76. package/dist/map/messages/commands/start-drawing.command.d.ts +1 -0
  77. package/dist/map/messages/events/drawing-finished.event.d.ts +1 -0
  78. package/dist/map/messages/events/map-click.event.d.ts +1 -0
  79. package/dist/map/messages/events/map-move-end.event.d.ts +1 -0
  80. package/dist/map/messages/events/map-rendered.event.d.ts +1 -0
  81. package/dist/map/messages/executors/calculate-area.executor.d.ts +1 -0
  82. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +1 -0
  83. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +1 -0
  84. package/dist/map/messages/executors/generate-draw.executor.d.ts +1 -0
  85. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +1 -0
  86. package/dist/map/messages/queries/get-features-in-area.query.d.ts +1 -0
  87. package/dist/map/messages/queries/get-features-in-point.query.d.ts +1 -0
  88. package/dist/map/messages/queries/get-layer.query.d.ts +1 -0
  89. package/dist/src/map/messages/commands/add-control.command.d.ts +1 -0
  90. package/dist/src/map/messages/commands/add-layer.command.d.ts +1 -0
  91. package/dist/src/map/messages/commands/add-tile.command.d.ts +1 -0
  92. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +1 -0
  93. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +1 -0
  94. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +1 -0
  95. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +1 -0
  96. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +1 -0
  97. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +1 -0
  98. package/dist/src/map/messages/commands/modify-feature.command.d.ts +1 -0
  99. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +1 -0
  100. package/dist/src/map/messages/commands/remove-control.command.d.ts +1 -0
  101. package/dist/src/map/messages/commands/remove-layer.command.d.ts +1 -0
  102. package/dist/src/map/messages/commands/remove-tile.command.d.ts +1 -0
  103. package/dist/src/map/messages/commands/set-map-center.command.d.ts +1 -0
  104. package/dist/src/map/messages/commands/start-drawing.command.d.ts +1 -0
  105. package/dist/src/map/messages/events/drawing-finished.event.d.ts +1 -0
  106. package/dist/src/map/messages/events/map-click.event.d.ts +1 -0
  107. package/dist/src/map/messages/events/map-move-end.event.d.ts +1 -0
  108. package/dist/src/map/messages/events/map-rendered.event.d.ts +1 -0
  109. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +1 -0
  110. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +1 -0
  111. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +1 -0
  112. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +1 -0
  113. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +1 -0
  114. package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +1 -0
  115. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +1 -0
  116. package/dist/src/map/messages/queries/get-layer.query.d.ts +1 -0
  117. package/package.json +2 -2
@@ -5,6 +5,7 @@ import { MapControl } from '../../models/map-control';
5
5
  */
6
6
  export declare class AddControlCommand extends PostboyGenericMessage {
7
7
  item: MapControl;
8
+ static readonly ID = "2921fb19-f1c4-4bf4-97be-001f98241f3b";
8
9
  /**
9
10
  * Creates an instance of the class with the specified MapControl object.
10
11
  *
@@ -4,5 +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 = "7fe68d71-350f-47e2-b1ae-62cc333e1572";
7
8
  constructor(layer: Layer<VectorSource<any> | Cluster>);
8
9
  }
@@ -3,5 +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 = "ae29b7af-21aa-4b0a-8586-92c23779e6cb";
6
7
  constructor(layer: TileLayer<XYZ>);
7
8
  }
@@ -3,4 +3,5 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
3
3
  * Represents a command to cancel a drawing action.
4
4
  */
5
5
  export declare class CancelDrawingCommand extends PostboyGenericMessage {
6
+ static readonly ID = "192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de";
6
7
  }
@@ -3,4 +3,5 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
3
3
  * Represents a command to cancel a feature modification.
4
4
  */
5
5
  export declare class CancelFeatureModificationCommand extends PostboyGenericMessage {
6
+ static readonly ID = "e7886353-53b3-4bbe-93b5-6490e5f1305e";
6
7
  }
@@ -4,6 +4,7 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  */
5
5
  export declare class CloseTooltipCommand extends PostboyGenericMessage {
6
6
  tooltipId: string;
7
+ static readonly ID = "df687e26-7298-46d7-8911-d014801dafac";
7
8
  /**
8
9
  * Creates an instance of the class with the specified tooltip ID.
9
10
  *
@@ -12,6 +12,7 @@ export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dic
12
12
  type: DrawingType;
13
13
  style: Style;
14
14
  ignore: Set<string>;
15
+ static readonly ID = "06e43f59-c6ba-41bb-9c5b-f6534d914905";
15
16
  /**
16
17
  * Constructs a new instance with the specified type, style, and optional set of ignored items.
17
18
  *
@@ -4,5 +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 = "04d67609-0b4c-4f52-aa53-ad0a3db967dc";
7
8
  constructor(features: Feature<Geometry>[], zoomAfter?: number);
8
9
  }
@@ -7,6 +7,7 @@ import { PolygonModel } from '../../models';
7
7
  export declare class FitToPolygonsCommand extends PostboyGenericMessage {
8
8
  features: PolygonModel[];
9
9
  zoomAfter: number;
10
+ static readonly ID = "308394ce-48d3-45f5-8671-52207fba4be3";
10
11
  /**
11
12
  * Creates an instance of the class with specified polygon features and an optional zoom level.
12
13
  *
@@ -11,6 +11,7 @@ export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string
11
11
  model: PolygonModel;
12
12
  style: Style;
13
13
  format: FeatureOutputFormat;
14
+ static readonly ID = "8f76507e-f18d-4232-bab7-f3d4e3d707bb";
14
15
  /**
15
16
  * Constructs an instance of the class.
16
17
  *
@@ -4,5 +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 = "5f27a2cd-8d8a-4929-b703-8aee6dcdc21c";
7
8
  constructor(layer: string, features: Feature<Geometry>[]);
8
9
  }
@@ -10,6 +10,7 @@ import { MapControl } from '../../models/map-control';
10
10
  */
11
11
  export declare class RemoveControlCommand extends PostboyGenericMessage {
12
12
  item: MapControl;
13
+ static readonly ID = "73bcb4f5-ce7d-4c71-b70d-e772100136a1";
13
14
  /**
14
15
  * Constructs an instance of the class.
15
16
  *
@@ -2,5 +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 = "1b60599c-599a-4fdb-bad2-23b12e435e1a";
5
6
  constructor(layer: BaseLayer);
6
7
  }
@@ -3,5 +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 = "dab0f861-bb25-46da-9388-717bfaae798f";
6
7
  constructor(layer: TileLayer<XYZ>);
7
8
  }
@@ -6,6 +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 = "d4e3cf4f-0be7-4c1a-8355-8607d02c3dea";
9
10
  /**
10
11
  *
11
12
  * @param lat - the desired latitude
@@ -8,6 +8,7 @@ export declare class StartDrawingCommand extends PostboyCallbackMessage<string |
8
8
  type: DrawingType;
9
9
  style: Style;
10
10
  format: FeatureOutputFormat;
11
+ static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
11
12
  /**
12
13
  * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
13
14
  *
@@ -1,3 +1,4 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  export declare class DrawingFinishedEvent extends PostboyGenericMessage {
3
+ static readonly ID = "9094e160-8df7-4868-883a-3436724106dd";
3
4
  }
@@ -16,6 +16,7 @@ export declare class MapClickEvent extends PostboyGenericMessage {
16
16
  features: {
17
17
  [layer: string]: Feature<Geometry>[];
18
18
  };
19
+ static readonly ID = "ee31a86c-e838-4531-8399-983753a354df";
19
20
  /**
20
21
  * Creates an instance of this class with the provided coordinates, entities, and features.
21
22
  *
@@ -8,5 +8,6 @@ import { MapPosition } from '../../models';
8
8
  */
9
9
  export declare class MapMoveEndEvent extends PostboyGenericMessage {
10
10
  position: MapPosition | null;
11
+ static readonly ID = "d210ec7e-032f-4ce8-8a39-7b816519eaae";
11
12
  constructor(position: MapPosition | null);
12
13
  }
@@ -5,6 +5,7 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
5
5
  */
6
6
  export declare class MapRenderedEvent extends PostboyGenericMessage {
7
7
  map: Map;
8
+ static readonly ID = "4515dde8-1519-4e3f-a0e3-10d3c52deabe";
8
9
  /**
9
10
  * Constructor for creating an instance of the class.
10
11
  *
@@ -11,5 +11,6 @@ import { PolygonModel } from '../../models';
11
11
  */
12
12
  export declare class CalculateAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
13
13
  polygon: PolygonModel;
14
+ static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
14
15
  constructor(polygon: PolygonModel);
15
16
  }
@@ -12,5 +12,6 @@ import { Geometry } from 'ol/geom';
12
12
  export declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
13
13
  area: Geometry;
14
14
  features: Feature<Geometry>[];
15
+ static readonly ID = "4d26e1e3-e60f-4e49-804b-5b3eadc2adce";
15
16
  constructor(area: Geometry, features: Feature<Geometry>[]);
16
17
  }
@@ -12,6 +12,7 @@ export declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Featu
12
12
  lat: number;
13
13
  lng: number;
14
14
  features: Feature<Geometry>[];
15
+ static readonly ID = "dcbb156d-def3-45b4-91af-84d1483d8941";
15
16
  /**
16
17
  * Constructs a new instance with the specified latitude, longitude, and features.
17
18
  *
@@ -8,5 +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 = "5d5f0737-ff70-461e-9a2e-bf6166c914cb";
11
12
  constructor(layer: Layer<VectorSource<any>>, style: Style, type: DrawingType);
12
13
  }
@@ -3,5 +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 = "c59f4fc3-ccf6-4cb3-a38b-3a8c249114a2";
6
7
  constructor(settings: ZoomControlSettings);
7
8
  }
@@ -9,6 +9,7 @@ import { Dictionary } from '@artstesh/collections';
9
9
  export declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
10
10
  area: Geometry;
11
11
  ignore: Set<string>;
12
+ static readonly ID = "317cf427-a029-4a43-97c4-cb6b8148ff65";
12
13
  /**
13
14
  * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
14
15
  *
@@ -9,6 +9,7 @@ export declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dict
9
9
  lat: number;
10
10
  lng: number;
11
11
  ignore: Set<string>;
12
+ static readonly ID = "99bbc56f-34a2-4064-8300-13bb3d0662c1";
12
13
  /**
13
14
  * Constructor for initializing a geographic coordinate object.
14
15
  *
@@ -4,5 +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 = "d2683490-2aa2-4dee-855d-f752ce4d3be5";
7
8
  constructor(name: string);
8
9
  }
@@ -5,6 +5,7 @@ import { MapControl } from '../../models/map-control';
5
5
  */
6
6
  export declare class AddControlCommand extends PostboyGenericMessage {
7
7
  item: MapControl;
8
+ static readonly ID = "2921fb19-f1c4-4bf4-97be-001f98241f3b";
8
9
  /**
9
10
  * Creates an instance of the class with the specified MapControl object.
10
11
  *
@@ -4,5 +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 = "7fe68d71-350f-47e2-b1ae-62cc333e1572";
7
8
  constructor(layer: Layer<VectorSource<any> | Cluster>);
8
9
  }
@@ -3,5 +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 = "ae29b7af-21aa-4b0a-8586-92c23779e6cb";
6
7
  constructor(layer: TileLayer<XYZ>);
7
8
  }
@@ -3,4 +3,5 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
3
3
  * Represents a command to cancel a drawing action.
4
4
  */
5
5
  export declare class CancelDrawingCommand extends PostboyGenericMessage {
6
+ static readonly ID = "192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de";
6
7
  }
@@ -3,4 +3,5 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
3
3
  * Represents a command to cancel a feature modification.
4
4
  */
5
5
  export declare class CancelFeatureModificationCommand extends PostboyGenericMessage {
6
+ static readonly ID = "e7886353-53b3-4bbe-93b5-6490e5f1305e";
6
7
  }
@@ -4,6 +4,7 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
4
4
  */
5
5
  export declare class CloseTooltipCommand extends PostboyGenericMessage {
6
6
  tooltipId: string;
7
+ static readonly ID = "df687e26-7298-46d7-8911-d014801dafac";
7
8
  /**
8
9
  * Creates an instance of the class with the specified tooltip ID.
9
10
  *
@@ -12,6 +12,7 @@ export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dic
12
12
  type: DrawingType;
13
13
  style: Style;
14
14
  ignore: Set<string>;
15
+ static readonly ID = "06e43f59-c6ba-41bb-9c5b-f6534d914905";
15
16
  /**
16
17
  * Constructs a new instance with the specified type, style, and optional set of ignored items.
17
18
  *
@@ -4,5 +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 = "04d67609-0b4c-4f52-aa53-ad0a3db967dc";
7
8
  constructor(features: Feature<Geometry>[], zoomAfter?: number);
8
9
  }
@@ -7,6 +7,7 @@ import { PolygonModel } from '../../models';
7
7
  export declare class FitToPolygonsCommand extends PostboyGenericMessage {
8
8
  features: PolygonModel[];
9
9
  zoomAfter: number;
10
+ static readonly ID = "308394ce-48d3-45f5-8671-52207fba4be3";
10
11
  /**
11
12
  * Creates an instance of the class with specified polygon features and an optional zoom level.
12
13
  *
@@ -11,6 +11,7 @@ export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string
11
11
  model: PolygonModel;
12
12
  style: Style;
13
13
  format: FeatureOutputFormat;
14
+ static readonly ID = "8f76507e-f18d-4232-bab7-f3d4e3d707bb";
14
15
  /**
15
16
  * Constructs an instance of the class.
16
17
  *
@@ -4,5 +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 = "5f27a2cd-8d8a-4929-b703-8aee6dcdc21c";
7
8
  constructor(layer: string, features: Feature<Geometry>[]);
8
9
  }
@@ -10,6 +10,7 @@ import { MapControl } from '../../models/map-control';
10
10
  */
11
11
  export declare class RemoveControlCommand extends PostboyGenericMessage {
12
12
  item: MapControl;
13
+ static readonly ID = "73bcb4f5-ce7d-4c71-b70d-e772100136a1";
13
14
  /**
14
15
  * Constructs an instance of the class.
15
16
  *
@@ -2,5 +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 = "1b60599c-599a-4fdb-bad2-23b12e435e1a";
5
6
  constructor(layer: BaseLayer);
6
7
  }
@@ -3,5 +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 = "dab0f861-bb25-46da-9388-717bfaae798f";
6
7
  constructor(layer: TileLayer<XYZ>);
7
8
  }
@@ -6,6 +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 = "d4e3cf4f-0be7-4c1a-8355-8607d02c3dea";
9
10
  /**
10
11
  *
11
12
  * @param lat - the desired latitude
@@ -8,6 +8,7 @@ export declare class StartDrawingCommand extends PostboyCallbackMessage<string |
8
8
  type: DrawingType;
9
9
  style: Style;
10
10
  format: FeatureOutputFormat;
11
+ static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
11
12
  /**
12
13
  * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
13
14
  *
@@ -1,3 +1,4 @@
1
1
  import { PostboyGenericMessage } from '@artstesh/postboy';
2
2
  export declare class DrawingFinishedEvent extends PostboyGenericMessage {
3
+ static readonly ID = "9094e160-8df7-4868-883a-3436724106dd";
3
4
  }
@@ -16,6 +16,7 @@ export declare class MapClickEvent extends PostboyGenericMessage {
16
16
  features: {
17
17
  [layer: string]: Feature<Geometry>[];
18
18
  };
19
+ static readonly ID = "ee31a86c-e838-4531-8399-983753a354df";
19
20
  /**
20
21
  * Creates an instance of this class with the provided coordinates, entities, and features.
21
22
  *
@@ -8,5 +8,6 @@ import { MapPosition } from '../../models';
8
8
  */
9
9
  export declare class MapMoveEndEvent extends PostboyGenericMessage {
10
10
  position: MapPosition | null;
11
+ static readonly ID = "d210ec7e-032f-4ce8-8a39-7b816519eaae";
11
12
  constructor(position: MapPosition | null);
12
13
  }
@@ -5,6 +5,7 @@ import { PostboyGenericMessage } from '@artstesh/postboy';
5
5
  */
6
6
  export declare class MapRenderedEvent extends PostboyGenericMessage {
7
7
  map: Map;
8
+ static readonly ID = "4515dde8-1519-4e3f-a0e3-10d3c52deabe";
8
9
  /**
9
10
  * Constructor for creating an instance of the class.
10
11
  *
@@ -11,5 +11,6 @@ import { PolygonModel } from '../../models';
11
11
  */
12
12
  export declare class CalculateAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
13
13
  polygon: PolygonModel;
14
+ static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
14
15
  constructor(polygon: PolygonModel);
15
16
  }
@@ -12,5 +12,6 @@ import { Geometry } from 'ol/geom';
12
12
  export declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
13
13
  area: Geometry;
14
14
  features: Feature<Geometry>[];
15
+ static readonly ID = "4d26e1e3-e60f-4e49-804b-5b3eadc2adce";
15
16
  constructor(area: Geometry, features: Feature<Geometry>[]);
16
17
  }
@@ -12,6 +12,7 @@ export declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Featu
12
12
  lat: number;
13
13
  lng: number;
14
14
  features: Feature<Geometry>[];
15
+ static readonly ID = "dcbb156d-def3-45b4-91af-84d1483d8941";
15
16
  /**
16
17
  * Constructs a new instance with the specified latitude, longitude, and features.
17
18
  *
@@ -8,5 +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 = "5d5f0737-ff70-461e-9a2e-bf6166c914cb";
11
12
  constructor(layer: Layer<VectorSource<any>>, style: Style, type: DrawingType);
12
13
  }
@@ -3,5 +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 = "c59f4fc3-ccf6-4cb3-a38b-3a8c249114a2";
6
7
  constructor(settings: ZoomControlSettings);
7
8
  }
@@ -9,6 +9,7 @@ import { Dictionary } from '@artstesh/collections';
9
9
  export declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
10
10
  area: Geometry;
11
11
  ignore: Set<string>;
12
+ static readonly ID = "317cf427-a029-4a43-97c4-cb6b8148ff65";
12
13
  /**
13
14
  * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
14
15
  *
@@ -9,6 +9,7 @@ export declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dict
9
9
  lat: number;
10
10
  lng: number;
11
11
  ignore: Set<string>;
12
+ static readonly ID = "99bbc56f-34a2-4064-8300-13bb3d0662c1";
12
13
  /**
13
14
  * Constructor for initializing a geographic coordinate object.
14
15
  *
@@ -4,5 +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 = "d2683490-2aa2-4dee-855d-f752ce4d3be5";
7
8
  constructor(name: string);
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",
@@ -40,7 +40,7 @@
40
40
  "@angular/compiler": "^17.1.0",
41
41
  "@angular/core": "^17.1.0",
42
42
  "@artstesh/collections": "^1.0.0",
43
- "@artstesh/postboy": "^2.0.8",
43
+ "@artstesh/postboy": "^2.1.0",
44
44
  "ol": "^6.9.0",
45
45
  "ol-geocoder": "^4.0.0",
46
46
  "rxjs": "^7.0.0",