@artstesh/maps 8.0.0 → 9.0.2

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 (206) hide show
  1. package/dist/fesm2022/maps-components-src-map.mjs +87 -94
  2. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  3. package/dist/fesm2022/maps-components.mjs +87 -94
  4. package/dist/fesm2022/maps-components.mjs.map +1 -1
  5. package/dist/index.d.ts +1720 -3
  6. package/dist/src/map/index.d.ts +1720 -3
  7. package/package.json +19 -19
  8. package/dist/map/common/destructible.component.d.ts +0 -10
  9. package/dist/map/common/id.generator.d.ts +0 -4
  10. package/dist/map/helpers/index.d.ts +0 -4
  11. package/dist/map/helpers/marker-style.helper.d.ts +0 -33
  12. package/dist/map/helpers/polygon-style.helper.d.ts +0 -26
  13. package/dist/map/helpers/stringify-feature.helper.d.ts +0 -26
  14. package/dist/map/helpers/text-style.helper.d.ts +0 -19
  15. package/dist/map/map-plate/controls/index.d.ts +0 -2
  16. package/dist/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +0 -36
  17. package/dist/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +0 -5
  18. package/dist/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +0 -85
  19. package/dist/map/map-plate/features/index.d.ts +0 -2
  20. package/dist/map/map-plate/features/markers/markers.component.d.ts +0 -26
  21. package/dist/map/map-plate/features/polygons/polygons.component.d.ts +0 -26
  22. package/dist/map/map-plate/layers/cluster-layer/cluster-layer-factory.service.d.ts +0 -11
  23. package/dist/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +0 -29
  24. package/dist/map/map-plate/layers/cluster-layer/cluster-layer.manager.d.ts +0 -13
  25. package/dist/map/map-plate/layers/cluster-layer/cluster-layer.settings.d.ts +0 -100
  26. package/dist/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +0 -22
  27. package/dist/map/map-plate/layers/feature-layer/feature-layer.factory.d.ts +0 -9
  28. package/dist/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +0 -103
  29. package/dist/map/map-plate/layers/image-layer/image-layer-factory.d.ts +0 -9
  30. package/dist/map/map-plate/layers/image-layer/image-layer.component.d.ts +0 -22
  31. package/dist/map/map-plate/layers/image-layer/image-layer.settings.d.ts +0 -97
  32. package/dist/map/map-plate/layers/index.d.ts +0 -11
  33. package/dist/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +0 -21
  34. package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +0 -21
  35. package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +0 -12
  36. package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +0 -119
  37. package/dist/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +0 -21
  38. package/dist/map/map-plate/layers/tile-layer/tile-layer.factory.d.ts +0 -12
  39. package/dist/map/map-plate/layers/tile-layer/tile-layer.settings.d.ts +0 -103
  40. package/dist/map/map-plate/map-plate.component.d.ts +0 -30
  41. package/dist/map/map-plate/map-plate.factory.service.d.ts +0 -8
  42. package/dist/map/map-plate/tooltips/index.d.ts +0 -2
  43. package/dist/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +0 -27
  44. package/dist/map/map-plate/tooltips/tooltip/tooltip.settings.d.ts +0 -11
  45. package/dist/map/messages/commands/add-control.command.d.ts +0 -15
  46. package/dist/map/messages/commands/add-image-layer.command.d.ts +0 -8
  47. package/dist/map/messages/commands/add-layer.command.d.ts +0 -9
  48. package/dist/map/messages/commands/add-raster-tile-command.d.ts +0 -8
  49. package/dist/map/messages/commands/add-tile.command.d.ts +0 -8
  50. package/dist/map/messages/commands/cancel-drawing.command.d.ts +0 -7
  51. package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +0 -7
  52. package/dist/map/messages/commands/close-tooltip.command.d.ts +0 -14
  53. package/dist/map/messages/commands/draw-selection-area.command.d.ts +0 -24
  54. package/dist/map/messages/commands/fit-to-features.command.d.ts +0 -9
  55. package/dist/map/messages/commands/fit-to-polygons.command.d.ts +0 -18
  56. package/dist/map/messages/commands/modify-feature.command.d.ts +0 -25
  57. package/dist/map/messages/commands/place-layer-features.command.d.ts +0 -9
  58. package/dist/map/messages/commands/remove-control.command.d.ts +0 -20
  59. package/dist/map/messages/commands/remove-image-layer.command.d.ts +0 -8
  60. package/dist/map/messages/commands/remove-layer.command.d.ts +0 -7
  61. package/dist/map/messages/commands/remove-raster-tile.command.d.ts +0 -8
  62. package/dist/map/messages/commands/remove-tile.command.d.ts +0 -8
  63. package/dist/map/messages/commands/set-map-center.command.d.ts +0 -17
  64. package/dist/map/messages/commands/start-drawing.command.d.ts +0 -20
  65. package/dist/map/messages/events/drawing-finished.event.d.ts +0 -4
  66. package/dist/map/messages/events/map-click.event.d.ts +0 -32
  67. package/dist/map/messages/events/map-feature-hovered.event.d.ts +0 -19
  68. package/dist/map/messages/events/map-move-end.event.d.ts +0 -13
  69. package/dist/map/messages/events/map-pointer-move.event.d.ts +0 -17
  70. package/dist/map/messages/events/map-rendered.event.d.ts +0 -15
  71. package/dist/map/messages/executors/calculate-area.executor.d.ts +0 -16
  72. package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +0 -17
  73. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +0 -24
  74. package/dist/map/messages/executors/generate-draw.executor.d.ts +0 -13
  75. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +0 -8
  76. package/dist/map/messages/executors/get-geometry-length.executor.d.ts +0 -11
  77. package/dist/map/messages/executors/get-map-position.executor.d.ts +0 -11
  78. package/dist/map/messages/executors/polygon-self-intersection.executor.d.ts +0 -7
  79. package/dist/map/messages/index.d.ts +0 -24
  80. package/dist/map/messages/queries/get-features-in-area.query.d.ts +0 -20
  81. package/dist/map/messages/queries/get-features-in-point.query.d.ts +0 -21
  82. package/dist/map/messages/queries/get-layer.query.d.ts +0 -9
  83. package/dist/map/models/drawing-type.enum.d.ts +0 -20
  84. package/dist/map/models/feature-format.enum.d.ts +0 -13
  85. package/dist/map/models/i-identified.d.ts +0 -3
  86. package/dist/map/models/index.d.ts +0 -9
  87. package/dist/map/models/map-control.d.ts +0 -13
  88. package/dist/map/models/map-lyrs.enum.d.ts +0 -10
  89. package/dist/map/models/map-position.model.d.ts +0 -18
  90. package/dist/map/models/map-settings.d.ts +0 -81
  91. package/dist/map/models/map.constants.d.ts +0 -5
  92. package/dist/map/models/marker-model.d.ts +0 -16
  93. package/dist/map/models/polygon.model.d.ts +0 -22
  94. package/dist/map/ol-proxy.d.ts +0 -7
  95. package/dist/map/public-api.d.ts +0 -12
  96. package/dist/map/services/controls/controls.service.d.ts +0 -14
  97. package/dist/map/services/drawing/drawing-generation.service.d.ts +0 -6
  98. package/dist/map/services/drawing/drawing.service.d.ts +0 -19
  99. package/dist/map/services/drawing/feature-modification.service.d.ts +0 -22
  100. package/dist/map/services/feature.service.d.ts +0 -16
  101. package/dist/map/services/map-click.service.d.ts +0 -16
  102. package/dist/map/services/map-feature.service.d.ts +0 -17
  103. package/dist/map/services/map-management.service.d.ts +0 -22
  104. package/dist/map/services/map-postboy.service.d.ts +0 -7
  105. package/dist/map/services/map-state.service.d.ts +0 -15
  106. package/dist/map/services/message-registrator.service.d.ts +0 -18
  107. package/dist/public-api.d.ts +0 -1
  108. package/dist/src/map/common/destructible.component.d.ts +0 -10
  109. package/dist/src/map/common/id.generator.d.ts +0 -4
  110. package/dist/src/map/helpers/index.d.ts +0 -4
  111. package/dist/src/map/helpers/marker-style.helper.d.ts +0 -33
  112. package/dist/src/map/helpers/polygon-style.helper.d.ts +0 -26
  113. package/dist/src/map/helpers/stringify-feature.helper.d.ts +0 -26
  114. package/dist/src/map/helpers/text-style.helper.d.ts +0 -19
  115. package/dist/src/map/map-plate/controls/index.d.ts +0 -2
  116. package/dist/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +0 -36
  117. package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +0 -5
  118. package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +0 -85
  119. package/dist/src/map/map-plate/features/index.d.ts +0 -2
  120. package/dist/src/map/map-plate/features/markers/markers.component.d.ts +0 -26
  121. package/dist/src/map/map-plate/features/polygons/polygons.component.d.ts +0 -26
  122. package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer-factory.service.d.ts +0 -11
  123. package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +0 -29
  124. package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.manager.d.ts +0 -13
  125. package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.settings.d.ts +0 -100
  126. package/dist/src/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +0 -22
  127. package/dist/src/map/map-plate/layers/feature-layer/feature-layer.factory.d.ts +0 -9
  128. package/dist/src/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +0 -103
  129. package/dist/src/map/map-plate/layers/image-layer/image-layer-factory.d.ts +0 -9
  130. package/dist/src/map/map-plate/layers/image-layer/image-layer.component.d.ts +0 -22
  131. package/dist/src/map/map-plate/layers/image-layer/image-layer.settings.d.ts +0 -97
  132. package/dist/src/map/map-plate/layers/index.d.ts +0 -11
  133. package/dist/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +0 -21
  134. package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +0 -21
  135. package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +0 -12
  136. package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +0 -119
  137. package/dist/src/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +0 -21
  138. package/dist/src/map/map-plate/layers/tile-layer/tile-layer.factory.d.ts +0 -12
  139. package/dist/src/map/map-plate/layers/tile-layer/tile-layer.settings.d.ts +0 -103
  140. package/dist/src/map/map-plate/map-plate.component.d.ts +0 -30
  141. package/dist/src/map/map-plate/map-plate.factory.service.d.ts +0 -8
  142. package/dist/src/map/map-plate/tooltips/index.d.ts +0 -2
  143. package/dist/src/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +0 -27
  144. package/dist/src/map/map-plate/tooltips/tooltip/tooltip.settings.d.ts +0 -11
  145. package/dist/src/map/messages/commands/add-control.command.d.ts +0 -15
  146. package/dist/src/map/messages/commands/add-image-layer.command.d.ts +0 -8
  147. package/dist/src/map/messages/commands/add-layer.command.d.ts +0 -9
  148. package/dist/src/map/messages/commands/add-raster-tile-command.d.ts +0 -8
  149. package/dist/src/map/messages/commands/add-tile.command.d.ts +0 -8
  150. package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +0 -7
  151. package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +0 -7
  152. package/dist/src/map/messages/commands/close-tooltip.command.d.ts +0 -14
  153. package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +0 -24
  154. package/dist/src/map/messages/commands/fit-to-features.command.d.ts +0 -9
  155. package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +0 -18
  156. package/dist/src/map/messages/commands/modify-feature.command.d.ts +0 -25
  157. package/dist/src/map/messages/commands/place-layer-features.command.d.ts +0 -9
  158. package/dist/src/map/messages/commands/remove-control.command.d.ts +0 -20
  159. package/dist/src/map/messages/commands/remove-image-layer.command.d.ts +0 -8
  160. package/dist/src/map/messages/commands/remove-layer.command.d.ts +0 -7
  161. package/dist/src/map/messages/commands/remove-raster-tile.command.d.ts +0 -8
  162. package/dist/src/map/messages/commands/remove-tile.command.d.ts +0 -8
  163. package/dist/src/map/messages/commands/set-map-center.command.d.ts +0 -17
  164. package/dist/src/map/messages/commands/start-drawing.command.d.ts +0 -20
  165. package/dist/src/map/messages/events/drawing-finished.event.d.ts +0 -4
  166. package/dist/src/map/messages/events/map-click.event.d.ts +0 -32
  167. package/dist/src/map/messages/events/map-feature-hovered.event.d.ts +0 -19
  168. package/dist/src/map/messages/events/map-move-end.event.d.ts +0 -13
  169. package/dist/src/map/messages/events/map-pointer-move.event.d.ts +0 -17
  170. package/dist/src/map/messages/events/map-rendered.event.d.ts +0 -15
  171. package/dist/src/map/messages/executors/calculate-area.executor.d.ts +0 -16
  172. package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +0 -17
  173. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +0 -24
  174. package/dist/src/map/messages/executors/generate-draw.executor.d.ts +0 -13
  175. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +0 -8
  176. package/dist/src/map/messages/executors/get-geometry-length.executor.d.ts +0 -11
  177. package/dist/src/map/messages/executors/get-map-position.executor.d.ts +0 -11
  178. package/dist/src/map/messages/executors/polygon-self-intersection.executor.d.ts +0 -7
  179. package/dist/src/map/messages/index.d.ts +0 -24
  180. package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +0 -20
  181. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +0 -21
  182. package/dist/src/map/messages/queries/get-layer.query.d.ts +0 -9
  183. package/dist/src/map/models/drawing-type.enum.d.ts +0 -20
  184. package/dist/src/map/models/feature-format.enum.d.ts +0 -13
  185. package/dist/src/map/models/i-identified.d.ts +0 -3
  186. package/dist/src/map/models/index.d.ts +0 -9
  187. package/dist/src/map/models/map-control.d.ts +0 -13
  188. package/dist/src/map/models/map-lyrs.enum.d.ts +0 -10
  189. package/dist/src/map/models/map-position.model.d.ts +0 -18
  190. package/dist/src/map/models/map-settings.d.ts +0 -81
  191. package/dist/src/map/models/map.constants.d.ts +0 -5
  192. package/dist/src/map/models/marker-model.d.ts +0 -16
  193. package/dist/src/map/models/polygon.model.d.ts +0 -22
  194. package/dist/src/map/ol-proxy.d.ts +0 -7
  195. package/dist/src/map/public-api.d.ts +0 -12
  196. package/dist/src/map/services/controls/controls.service.d.ts +0 -14
  197. package/dist/src/map/services/drawing/drawing-generation.service.d.ts +0 -6
  198. package/dist/src/map/services/drawing/drawing.service.d.ts +0 -19
  199. package/dist/src/map/services/drawing/feature-modification.service.d.ts +0 -22
  200. package/dist/src/map/services/feature.service.d.ts +0 -16
  201. package/dist/src/map/services/map-click.service.d.ts +0 -16
  202. package/dist/src/map/services/map-feature.service.d.ts +0 -17
  203. package/dist/src/map/services/map-management.service.d.ts +0 -22
  204. package/dist/src/map/services/map-postboy.service.d.ts +0 -7
  205. package/dist/src/map/services/map-state.service.d.ts +0 -15
  206. package/dist/src/map/services/message-registrator.service.d.ts +0 -18
package/dist/index.d.ts CHANGED
@@ -1,5 +1,1722 @@
1
+ import { DefaultsOptions } from 'ol/interaction/defaults';
2
+ import { Feature, MapBrowserEvent, Map as Map$1 } from 'ol';
3
+ export { Feature } from 'ol';
4
+ import { Geometry } from 'ol/geom';
5
+ export { Geometry, LineString, Point } from 'ol/geom';
6
+ import { Control } from 'ol/control';
7
+ import { Options } from 'ol/control/Control';
8
+ import * as i0 from '@angular/core';
9
+ import { OnDestroy, OnInit, AfterViewInit, TemplateRef, ElementRef, ChangeDetectorRef } from '@angular/core';
10
+ import Map from 'ol/Map';
11
+ import { Subscription } from 'rxjs';
12
+ import { PostboyService, IPostboyDependingService, PostboyGenericMessage, PostboyAbstractRegistrator, PostboyCallbackMessage, PostboyExecutor } from '@artstesh/postboy';
13
+ import Style, { StyleFunction, StyleLike } from 'ol/style/Style';
14
+ export { StyleLike } from 'ol/style/Style';
15
+ import { Dictionary } from '@artstesh/collections';
16
+ import { XYZ, Raster } from 'ol/source';
17
+ import TileLayer from 'ol/layer/Tile';
18
+ import TileSource from 'ol/source/Tile';
19
+ import VectorSource from 'ol/source/Vector';
20
+ import { Vector } from 'ol/layer';
21
+ import Cluster from 'ol/source/Cluster';
22
+ import Static from 'ol/source/ImageStatic';
23
+ import ImageLayer from 'ol/layer/Image';
24
+ import { Text } from 'ol/style';
25
+ export { Fill, RegularShape, Stroke, Style, Text } from 'ol/style';
26
+ import Overlay, { Options as Options$1 } from 'ol/Overlay';
27
+ export { FeatureLike } from 'ol/Feature';
28
+ import * as Circle from 'ol/style/Circle';
29
+ export { Circle as CircleStyle };
30
+
31
+ declare enum MapLyrs {
32
+ Hybrid = 1,
33
+ Satellite = 2,
34
+ Streets = 3,
35
+ Terrain = 4
36
+ }
37
+ declare class MapLyrsLabel {
38
+ private static lyrs;
39
+ static get(lyrs: MapLyrs): string;
40
+ }
41
+
1
42
  /**
2
- * Generated bundle index. Do not edit.
43
+ * Represents the configurable settings for a map instance, providing
44
+ * options for center coordinates, zoom levels, map layers, and language.
3
45
  */
4
- /// <amd-module name="maps-components" />
5
- export * from './public-api';
46
+ declare class MapSettings {
47
+ center: number[];
48
+ maxZoom: number;
49
+ minZoom: number;
50
+ zoom: number;
51
+ lyrs: MapLyrs;
52
+ language: string;
53
+ osmOpacity: number;
54
+ interactionSettings: DefaultsOptions;
55
+ static copy(model: MapSettings): MapSettings;
56
+ /**
57
+ * Updates the interaction settings of the map and returns a new MapSettings instance
58
+ * with the updated settings.
59
+ *
60
+ * @param {DefaultsOptions} interactionSettings - The new interaction settings to be applied.
61
+ * @return {MapSettings} A new MapSettings instance with the updated interaction settings.
62
+ */
63
+ setInteractionSettings(interactionSettings: DefaultsOptions): MapSettings;
64
+ /**
65
+ * Sets the center for the map settings.
66
+ *
67
+ * @param {number[]} center - A two-element array representing the latitude and longitude of the map's center.
68
+ * @return {MapSettings} A new MapSettings object with the updated center.
69
+ */
70
+ setCenter(center: number[]): MapSettings;
71
+ /**
72
+ * Sets the maximum zoom level for the map.
73
+ *
74
+ * @param {number} maxZoom - The maximum zoom level to be set.
75
+ * @return {MapSettings} A new instance of MapSettings with the updated maximum zoom level.
76
+ */
77
+ setMaxZoom(maxZoom: number): MapSettings;
78
+ /**
79
+ * Sets the minimum zoom level for the map settings.
80
+ *
81
+ * @param {number} minZoom The minimum zoom level to be set. Must be a valid numeric value.
82
+ * @return {MapSettings} A new MapSettings object with the updated minimum zoom level.
83
+ */
84
+ setMinZoom(minZoom: number): MapSettings;
85
+ /**
86
+ * Adjusts the zoom level of the map by setting the specified value.
87
+ *
88
+ * @param {number} zoom - The desired zoom level to be set.
89
+ * @return {MapSettings} A new MapSettings instance with the updated zoom level.
90
+ */
91
+ setZoom(zoom: number): MapSettings;
92
+ /**
93
+ * Sets the layers in the map settings with the provided layers.
94
+ *
95
+ * @param {MapLyrs} lyrs - The layers to be set in the map settings.
96
+ * @return {MapSettings} A new instance of MapSettings with the updated layers.
97
+ */
98
+ setLyrs(lyrs: MapLyrs): MapSettings;
99
+ /**
100
+ * Updates the language setting for the map configuration and returns a new instance with the updated language.
101
+ *
102
+ * @param {string} language - The language to be set for the map configuration.
103
+ * @return {MapSettings} A new instance of MapSettings with the updated language.
104
+ */
105
+ setLanguage(language: string): MapSettings;
106
+ /**
107
+ * Sets the opacity level for the OpenStreetMap layer.
108
+ *
109
+ * @param {number} osmOpacity - The opacity value for the OpenStreetMap layer, where 0 is fully transparent and 1 is fully opaque.
110
+ * @return {MapSettings} A new MapSettings instance with the updated OpenStreetMap opacity.
111
+ */
112
+ setOsmOpacity(osmOpacity: number): MapSettings;
113
+ /**
114
+ * Compares the current MapSettings instance with another to determine if they are identical.
115
+ *
116
+ * @param {MapSettings} model - The MapSettings instance to compare with the current instance.
117
+ * @return {boolean} Returns true if both MapSettings instances have the same properties and values; otherwise, false.
118
+ */
119
+ isSame(model: MapSettings): boolean;
120
+ }
121
+
122
+ declare class MarkerModel {
123
+ readonly lat: number;
124
+ readonly lng: number;
125
+ info?: {
126
+ [id: string]: any;
127
+ } | undefined;
128
+ readonly id: string | number;
129
+ constructor(lat: number, lng: number, id?: string | number, info?: {
130
+ [id: string]: any;
131
+ } | undefined);
132
+ private _feature;
133
+ get feature(): Feature<Geometry>;
134
+ private getFeature;
135
+ }
136
+
137
+ declare class PolygonModel {
138
+ info?: {
139
+ [id: string]: any;
140
+ } | undefined;
141
+ readonly id: string | number;
142
+ readonly lat: number;
143
+ readonly lng: number;
144
+ private constructor();
145
+ private _feature;
146
+ get feature(): Feature<Geometry>;
147
+ static fromGeoJson(id: string | number, json: string, info?: {
148
+ [id: string]: any;
149
+ }): PolygonModel;
150
+ static fromWKT(id: string | number, wkt: string, info?: {
151
+ [id: string]: any;
152
+ }): PolygonModel;
153
+ static circle(id: string | number, lat: number, lng: number, radius: number, vertices?: number, info?: {
154
+ [id: string]: any;
155
+ }): PolygonModel;
156
+ }
157
+
158
+ /**
159
+ * Enum representing various drawing types.
160
+ *
161
+ * This enumeration is used to define the types of drawable shapes
162
+ * within a specific drawing context. Each member corresponds to
163
+ * a specific type of drawing.
164
+ *
165
+ * Members:
166
+ * - `Polygon`: Represents a polygonal shape (e.g., triangle, pentagon, etc.).
167
+ * - `Circle`: Represents a circular shape.
168
+ * - `Square`: Represents a square shape.
169
+ * - `Box`: Represents a rectangular box shape.
170
+ */
171
+ declare enum DrawingType {
172
+ Polygon = 1,
173
+ Circle = 2,
174
+ Square = 3,
175
+ Box = 4,
176
+ LineString = 5
177
+ }
178
+
179
+ /**
180
+ * An enumeration representing different formats for feature outputs.
181
+ * This can be used to specify the desired output format when dealing with geospatial data.
182
+ *
183
+ * Enumerators:
184
+ * - GeoJson: Represents the GeoJSON format for geospatial data.
185
+ * - WKT: Represents the Well-Known Text (WKT) format for geospatial data.
186
+ */
187
+ declare enum FeatureOutputFormat {
188
+ GeoJson = 1,
189
+ WKT = 2,
190
+ Geometry = 3
191
+ }
192
+
193
+ /**
194
+ *
195
+ * A control is a visible widget with a DOM element in a fixed position on the screen. They can involve user input (buttons), or be informational only; the position is determined using CSS. By default, these are placed in the container with CSS class name ol-overlaycontainer-stopevent, but can use any outside DOM element.
196
+ * This is the base class for controls. You can use it for simple custom controls by creating the element with listeners, creating an instance:
197
+ * var myControl = new Control({element: myElement}); and then adding this to the map.
198
+ * The main advantage of having this as a control rather than a simple separate DOM element is that preventing propagation is handled for you. Controls will also be objects in a module:ol/Collection~Collection, so you can use their methods.
199
+ * You can also extend this base for your own control class. See examples/custom-controls for an example of how to do this.
200
+ */
201
+ declare class MapControl extends Control {
202
+ constructor(options: Options);
203
+ }
204
+
205
+ declare class MapConstants {
206
+ static FeatureInfo: string;
207
+ static DrawingLayerId: string;
208
+ static FeatureLayerName: string;
209
+ }
210
+
211
+ /**
212
+ * Represents a position and view configuration on a map.
213
+ *
214
+ * This interface is utilized to store and retrieve geographic and viewport details,
215
+ * including location coordinates, zoom level, and map extent.
216
+ *
217
+ * Properties:
218
+ * - `latitude`: The latitude coordinate of the map's center point.
219
+ * - `longitude`: The longitude coordinate of the map's center point.
220
+ * - `zoom`: The zoom level of the map's view.
221
+ * - `extent`: The geographical rectangular bounds defining the visible area of the map, represented as an array of coordinates [minX, minY, maxX, maxY].
222
+ */
223
+ interface MapPosition {
224
+ latitude: number;
225
+ longitude: number;
226
+ zoom: number;
227
+ extent: number[];
228
+ }
229
+
230
+ declare class DestructibleComponent implements OnDestroy {
231
+ protected subs: Subscription[];
232
+ protected onDestroy?: () => void;
233
+ ngOnDestroy(): void;
234
+ static ɵfac: i0.ɵɵFactoryDeclaration<DestructibleComponent, never>;
235
+ static ɵcmp: i0.ɵɵComponentDeclaration<DestructibleComponent, "ng-component", never, {}, {}, never, never, true, never>;
236
+ }
237
+
238
+ declare class MapPostboyService extends PostboyService {
239
+ constructor();
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapPostboyService, never>;
241
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapPostboyService>;
242
+ }
243
+
244
+ declare class MapManagementService implements IPostboyDependingService {
245
+ private postboy;
246
+ private map?;
247
+ private layers;
248
+ constructor(postboy: MapPostboyService);
249
+ up(): void;
250
+ private observeLayerQuery;
251
+ private observeAddTile;
252
+ private observeImageLayer;
253
+ private observeMapRender;
254
+ private observeAddLayer;
255
+ private observePlaceFeatures;
256
+ private observeRemoveLayer;
257
+ private observeFeaturesInArea;
258
+ private observeFeaturesInPoint;
259
+ private forEachLayer;
260
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
261
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
262
+ }
263
+
264
+ declare class MapStateService implements IPostboyDependingService {
265
+ private postboy;
266
+ private map?;
267
+ constructor(postboy: MapPostboyService);
268
+ up(): void;
269
+ getMapPosition(): MapPosition | null;
270
+ private observeMapRendering;
271
+ private observeCenter;
272
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapStateService, never>;
273
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapStateService>;
274
+ }
275
+
276
+ interface IIdentified {
277
+ id: string | number;
278
+ }
279
+
280
+ /**
281
+ * Represents an event triggered by a click on a map, containing information about the
282
+ * click's location, relevant entities, and features present at the clicked position.
283
+ *
284
+ * @extends {PostboyGenericMessage}
285
+ */
286
+ declare class MapClickEvent extends PostboyGenericMessage {
287
+ coordinates: number[];
288
+ entities: {
289
+ [layer: string]: IIdentified[];
290
+ };
291
+ features: {
292
+ [layer: string]: Feature<Geometry>[];
293
+ };
294
+ static readonly ID = "ee31a86c-e838-4531-8399-983753a354df";
295
+ /**
296
+ * Creates an instance of this class with the provided coordinates, entities, and features.
297
+ *
298
+ * @param {number[]} coordinates - An array representing the coordinates.
299
+ * @param {{ [layer: string]: IIdentified[] }} entities - A mapping of layer names to arrays of IIdentified entities.
300
+ * @param {{ [layer: string]: Feature<Geometry>[] }} features - A mapping of layer names to arrays of features with geometry.
301
+ */
302
+ constructor(coordinates: number[], entities: {
303
+ [layer: string]: IIdentified[];
304
+ }, features: {
305
+ [layer: string]: Feature<Geometry>[];
306
+ });
307
+ }
308
+
309
+ declare class MapClickService implements IPostboyDependingService {
310
+ private postboy;
311
+ private map?;
312
+ constructor(postboy: MapPostboyService);
313
+ up(): void;
314
+ onClick(ev: MapBrowserEvent<PointerEvent>): MapClickEvent;
315
+ private observeMapRender;
316
+ private getFeatureCollectionWithInner;
317
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapClickService, never>;
318
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapClickService>;
319
+ }
320
+
321
+ declare class MapFeatureService implements IPostboyDependingService {
322
+ private postboy;
323
+ private map?;
324
+ private fitPolygonsWaiting?;
325
+ constructor(postboy: MapPostboyService);
326
+ up(): void;
327
+ private observeMapRender;
328
+ private observePointerMove;
329
+ private observeFitToFeatures;
330
+ private observeFitToPolygons;
331
+ private fitToGeometries;
332
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapFeatureService, never>;
333
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapFeatureService>;
334
+ }
335
+
336
+ declare class DrawingService implements IPostboyDependingService {
337
+ private postboy;
338
+ private drawInteraction?;
339
+ private map?;
340
+ constructor(postboy: MapPostboyService);
341
+ up(): void;
342
+ private observeSelectArea;
343
+ private observeDrawing;
344
+ private onEnd;
345
+ private observeMapRender;
346
+ private draw;
347
+ private observeCancelation;
348
+ private clearInteraction;
349
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrawingService, never>;
350
+ static ɵprov: i0.ɵɵInjectableDeclaration<DrawingService>;
351
+ }
352
+
353
+ declare class FeatureModificationService implements IPostboyDependingService {
354
+ private postboy;
355
+ private modify?;
356
+ private translate?;
357
+ private map?;
358
+ constructor(postboy: MapPostboyService);
359
+ up(): void;
360
+ private observeModification;
361
+ private initFeature;
362
+ private addModify;
363
+ private addDragging;
364
+ private onModified;
365
+ private observeMapRender;
366
+ private defineLayer;
367
+ private observeCancelation;
368
+ private clearInteraction;
369
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureModificationService, never>;
370
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeatureModificationService>;
371
+ }
372
+
373
+ declare class ControlsService implements IPostboyDependingService {
374
+ private postboy;
375
+ private map?;
376
+ constructor(postboy: MapPostboyService);
377
+ up(): void;
378
+ private observeMapRender;
379
+ private observeAdding;
380
+ private observeRemoving;
381
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlsService, never>;
382
+ static ɵprov: i0.ɵɵInjectableDeclaration<ControlsService>;
383
+ }
384
+
385
+ declare class MessageRegistratorService extends PostboyAbstractRegistrator {
386
+ private state;
387
+ constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, mapFeature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, featureModification: FeatureModificationService, controls: ControlsService);
388
+ protected _up(): void;
389
+ private setExecutors;
390
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
391
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
392
+ }
393
+
394
+ declare class MapPlateFactory {
395
+ build(settings: MapSettings): Map;
396
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateFactory, never>;
397
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapPlateFactory>;
398
+ }
399
+
400
+ /**
401
+ * Class representing settings for a tile layer.
402
+ */
403
+ declare class TileLayerSettings {
404
+ /**
405
+ * The maximum zoom level for a map view.
406
+ *
407
+ * @type {number}
408
+ * @default 19
409
+ */
410
+ maxZoom: number;
411
+ /**
412
+ * The minimum zoom level allowed.
413
+ *
414
+ * @type {number}
415
+ */
416
+ minZoom: number;
417
+ /**
418
+ * The opacity of an element.
419
+ *
420
+ * @type {number}
421
+ * @default 0.6
422
+ */
423
+ opacity: number;
424
+ /**
425
+ * Represents the tiles URL.
426
+ * @typedef {string} url
427
+ *
428
+ * @example
429
+ * 'https://example.ex/{z}/{x}/{y}.png'
430
+ */
431
+ url: string;
432
+ /**
433
+ * The projection of the coordinate system.
434
+ *
435
+ * @type {string}
436
+ * @default 'EPSG:3857'
437
+ */
438
+ projection: string;
439
+ /**
440
+ * Additional headers that should be added to each tile request
441
+ *
442
+ * @type {Record<string, string>}
443
+ * @default An empty array
444
+ */
445
+ requestHeaders: Record<string, string> | null;
446
+ /**
447
+ * Creates a copy of the given tile layer settings.
448
+ *
449
+ * @param {TileLayerSettings} model - The tile layer settings to be copied.
450
+ * @return {TileLayerSettings} - A new instance of TileLayerSettings with the same properties as the model.
451
+ */
452
+ static copy(model: TileLayerSettings): TileLayerSettings;
453
+ /**
454
+ * Sets the URL of the TileLayerSettings object.
455
+ *
456
+ * @param {string} url - The URL to be set.
457
+ * @return {TileLayerSettings} - The updated TileLayerSettings object.
458
+ */
459
+ setUrl(url: string): TileLayerSettings;
460
+ /**
461
+ * Sets the requestHeaders of the TileLayerSettings object.
462
+ *
463
+ * @param {Record<string, string>} requestHeaders - The headers which should be provided.
464
+ * @return {TileLayerSettings} - The updated TileLayerSettings object.
465
+ */
466
+ setRequestHeaders(requestHeaders: Record<string, string>): TileLayerSettings;
467
+ /**
468
+ * Sets the maximum zoom level for the tile layer.
469
+ *
470
+ * @param {number} maxZoom - The maximum zoom level.
471
+ * @returns {TileLayerSettings} - The updated tile layer settings object.
472
+ */
473
+ setMaxZoom(maxZoom: number): TileLayerSettings;
474
+ /**
475
+ * Sets the minimum zoom level for the Tile Layer.
476
+ *
477
+ * @param {number} minZoom - The minimum zoom level to be set.
478
+ * @return {TileLayerSettings} The modified TileLayerSettings object with the updated minimum zoom level.
479
+ */
480
+ setMinZoom(minZoom: number): TileLayerSettings;
481
+ /**
482
+ * Sets the opacity of the TileLayerSettings.
483
+ *
484
+ * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
485
+ * @return {TileLayerSettings} - A new instance of TileLayerSettings with the opacity set.
486
+ */
487
+ setOpacity(opacity: number): TileLayerSettings;
488
+ /**
489
+ * Sets the projection for the tile layer settings.
490
+ *
491
+ * @param {string} projection - The desired projection for the tile layer settings.
492
+ * @return {TileLayerSettings} - The updated tile layer settings with the new projection.
493
+ */
494
+ setProjection(projection: string): TileLayerSettings;
495
+ /**
496
+ * Checks if the current instance of TileLayerSettings is equal to the given model.
497
+ * @param {TileLayerSettings} model - The model to compare against.
498
+ * @return {boolean} - True if all properties of the current instance matches the properties of the model;
499
+ * otherwise, false.
500
+ */
501
+ isSame(model: TileLayerSettings): boolean;
502
+ }
503
+
504
+ declare class TileLayerFactory {
505
+ build(settings: TileLayerSettings): TileLayer<XYZ>;
506
+ private getTileFunc;
507
+ private tileLoader;
508
+ private getNormalizedCoord;
509
+ static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerFactory, never>;
510
+ static ɵprov: i0.ɵɵInjectableDeclaration<TileLayerFactory>;
511
+ }
512
+
513
+ declare class TileLayerComponent extends DestructibleComponent {
514
+ private postboy;
515
+ private factory;
516
+ layer?: TileLayer<XYZ>;
517
+ constructor(postboy: MapPostboyService, factory: TileLayerFactory);
518
+ _settings: TileLayerSettings;
519
+ set settings(value: TileLayerSettings | undefined);
520
+ ngOnInit(): void;
521
+ onDestroy: () => void;
522
+ private initLayer;
523
+ private removeLayer;
524
+ static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>;
525
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "art-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
526
+ }
527
+
528
+ declare class OsmTileLayerComponent extends DestructibleComponent implements OnInit {
529
+ layer?: TileLayer<TileSource>;
530
+ constructor();
531
+ private _url;
532
+ private _map?;
533
+ private _opacity;
534
+ set url(value: string | undefined);
535
+ set opacity(value: number);
536
+ set map(value: Map$1 | undefined);
537
+ ngOnInit(): void;
538
+ ngOnDestroy(): void;
539
+ private initLayer;
540
+ static ɵfac: i0.ɵɵFactoryDeclaration<OsmTileLayerComponent, never>;
541
+ static ɵcmp: i0.ɵɵComponentDeclaration<OsmTileLayerComponent, "art-osm-tile-layer", never, { "url": { "alias": "url"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
542
+ }
543
+
544
+ /**
545
+ * A layer that is responsible for showing and styling main features on the map, such as markers and polygons
546
+ */
547
+ declare class FeatureLayerSettings {
548
+ /**
549
+ * The identifier of the field, it is autogenerated by default, but can be set manually
550
+ */
551
+ name: string;
552
+ /**
553
+ * The priority of showing - layers with higher zIndex cover others in case of collisions
554
+ */
555
+ zIndex: number;
556
+ /**
557
+ The maximum view zoom level (inclusive) at which this layer will be visible.
558
+
559
+ @type {number}
560
+ @default 19
561
+ */
562
+ maxZoom: number;
563
+ /**
564
+ The minimum view zoom level (exclusive) at which this layer will be visible.
565
+
566
+ @type {number}
567
+ */
568
+ minZoom: number;
569
+ /**
570
+ * The styling definition of layer's features. The easiest way is to use {@link PolygonStyleHelper},{@link MarkerStyleHelper}
571
+ */
572
+ style?: Style | StyleFunction;
573
+ /**
574
+ * Defines the style applied to a feature when it is hovered over.
575
+ *
576
+ * This property can accept either a static style object or a dynamic style function.
577
+ * When a `StyleFunction` is provided, it will determine the style dynamically
578
+ * based on the feature being hovered.
579
+ *
580
+ * The style is applied temporarily, specifically for the hovered feature,
581
+ * and overrides any default or predefined styles for that feature.
582
+ *
583
+ * Optional property.
584
+ *
585
+ * @type {(Style | StyleFunction)}
586
+ */
587
+ featureHoverStyle?: Style | StyleFunction;
588
+ /**
589
+ * Copies the given FeatureLayerSettings object
590
+ *
591
+ * @param {FeatureLayerSettings} model - The FeatureLayerSettings object to be copied
592
+ * @returns {FeatureLayerSettings} - A copy of the FeatureLayerSettings object
593
+ */
594
+ static copy(model: FeatureLayerSettings): FeatureLayerSettings;
595
+ /**
596
+ * Sets the z-index value for the FeatureLayerSettings object.
597
+ *
598
+ * @param {number} zIndex - The new z-index value.
599
+ * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
600
+ */
601
+ setZIndex(zIndex: number): FeatureLayerSettings;
602
+ /**
603
+ * Sets the name of the FeatureLayerSettings.
604
+ *
605
+ * @param {string} name - The name to set for the FeatureLayerSettings.
606
+ *
607
+ * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new name.
608
+ */
609
+ setName(name: string): FeatureLayerSettings;
610
+ /**
611
+ * Sets the maximum zoom level for the FeatureLayerSettings.
612
+ *
613
+ * @param {number} maxZoom - The maximum zoom level.
614
+ * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
615
+ */
616
+ setMaxZoom(maxZoom: number): FeatureLayerSettings;
617
+ /**
618
+ * Sets the minimum zoom level for the feature layer.
619
+ *
620
+ * @param {number} minZoom The minimum zoom level to be set.
621
+ * @returns {FeatureLayerSettings} The updated feature layer settings object.
622
+ */
623
+ setMinZoom(minZoom: number): FeatureLayerSettings;
624
+ /**
625
+ * Sets the style for the FeatureLayerSettings object.
626
+ *
627
+ * @param {Style | StyleFunction} style - The new style to set. It can be either a Style object or a StyleFunction.
628
+ * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new style.
629
+ */
630
+ setStyle(style: Style | StyleFunction): FeatureLayerSettings;
631
+ /**
632
+ * Sets the style to apply to features when they are hovered over.
633
+ *
634
+ * @param {Style | StyleFunction} featureHoverStyle - The style or style function to use for hovered features.
635
+ * @return {FeatureLayerSettings} A new instance of FeatureLayerSettings with the updated hover style.
636
+ */
637
+ setFeatureHoverStyle(featureHoverStyle: Style | StyleFunction): FeatureLayerSettings;
638
+ /**
639
+ * Checks if the given FeatureLayerSettings object is identical to the current object.
640
+ *
641
+ * @param {FeatureLayerSettings} model - The FeatureLayerSettings object to compare with.
642
+ * @return {boolean} - Returns true if the given object is identical to the current object, otherwise false.
643
+ */
644
+ isSame(model: FeatureLayerSettings): boolean;
645
+ }
646
+
647
+ declare class FeatureLayerFactory {
648
+ build(settings: FeatureLayerSettings): Vector<VectorSource<any>>;
649
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureLayerFactory, never>;
650
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeatureLayerFactory>;
651
+ }
652
+
653
+ declare class FeatureLayerComponent extends DestructibleComponent implements OnInit {
654
+ private postboy;
655
+ private factory;
656
+ layer: Vector<VectorSource<any>> | null;
657
+ constructor(postboy: MapPostboyService, factory: FeatureLayerFactory);
658
+ _settings: FeatureLayerSettings;
659
+ set settings(value: FeatureLayerSettings | undefined);
660
+ ngOnInit(): void;
661
+ onDestroy: () => void;
662
+ private initLayer;
663
+ private removeLayer;
664
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureLayerComponent, never>;
665
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeatureLayerComponent, "art-feature-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
666
+ }
667
+
668
+ declare class ClusterLayerSettings {
669
+ name: string;
670
+ zIndex: number;
671
+ /**
672
+ * The maximum view zoom level (inclusive) at which this layer will be visible.
673
+ *
674
+ * @type {number}
675
+ * @default 19
676
+ */
677
+ maxZoom: number;
678
+ /**
679
+ * The minimum view zoom level (exclusive) at which this layer will be visible.
680
+ *
681
+ * @type {number}
682
+ */
683
+ minZoom: number;
684
+ /**
685
+ * Distance in pixels within which features will be clustered together.
686
+ *
687
+ * @type {number}
688
+ */
689
+ distance: number;
690
+ bbox: boolean;
691
+ clusterCancel: number;
692
+ style?: (features: IIdentified[]) => Style;
693
+ /**
694
+ * Creates a copy of the given ClusterLayerSettings object.
695
+ *
696
+ * @param {ClusterLayerSettings} model - The ClusterLayerSettings object to be copied.
697
+ * @returns {ClusterLayerSettings} - A new ClusterLayerSettings object that is a copy of the original object.
698
+ */
699
+ static copy(model: ClusterLayerSettings): ClusterLayerSettings;
700
+ /**
701
+ * Set the z-index for the ClusterLayer.
702
+ *
703
+ * @param {number} zIndex - The new z-index for the ClusterLayer.
704
+ * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
705
+ */
706
+ setZIndex(zIndex: number): ClusterLayerSettings;
707
+ /**
708
+ * Sets the distance value for ClusterLayerSettings.
709
+ *
710
+ * @param {number} distance - The distance value to be set.
711
+ * @return {ClusterLayerSettings} - The modified ClusterLayerSettings object.
712
+ */
713
+ setDistance(distance: number): ClusterLayerSettings;
714
+ /**
715
+ * Sets the name of the ClusterLayerSettings object.
716
+ *
717
+ * @param {string} name - The name to set for the ClusterLayerSettings.
718
+ * @return {ClusterLayerSettings} - A new ClusterLayerSettings object with the updated name.
719
+ */
720
+ setName(name: string): ClusterLayerSettings;
721
+ /**
722
+ * Sets the maximum zoom level for the Cluster Layer.
723
+ *
724
+ * @param {number} maxZoom - The maximum zoom level to be set.
725
+ * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
726
+ */
727
+ setMaxZoom(maxZoom: number): ClusterLayerSettings;
728
+ /**
729
+ * Sets the minimum zoom level for the ClusterLayerSettings.
730
+ *
731
+ * @param {number} minZoom - The minimum zoom level to set.
732
+ * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
733
+ */
734
+ setMinZoom(minZoom: number): ClusterLayerSettings;
735
+ /**
736
+ * Sets the cluster cancel number for the ClusterLayerSettings.
737
+ *
738
+ * @param {number} clusterCancel - The new cluster cancel number.
739
+ * @returns {ClusterLayerSettings} - The updated ClusterLayerSettings object.
740
+ */
741
+ setClusterCancel(clusterCancel: number): ClusterLayerSettings;
742
+ /**
743
+ * Sets the value of 'bbox' property in the ClusterLayerSettings object.
744
+ *
745
+ * @param {boolean} bbox - A boolean value indicating whether to include bounding box calculation in the cluster layer settings.
746
+ * @returns {ClusterLayerSettings} - The updated ClusterLayerSettings object with the newly set 'bbox' value.
747
+ */
748
+ setBbox(bbox: boolean): ClusterLayerSettings;
749
+ /**
750
+ * Sets the style for the ClusterLayerSettings.
751
+ *
752
+ * @param {function} style - A function that takes an array of identified features as input and returns a Style or StyleFunction.
753
+ *
754
+ * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object with the new style applied.
755
+ */
756
+ setStyle(style: (features: IIdentified[]) => Style | StyleFunction): ClusterLayerSettings;
757
+ /**
758
+ * Checks if the current ClusterLayerSettings object is the same as the specified model.
759
+ *
760
+ * @param {ClusterLayerSettings} model - The model to compare with the current object.
761
+ *
762
+ * @return {boolean} - Returns true if the current ClusterLayerSettings object is the same as the specified model, otherwise false.
763
+ */
764
+ isSame(model: ClusterLayerSettings): boolean;
765
+ }
766
+
767
+ declare class ClusterLayerManager {
768
+ private settings;
769
+ readonly layer: Vector<Cluster>;
770
+ private postboy;
771
+ constructor(settings: ClusterLayerSettings, layer: Vector<Cluster>, postboy: MapPostboyService);
772
+ private observeMapMovement;
773
+ private observeClick;
774
+ private checkClusterNecessity;
775
+ }
776
+
777
+ declare class ClusterLayerFactory {
778
+ build(settings: ClusterLayerSettings, postboy: MapPostboyService): ClusterLayerManager;
779
+ styleFunc(settings: ClusterLayerSettings): StyleFunction;
780
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClusterLayerFactory, never>;
781
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClusterLayerFactory>;
782
+ }
783
+
784
+ /**
785
+ * Represents a cluster layer component.
786
+ */
787
+ declare class ClusterLayerComponent extends DestructibleComponent implements OnInit {
788
+ private postboy;
789
+ private factory;
790
+ manager: ClusterLayerManager | null;
791
+ constructor(postboy: MapPostboyService, factory: ClusterLayerFactory);
792
+ _settings: ClusterLayerSettings;
793
+ /**
794
+ * Sets the settings for the cluster layer.
795
+ *
796
+ * @param {ClusterLayerSettings | undefined} value - The settings for the cluster layer.
797
+ */
798
+ set settings(value: ClusterLayerSettings | undefined);
799
+ ngOnInit(): void;
800
+ onDestroy: () => void;
801
+ private initLayer;
802
+ private removeLayer;
803
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClusterLayerComponent, never>;
804
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClusterLayerComponent, "art-cluster-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
805
+ }
806
+
807
+ declare class ImageLayerSettings {
808
+ /**
809
+ * Represents the tiles URL.
810
+ * @typedef {string} url
811
+ *
812
+ * @example
813
+ * 'https://example.ex/{z}/{x}/{y}.png'
814
+ */
815
+ url: string;
816
+ /**
817
+ * Use interpolated values when resampling.
818
+ * By default, linear interpolation is used when resampling.
819
+ * Set to false to use the nearest neighbor instead.
820
+ */
821
+ interpolate?: boolean;
822
+ /**
823
+ * The projection of the coordinate system.
824
+ *
825
+ * @type {string}
826
+ * @default 'EPSG:3857'
827
+ */
828
+ projection: string;
829
+ extent: number[];
830
+ /**
831
+ * Additional headers that should be added to each tile request
832
+ *
833
+ * @type {Record<string, string>}
834
+ * @default An empty array
835
+ */
836
+ requestHeaders: Record<string, string> | null;
837
+ /**
838
+ * Creates a copy of the given tile layer settings.
839
+ *
840
+ * @param {ImageLayerSettings} model - The tile layer settings to be copied.
841
+ * @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the same properties as the model.
842
+ */
843
+ static copy(model: ImageLayerSettings): ImageLayerSettings;
844
+ /**
845
+ * Sets the URL of the ImageLayerSettings object.
846
+ *
847
+ * @param {string} url - The URL to be set.
848
+ * @return {ImageLayerSettings} - The updated ImageLayerSettings object.
849
+ */
850
+ setUrl(url: string): ImageLayerSettings;
851
+ /**
852
+ * Sets the interpolation state for the image layer settings.
853
+ *
854
+ * @param {boolean} [interpolate] - Use interpolated values when resampling.
855
+ * By default, linear interpolation is used when resampling.
856
+ * Set to false to use the nearest neighbor instead.
857
+ * @return {ImageLayerSettings} A new instance of ImageLayerSettings with the updated interpolation setting.
858
+ */
859
+ setInterpolate(interpolate?: boolean): ImageLayerSettings;
860
+ setExtent(extent: number[]): ImageLayerSettings;
861
+ /**
862
+ * Sets the requestHeaders of the ImageLayerSettings object.
863
+ *
864
+ * @param {Record<string, string>} requestHeaders - The headers which should be provided.
865
+ * @return {ImageLayerSettings} - The updated ImageLayerSettings object.
866
+ */
867
+ setRequestHeaders(requestHeaders: Record<string, string>): ImageLayerSettings;
868
+ /**
869
+ * Sets the maximum zoom level for the tile layer.
870
+ *
871
+ * @param {number} maxZoom - The maximum zoom level.
872
+ * @returns {ImageLayerSettings} - The updated tile layer settings object.
873
+ */
874
+ setMaxZoom(maxZoom: number): ImageLayerSettings;
875
+ /**
876
+ * Sets the minimum zoom level for the Tile Layer.
877
+ *
878
+ * @param {number} minZoom - The minimum zoom level to be set.
879
+ * @return {ImageLayerSettings} The modified ImageLayerSettings object with the updated minimum zoom level.
880
+ */
881
+ setMinZoom(minZoom: number): ImageLayerSettings;
882
+ /**
883
+ * Sets the opacity of the ImageLayerSettings.
884
+ *
885
+ * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
886
+ * @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the opacity set.
887
+ */
888
+ setOpacity(opacity: number): ImageLayerSettings;
889
+ /**
890
+ * Sets the projection for the tile layer settings.
891
+ *
892
+ * @param {string} projection - The desired projection for the tile layer settings.
893
+ * @return {ImageLayerSettings} - The updated tile layer settings with the new projection.
894
+ */
895
+ setProjection(projection: string): ImageLayerSettings;
896
+ /**
897
+ * Checks if the current instance of ImageLayerSettings is equal to the given model.
898
+ * @param {ImageLayerSettings} model - The model to compare against.
899
+ * @return {boolean} - True if all properties of the current instance matches the properties of the model;
900
+ * otherwise, false.
901
+ */
902
+ isSame(model: ImageLayerSettings): boolean;
903
+ }
904
+
905
+ declare class ImageLayerFactory {
906
+ build(settings: ImageLayerSettings): ImageLayer<Static>;
907
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerFactory, never>;
908
+ static ɵprov: i0.ɵɵInjectableDeclaration<ImageLayerFactory>;
909
+ }
910
+
911
+ declare class ImageLayerComponent extends DestructibleComponent implements OnInit {
912
+ private postboy;
913
+ private factory;
914
+ layer?: ImageLayer<Static>;
915
+ constructor(postboy: MapPostboyService, factory: ImageLayerFactory);
916
+ _settings: ImageLayerSettings;
917
+ set settings(value: ImageLayerSettings | undefined);
918
+ ngOnInit(): void;
919
+ onDestroy: () => void;
920
+ private initLayer;
921
+ private removeLayer;
922
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerComponent, never>;
923
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageLayerComponent, "art-image-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
924
+ }
925
+
926
+ declare class RasterTileLayerSettings {
927
+ /**
928
+ * The maximum zoom level for a map view.
929
+ *
930
+ * @type {number}
931
+ * @default 19
932
+ */
933
+ maxZoom: number;
934
+ /**
935
+ * The minimum zoom level allowed.
936
+ *
937
+ * @type {number}
938
+ */
939
+ minZoom: number;
940
+ /**
941
+ * The opacity of an element.
942
+ *
943
+ * @type {number}
944
+ * @default 0.6
945
+ */
946
+ opacity: number;
947
+ /**
948
+ * Represents the tiles URL.
949
+ * @typedef {string} url
950
+ *
951
+ * @example
952
+ * 'https://example.ex/{z}/{x}/{y}.png'
953
+ */
954
+ url: string;
955
+ /**
956
+ * The projection of the coordinate system.
957
+ *
958
+ * @type {string}
959
+ * @default 'EPSG:3857'
960
+ */
961
+ projection: string;
962
+ /**
963
+ * Additional headers that should be added to each tile request
964
+ *
965
+ * @type {Record<string, string>}
966
+ * @default An empty array
967
+ */
968
+ requestHeaders: Record<string, string> | null;
969
+ /**
970
+ * The priority of showing - layers with higher zIndex cover others in case of collisions
971
+ */
972
+ zIndex: number;
973
+ operation: (data: number[][] | ImageData[]) => number[] | ImageData;
974
+ /**
975
+ * Creates a copy of the given tile layer settings.
976
+ *
977
+ * @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
978
+ * @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
979
+ */
980
+ static copy(model: RasterTileLayerSettings): RasterTileLayerSettings;
981
+ /**
982
+ * Sets the URL of the RasterTileLayerSettings object.
983
+ *
984
+ * @param {string} url - The URL to be set.
985
+ * @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
986
+ */
987
+ setUrl(url: string): RasterTileLayerSettings;
988
+ /**
989
+ * Sets the operation to apply on raster tile data.
990
+ *
991
+ * @param {function} operation - A function that takes an input of either a two-dimensional array of numbers or an array of ImageData objects and returns either a one-dimensional array of numbers or an ImageData object.
992
+ * @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
993
+ */
994
+ setOperation(operation: (data: number[][] | ImageData[]) => number[] | ImageData): RasterTileLayerSettings;
995
+ /**
996
+ * Sets the requestHeaders of the RasterTileLayerSettings object.
997
+ *
998
+ * @param {Record<string, string>} requestHeaders - The headers which should be provided.
999
+ * @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
1000
+ */
1001
+ setRequestHeaders(requestHeaders: Record<string, string>): RasterTileLayerSettings;
1002
+ /**
1003
+ * Sets the maximum zoom level for the tile layer.
1004
+ *
1005
+ * @param {number} maxZoom - The maximum zoom level.
1006
+ * @returns {RasterTileLayerSettings} - The updated tile layer settings object.
1007
+ */
1008
+ setMaxZoom(maxZoom: number): RasterTileLayerSettings;
1009
+ /**
1010
+ * Sets the z-index for the RasterTileLayerSettings.
1011
+ *
1012
+ * @param {number} zIndex - The new z-index to be assigned.
1013
+ * @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
1014
+ */
1015
+ setZIndex(zIndex: number): RasterTileLayerSettings;
1016
+ /**
1017
+ * Sets the minimum zoom level for the Tile Layer.
1018
+ *
1019
+ * @param {number} minZoom - The minimum zoom level to be set.
1020
+ * @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
1021
+ */
1022
+ setMinZoom(minZoom: number): RasterTileLayerSettings;
1023
+ /**
1024
+ * Sets the opacity of the RasterTileLayerSettings.
1025
+ *
1026
+ * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
1027
+ * @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
1028
+ */
1029
+ setOpacity(opacity: number): RasterTileLayerSettings;
1030
+ /**
1031
+ * Sets the projection for the tile layer settings.
1032
+ *
1033
+ * @param {string} projection - The desired projection for the tile layer settings.
1034
+ * @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
1035
+ */
1036
+ setProjection(projection: string): RasterTileLayerSettings;
1037
+ /**
1038
+ * Checks if the current instance of RasterTileLayerSettings is equal to the given model.
1039
+ * @param {RasterTileLayerSettings} model - The model to compare against.
1040
+ * @return {boolean} - True if all properties of the current instance matches the properties of the model;
1041
+ * otherwise, false.
1042
+ */
1043
+ isSame(model: RasterTileLayerSettings): boolean;
1044
+ }
1045
+
1046
+ declare class RasterTileLayerFactory {
1047
+ build(settings: RasterTileLayerSettings): ImageLayer<Raster>;
1048
+ private getTileFunc;
1049
+ private tileLoader;
1050
+ private getNormalizedCoord;
1051
+ static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerFactory, never>;
1052
+ static ɵprov: i0.ɵɵInjectableDeclaration<RasterTileLayerFactory>;
1053
+ }
1054
+
1055
+ declare class RasterTileLayerComponent extends DestructibleComponent {
1056
+ private postboy;
1057
+ private factory;
1058
+ layer?: ImageLayer<Raster>;
1059
+ constructor(postboy: MapPostboyService, factory: RasterTileLayerFactory);
1060
+ _settings: RasterTileLayerSettings;
1061
+ set settings(value: RasterTileLayerSettings | undefined);
1062
+ ngOnInit(): void;
1063
+ onDestroy: () => void;
1064
+ private initLayer;
1065
+ private removeLayer;
1066
+ static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerComponent, never>;
1067
+ static ɵcmp: i0.ɵɵComponentDeclaration<RasterTileLayerComponent, "art-raster-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
1068
+ }
1069
+
1070
+ declare class MapPlateComponent extends DestructibleComponent implements AfterViewInit {
1071
+ private elementRef;
1072
+ private postboy;
1073
+ private mapFactory;
1074
+ private registrator;
1075
+ private detector;
1076
+ contentRef: i0.InputSignal<TemplateRef<any>>;
1077
+ private renderTryCount;
1078
+ map: Map;
1079
+ osmUrl: string;
1080
+ drawingLayerSettings: FeatureLayerSettings;
1081
+ constructor(elementRef: ElementRef, postboy: MapPostboyService, mapFactory: MapPlateFactory, registrator: MessageRegistratorService, detector: ChangeDetectorRef);
1082
+ _settings: MapSettings;
1083
+ set settings(value: MapSettings | undefined);
1084
+ private initializeMap;
1085
+ ngAfterViewInit(): void;
1086
+ onDestroy: () => void;
1087
+ private setOsm;
1088
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateComponent, never>;
1089
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapPlateComponent, "art-map-plate", never, { "contentRef": { "alias": "contentRef"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
1090
+ }
1091
+
1092
+ /**
1093
+ * Represents a command to add a custom control to a map.
1094
+ */
1095
+ declare class AddControlCommand extends PostboyGenericMessage {
1096
+ item: MapControl;
1097
+ static readonly ID = "2921fb19-f1c4-4bf4-97be-001f98241f3b";
1098
+ /**
1099
+ * Creates an instance of the class with the specified MapControl object.
1100
+ *
1101
+ * @param {MapControl} item - The MapControl object to be associated with the instance.
1102
+ */
1103
+ constructor(item: MapControl);
1104
+ }
1105
+
1106
+ /**
1107
+ * A command class that represents the action to close a tooltip.
1108
+ */
1109
+ declare class CloseTooltipCommand extends PostboyGenericMessage {
1110
+ tooltipId: string;
1111
+ static readonly ID = "df687e26-7298-46d7-8911-d014801dafac";
1112
+ /**
1113
+ * Creates an instance of the class with the specified tooltip ID.
1114
+ *
1115
+ * @param {string} tooltipId - The unique identifier for the tooltip.
1116
+ */
1117
+ constructor(tooltipId: string);
1118
+ }
1119
+
1120
+ /**
1121
+ * Represents a command to start a drawing operation.
1122
+ */
1123
+ declare class StartDrawingCommand extends PostboyCallbackMessage<string | null> {
1124
+ type: DrawingType;
1125
+ style: StyleLike;
1126
+ format: FeatureOutputFormat;
1127
+ static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
1128
+ /**
1129
+ * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
1130
+ *
1131
+ * @param {DrawingType} type - The type of the drawing to be created.
1132
+ * @param {Style} style - The style defining visual appearance of the drawing.
1133
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
1134
+ */
1135
+ constructor(type: DrawingType, style: StyleLike, format?: FeatureOutputFormat);
1136
+ }
1137
+
1138
+ /**
1139
+ * Represents a command to cancel a drawing action.
1140
+ */
1141
+ declare class CancelDrawingCommand extends PostboyGenericMessage {
1142
+ static readonly ID = "192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de";
1143
+ }
1144
+
1145
+ /**
1146
+ * Class representing a command to draw a selection area with a specific type and style.
1147
+ *
1148
+ * @return {Dictionary<IIdentified[]>} - a collection of features inside the selected area, grouped by a layer's name
1149
+ */
1150
+ declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
1151
+ type: DrawingType;
1152
+ style: Style;
1153
+ ignore: Set<string>;
1154
+ static readonly ID = "06e43f59-c6ba-41bb-9c5b-f6534d914905";
1155
+ /**
1156
+ * Constructs a new instance with the specified type, style, and optional set of ignored items.
1157
+ *
1158
+ * @param {DrawingType} type - The type of drawing to be created.
1159
+ * @param {Style} style - The style information for the drawing.
1160
+ * @param {Set<string>} [ignore=new Set<string>()] - Optional set of items to be ignored.
1161
+ */
1162
+ constructor(type: DrawingType, style: Style, ignore?: Set<string>);
1163
+ }
1164
+
1165
+ /**
1166
+ * Represents a command to modify a feature with a specific style and output format
1167
+ * for a polygonal model.
1168
+ *
1169
+ * @return {string | null} a string representation of the modified feature in the appropriate format
1170
+ */
1171
+ declare class ModifyFeatureCommand extends PostboyCallbackMessage<string | null> {
1172
+ model: PolygonModel;
1173
+ style: StyleLike;
1174
+ format: FeatureOutputFormat;
1175
+ draggable: boolean;
1176
+ static readonly ID = "8f76507e-f18d-4232-bab7-f3d4e3d707bb";
1177
+ /**
1178
+ * Constructs an instance of the class.
1179
+ *
1180
+ * @param {PolygonModel} model - The model representing the polygon data.
1181
+ * @param {StyleLike} style - The style to be applied to the polygon.
1182
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
1183
+ * @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
1184
+ */
1185
+ constructor(model: PolygonModel, style: StyleLike, format?: FeatureOutputFormat, draggable?: boolean);
1186
+ }
1187
+
1188
+ /**
1189
+ * Represents a command to cancel a feature modification.
1190
+ */
1191
+ declare class CancelFeatureModificationCommand extends PostboyGenericMessage {
1192
+ static readonly ID = "e7886353-53b3-4bbe-93b5-6490e5f1305e";
1193
+ }
1194
+
1195
+ /**
1196
+ * Represents a command to remove a map control from the map.
1197
+ *
1198
+ * The command is identified by a unique static ID, and it requires a MapControl item
1199
+ * to specify the control to be removed.
1200
+ *
1201
+ * @extends PostboyGenericMessage
1202
+ */
1203
+ declare class RemoveControlCommand extends PostboyGenericMessage {
1204
+ item: MapControl;
1205
+ static readonly ID = "73bcb4f5-ce7d-4c71-b70d-e772100136a1";
1206
+ /**
1207
+ * Constructs an instance of the class.
1208
+ *
1209
+ * @param {MapControl} item - The map control instance to be removed.
1210
+ */
1211
+ constructor(item: MapControl);
1212
+ }
1213
+
1214
+ /**
1215
+ * Forces map to move to a specific point
1216
+ */
1217
+ declare class SetMapCenterCommand extends PostboyGenericMessage {
1218
+ lat: number;
1219
+ lng: number;
1220
+ zoom?: number | undefined;
1221
+ static readonly ID = "d4e3cf4f-0be7-4c1a-8355-8607d02c3dea";
1222
+ /**
1223
+ *
1224
+ * @param lat - the desired latitude
1225
+ * @param lng - the desired longitude
1226
+ * @param zoom - the desired zoom; doesn't change zoom if undefined
1227
+ */
1228
+ constructor(lat: number, lng: number, zoom?: number | undefined);
1229
+ }
1230
+
1231
+ /**
1232
+ * FitToPolygonsCommand is a command used to fit a given set of polygon features
1233
+ * to the viewable area, optionally applying a zoom transformation afterwards.
1234
+ */
1235
+ declare class FitToPolygonsCommand extends PostboyGenericMessage {
1236
+ features: PolygonModel[];
1237
+ zoomAfter: number;
1238
+ static readonly ID = "308394ce-48d3-45f5-8671-52207fba4be3";
1239
+ /**
1240
+ * Creates an instance of the class with specified polygon features and an optional zoom level.
1241
+ *
1242
+ * @param {PolygonModel[]} features - An array of polygon models to fit to.
1243
+ * @param {number} [zoomAfter=0] - Optional zoom level change to apply after initialization. Defaults to 0.
1244
+ */
1245
+ constructor(features: PolygonModel[], zoomAfter?: number);
1246
+ }
1247
+
1248
+ /**
1249
+ * Represents an event triggered when a map rendering process is completed.
1250
+ */
1251
+ declare class MapRenderedEvent extends PostboyGenericMessage {
1252
+ map: Map;
1253
+ static readonly ID = "4515dde8-1519-4e3f-a0e3-10d3c52deabe";
1254
+ /**
1255
+ * Constructor for creating an instance of the class.
1256
+ *
1257
+ * @param {Map} map - The map instance to be used by the class.
1258
+ */
1259
+ constructor(map: Map);
1260
+ }
1261
+
1262
+ /**
1263
+ * Represents an event that is triggered when the movement of a map ends.
1264
+ * This class is used to capture the final position of a map after a movement operation.
1265
+ *
1266
+ * @property {MapPosition | null} position - The final position of the map after movement ends. Can be null.
1267
+ */
1268
+ declare class MapMoveEndEvent extends PostboyGenericMessage {
1269
+ position: MapPosition | null;
1270
+ static readonly ID = "d210ec7e-032f-4ce8-8a39-7b816519eaae";
1271
+ constructor(position: MapPosition | null);
1272
+ }
1273
+
1274
+ /**
1275
+ * Represents an event that is triggered when the pointer moves on a map.
1276
+ * This class extends PostboyGenericMessage.
1277
+ *
1278
+ * It contains information about the coordinates of the pointer when the event occurs.
1279
+ */
1280
+ declare class MapPointerMoveEvent extends PostboyGenericMessage {
1281
+ point: Array<number>;
1282
+ static readonly ID = "193cb41d-2489-45cc-b349-59c3ec18ed72";
1283
+ /**
1284
+ * Constructor for initializing an instance with a given point.
1285
+ *
1286
+ * @param {Array<number>} point - An array representing the coordinates of the point.
1287
+ */
1288
+ constructor(point: Array<number>);
1289
+ }
1290
+
1291
+ /**
1292
+ * Represents an event triggered when a map feature is hovered over.
1293
+ * This event contains information about the hovered feature and its associated layer.
1294
+ * Extends the PostboyGenericMessage class.
1295
+ */
1296
+ declare class MapFeatureHoveredEvent extends PostboyGenericMessage {
1297
+ feature: Feature | null;
1298
+ layer: string | null;
1299
+ static readonly ID = "eb9b032a-1616-4823-a628-0fd8ffc3b57a";
1300
+ /**
1301
+ * Constructs an instance of the class.
1302
+ *
1303
+ * @param {Feature|null} feature - The feature associated with this instance. Can be null.
1304
+ * @param {string|null} layer - The layer associated with this instance. Can be null.
1305
+ */
1306
+ constructor(feature: Feature | null, layer: string | null);
1307
+ }
1308
+
1309
+ /**
1310
+ * A class responsible for executing filtering of geographical features
1311
+ * based on a specific geographical point (latitude and longitude).
1312
+ *
1313
+ * @template Feature - A geographical feature that is processed by the executor.
1314
+ * @template Geometry - The type of geometry associated with the feature.
1315
+ */
1316
+ declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Feature<Geometry>[]> {
1317
+ lat: number;
1318
+ lng: number;
1319
+ features: Feature<Geometry>[];
1320
+ static readonly ID = "dcbb156d-def3-45b4-91af-84d1483d8941";
1321
+ /**
1322
+ * Constructs a new instance with the specified latitude, longitude, and features.
1323
+ *
1324
+ * @param {number} lat - The latitude coordinate.
1325
+ * @param {number} lng - The longitude coordinate.
1326
+ * @param {Feature<Geometry>[]} features - The array of features associated with the location.
1327
+ */
1328
+ constructor(lat: number, lng: number, features: Feature<Geometry>[]);
1329
+ }
1330
+
1331
+ /**
1332
+ * A class that extends the PostboyExecutor to filter geographical features within a specified area.
1333
+ * This class is designed to process a list of input features and determine which of them are located inside the provided area geometry.
1334
+ *
1335
+ * Parameters:
1336
+ * - `area`: A Geometry object defining the area to filter geographical features.
1337
+ * - `features`: An array of geographical features, represented as `Feature<Geometry>` objects, to be filtered by their presence within the specified area.
1338
+ */
1339
+ declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
1340
+ area: Geometry;
1341
+ features: Feature<Geometry>[];
1342
+ static readonly ID = "4d26e1e3-e60f-4e49-804b-5b3eadc2adce";
1343
+ constructor(area: Geometry, features: Feature<Geometry>[]);
1344
+ }
1345
+
1346
+ /**
1347
+ * An executor responsible for calculating the area of a given polygon.
1348
+ *
1349
+ * Use this class to manage and execute area-calculation logic for a polygon.
1350
+ *
1351
+ * @return {number} - the spherical area (in square meters)
1352
+ */
1353
+ declare class CalculateAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
1354
+ polygon: PolygonModel;
1355
+ static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
1356
+ constructor(polygon: PolygonModel);
1357
+ }
1358
+
1359
+ /**
1360
+ * A message that allows to get the current state of the map.
1361
+ * If the map's state is not defined yet, the executor would return null
1362
+ * @returns {MapPosition | null}
1363
+ */
1364
+ declare class GetMapPositionExecutor extends PostboyExecutor<MapPosition | null> {
1365
+ static readonly ID = "52c95689-d09b-4082-ba58-9183ea96a213";
1366
+ constructor();
1367
+ }
1368
+
1369
+ declare class PolygonSelfIntersectionExecutor extends PostboyGenericMessage {
1370
+ polygon: PolygonModel;
1371
+ static readonly ID = "a4ef116d-fe40-4e92-9d4a-653f8b398c62";
1372
+ constructor(polygon: PolygonModel);
1373
+ }
1374
+
1375
+ /**
1376
+ * Class representing a query to get features within a specified geographical area.
1377
+ * The query optionally takes a set of layer names to ignore during the operation.
1378
+ */
1379
+ declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
1380
+ area: Geometry;
1381
+ ignore: Set<string>;
1382
+ static readonly ID = "317cf427-a029-4a43-97c4-cb6b8148ff65";
1383
+ /**
1384
+ * Constructor to initialize the object with a Geometry instance and an optional set of strings to ignore.
1385
+ *
1386
+ * @param {Geometry} area - The Geometry object used to define the area.
1387
+ * @param {Set<string>} [ignore] - An optional set of layer names that will be ignored. Defaults to an empty set.
1388
+ */
1389
+ constructor(area: Geometry, ignore?: Set<string>);
1390
+ }
1391
+
1392
+ /**
1393
+ * Represents a query to retrieve features located at a specific geographical point.
1394
+ * The query is defined by latitude, longitude, and an optional set of features to ignore.
1395
+ */
1396
+ declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
1397
+ lat: number;
1398
+ lng: number;
1399
+ ignore: Set<string>;
1400
+ static readonly ID = "99bbc56f-34a2-4064-8300-13bb3d0662c1";
1401
+ /**
1402
+ * Constructor for initializing a geographic coordinate object.
1403
+ *
1404
+ * @param {number} lat - The latitude of the location.
1405
+ * @param {number} lng - The longitude of the location.
1406
+ * @param {Set<string>} [ignore=new Set<string>()] - An optional set of strings to ignore during processing.
1407
+ */
1408
+ constructor(lat: number, lng: number, ignore?: Set<string>);
1409
+ }
1410
+
1411
+ declare class FitToFeaturesCommand extends PostboyGenericMessage {
1412
+ features: Feature<Geometry>[];
1413
+ zoomAfter: number;
1414
+ static readonly ID = "04d67609-0b4c-4f52-aa53-ad0a3db967dc";
1415
+ constructor(features: Feature<Geometry>[], zoomAfter?: number);
1416
+ }
1417
+
1418
+ declare class GetGeometryLengthExecutor extends PostboyExecutor<number> {
1419
+ geometry: Geometry;
1420
+ projection: string;
1421
+ static readonly ID = "763146df-6d93-4dc2-a532-0e9ba2b2d023";
1422
+ constructor(geometry: Geometry, projection?: string);
1423
+ }
1424
+
1425
+ /**
1426
+ * MarkersComponent is a component that displays markers on a map.
1427
+ * It listens for changes in the `markers` input property and
1428
+ * automatically puts the markers on the map using the MapPostboyService.
1429
+ */
1430
+ declare class MarkersComponent extends DestructibleComponent implements OnInit {
1431
+ private postboy;
1432
+ layerName: string;
1433
+ constructor(postboy: MapPostboyService);
1434
+ _markers: MarkerModel[];
1435
+ /**
1436
+ * Sets the markers property.
1437
+ *
1438
+ * @param {MarkerModel[]} value - The array of MarkerModel objects to set as markers.
1439
+ */
1440
+ set markers(value: MarkerModel[]);
1441
+ ngOnInit(): void;
1442
+ private putMarkers;
1443
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkersComponent, never>;
1444
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkersComponent, "art-markers", never, { "layerName": { "alias": "layerName"; "required": false; }; "markers": { "alias": "markers"; "required": false; }; }, {}, never, never, true, never>;
1445
+ }
1446
+
1447
+ /**
1448
+ * Component for rendering polygons on a map.
1449
+ * It listens for changes in the `polygons` input property and
1450
+ * automatically puts the polygons on the map using the MapPostboyService.
1451
+ */
1452
+ declare class PolygonsComponent extends DestructibleComponent implements OnInit {
1453
+ private postboy;
1454
+ layerName: string;
1455
+ constructor(postboy: MapPostboyService);
1456
+ _polygons: PolygonModel[];
1457
+ /**
1458
+ * Sets the value of polygons.
1459
+ *
1460
+ * @param {PolygonModel[]} value - The new value for polygons.
1461
+ */
1462
+ set polygons(value: PolygonModel[]);
1463
+ ngOnInit(): void;
1464
+ private putPolygons;
1465
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolygonsComponent, never>;
1466
+ static ɵcmp: i0.ɵɵComponentDeclaration<PolygonsComponent, "art-polygons", never, { "layerName": { "alias": "layerName"; "required": false; }; "polygons": { "alias": "polygons"; "required": false; }; }, {}, never, never, true, never>;
1467
+ }
1468
+
1469
+ /**
1470
+ * Helper class to create and modify marker styles.
1471
+ */
1472
+ declare class MarkerStyleHelper {
1473
+ /**
1474
+ * Creates a new Style object from an SVG.
1475
+ * @param {string} svg - The SVG string.
1476
+ * @param {Array<number>} [size=[30, 30]] - The size of the icon image.
1477
+ * @param {number} [zIndex=400] - The zIndex of the style.
1478
+ * @returns {Style} A new Style object.
1479
+ */
1480
+ static fromSvg(svg: string, size?: [number, number], zIndex?: number): Style;
1481
+ /**
1482
+ * Returns a Style object with a circle style.
1483
+ *
1484
+ * @param {number} radius - The radius of the circle.
1485
+ * @param {string} fill - The fill color of the circle. Format: '#RRGGBB' or 'rgba(R, G, B, A)'.
1486
+ * @param {string} strokeColor - The stroke color of the circle. Format: '#RRGGBB' or 'rgba(R, G, B, A)'.
1487
+ * @param {number} [strokeWidth=1] - The width of the stroke. Default is 1.
1488
+ * @returns {Style} - A Style object with a Circle image.
1489
+ */
1490
+ static circle(radius: number, fill: string, strokeColor: string, strokeWidth?: number): Style;
1491
+ /**
1492
+ * Applies the given Text to the provided Style.
1493
+ *
1494
+ * @param {Style} style - The Style to modify.
1495
+ * @param {Text} text - The Text to apply to the Style.
1496
+ * @return {Style} - The modified Style with the applied Text.
1497
+ */
1498
+ static withText(style: Style, text: Text): Style;
1499
+ }
1500
+
1501
+ /**
1502
+ * A helper class for creating polygon styles.
1503
+ * @class
1504
+ */
1505
+ declare class PolygonStyleHelper {
1506
+ /**
1507
+ * Creates a Style object with the given fill color, stroke color, and stroke width.
1508
+ *
1509
+ * @param {string} fill - The fill color in hexadecimal or RGB format.
1510
+ * @param {string} stroke - The stroke color in hexadecimal or RGB format.
1511
+ * @param {number} [strokeWidth=1] - The width of the stroke. Defaults to 1.
1512
+ * @return {Style} The created Style object.
1513
+ */
1514
+ static simple(fill: string, stroke: string, strokeWidth?: number): Style;
1515
+ /**
1516
+ * Creates a new Style object with the given fill, stroke, stroke width, and pin radius.
1517
+ *
1518
+ * @param {string} fill - The color to use for the fill of the style.
1519
+ * @param {string} stroke - The color to use for the stroke of the style.
1520
+ * @param {number} [strokeWidth=1] - The width of the stroke. Defaults to 1.
1521
+ * @param {number} [pinRadius=5] - The radius of the circle used as the image for the style. Defaults to 5.
1522
+ * @returns {Style} - The newly created Style object.
1523
+ */
1524
+ static edit(fill: string, stroke: string, strokeWidth?: number, pinRadius?: number): Style;
1525
+ }
1526
+
1527
+ /**
1528
+ * Helper class for creating text styles.
1529
+ */
1530
+ declare class TextStyleHelper {
1531
+ /**
1532
+ * Creates and returns a new Text instance with specified styling properties.
1533
+ *
1534
+ * @param {string} text - The text content to display.
1535
+ * @param {string} font - The font style to use for the text.
1536
+ * @param {string} color - The color of the text.
1537
+ * @param {string|null|undefined} [backColor] - The background color of the text. Optional.
1538
+ * @param {number[]|null|undefined} [padding] - The padding around the text in pixels. Optional.
1539
+ * @param {string|null|undefined} [textBaseline] - The text baseline alignment. Optional.
1540
+ * @param {number|null|undefined} [offsetY] - The vertical offset for the text. Optional.
1541
+ * @return {Text} A new Text instance configured with the specified properties.
1542
+ */
1543
+ static get(text: string, font: string, color: string, backColor?: string | null, padding?: number[] | null, textBaseline?: 'bottom' | 'top' | 'middle' | 'alphabetic' | 'hanging' | 'ideographic' | null, offsetY?: number | null): Text;
1544
+ }
1545
+
1546
+ /**
1547
+ * A helper class for converting and stringify features.
1548
+ */
1549
+ declare class StringifyFeatureHelper {
1550
+ static polygon(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
1551
+ /**
1552
+ * Creates a polygon feature representing a circle based on a given feature with a circle geometry.
1553
+ *
1554
+ * @param {Feature<Geometry>} feature - The input feature with a circle geometry.
1555
+ * @param {FeatureOutputFormat} format - The format for outputting the polygon feature. (default: FeatureOutputFormat.GeoJson)
1556
+ *
1557
+ * @return {string} - The string representation of the polygon feature.
1558
+ */
1559
+ static circle(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
1560
+ /**
1561
+ * Draw a circle based on a center point and radius.
1562
+ *
1563
+ * @param {number[]} point - The center point coordinates in EPSG:4326 format.
1564
+ * @param {number} radius - The radius of the circle in meters.
1565
+ * @return {Coordinate[][]} - The coordinates of the circle boundary in EPSG:4326 format.
1566
+ */
1567
+ private static drawCircle;
1568
+ }
1569
+
1570
+ /**
1571
+ * Represents the settings for a zoom control.
1572
+ */
1573
+ declare class ZoomControlSettings {
1574
+ /**
1575
+ * The CSS class name of the control element.
1576
+ *
1577
+ * @type {string}
1578
+ */
1579
+ controlClass: string;
1580
+ /**
1581
+ * The CSS class name for zoom in button.
1582
+ * @type {string}
1583
+ */
1584
+ zoomInClass: string;
1585
+ /**
1586
+ * The CSS class name for the zoom out button element.
1587
+ *
1588
+ * @type {string}
1589
+ */
1590
+ zoomOutClass: string;
1591
+ /**
1592
+ * The label for the zoom in action.
1593
+ *
1594
+ * @type {string}
1595
+ */
1596
+ zoomInLabel: string;
1597
+ /**
1598
+ * The label for the zoom out control.
1599
+ *
1600
+ * @type {string}
1601
+ */
1602
+ zoomOutLabel: string;
1603
+ /**
1604
+ * Copies the provided ZoomControlSettings object.
1605
+ *
1606
+ * @param {ZoomControlSettings} model - The ZoomControlSettings object to be copied.
1607
+ * @return {ZoomControlSettings} - The copied ZoomControlSettings object.
1608
+ */
1609
+ static copy(model: ZoomControlSettings): ZoomControlSettings;
1610
+ /**
1611
+ * Checks if the current ZoomControlSettings object is equal to the given model.
1612
+ *
1613
+ * @param {ZoomControlSettings} model - The ZoomControlSettings object to compare with.
1614
+ *
1615
+ * @return {boolean} - true if the current object is equal to the given model, false otherwise.
1616
+ */
1617
+ isSame(model: ZoomControlSettings): boolean;
1618
+ /**
1619
+ * Sets the zoom in label of the Zoom Control Settings.
1620
+ *
1621
+ * @param {string} zoomInLabel - The label for the zoom in button.
1622
+ * @return {ZoomControlSettings} - The new Zoom Control Settings object with the updated zoom in label.
1623
+ */
1624
+ setZoomInLabel(zoomInLabel: string): ZoomControlSettings;
1625
+ /**
1626
+ * Sets the zoomOutClass property of the ZoomControlSettings object.
1627
+ *
1628
+ * @param {string} zoomOutClass - The CSS class to be assigned to the zoom out button.
1629
+ * @return {ZoomControlSettings} - The updated ZoomControlSettings object with the new zoomOutClass value.
1630
+ */
1631
+ setZoomOutClass(zoomOutClass: string): ZoomControlSettings;
1632
+ /**
1633
+ * Sets the zoom in class for the zoom control settings.
1634
+ *
1635
+ * @param {string} zoomInClass - The new zoom in class to be set.
1636
+ * @return {ZoomControlSettings} - The updated zoom control settings.
1637
+ */
1638
+ setZoomInClass(zoomInClass: string): ZoomControlSettings;
1639
+ /**
1640
+ * Set the label for the zoom out control.
1641
+ *
1642
+ * @param {string} zoomOutLabel - The label for the zoom out control.
1643
+ * @returns {ZoomControlSettings} - The updated zoom control settings.
1644
+ */
1645
+ setZoomOutLabel(zoomOutLabel: string): ZoomControlSettings;
1646
+ /**
1647
+ * Sets the control class for the ZoomControlSettings.
1648
+ *
1649
+ * @param {string} controlClass - The class name of the control to be set.
1650
+ *
1651
+ * @return {ZoomControlSettings} - The modified ZoomControlSettings object.
1652
+ */
1653
+ setControlClass(controlClass: string): ZoomControlSettings;
1654
+ }
1655
+
1656
+ /**
1657
+ * @class
1658
+ * @classdesc Represents a component for the Zoom control on a map.
1659
+ * @extends DestructibleComponent
1660
+ * @implements OnInit
1661
+ */
1662
+ declare class MapControlZoomComponent extends DestructibleComponent implements OnInit {
1663
+ private postboy;
1664
+ private map?;
1665
+ private control?;
1666
+ constructor(postboy: MapPostboyService);
1667
+ private _settings;
1668
+ /**
1669
+ * Sets the settings for the Zoom Control.
1670
+ *
1671
+ * @param {ZoomControlSettings | undefined} value - The new settings for the Zoom Control.
1672
+ *
1673
+ * @description
1674
+ * This method sets the settings for the Zoom Control. It takes a parameter `value` which should be an object of type `ZoomControlSettings` or `undefined`.
1675
+ *
1676
+ * If the `value` is `undefined` or the same as the current settings, the method will return without making any changes.
1677
+ *
1678
+ */
1679
+ set settings(value: ZoomControlSettings | undefined);
1680
+ ngOnInit(): void;
1681
+ onDestroy: () => void;
1682
+ private setControl;
1683
+ private eliminate;
1684
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapControlZoomComponent, never>;
1685
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapControlZoomComponent, "art-map-control-zoom", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
1686
+ }
1687
+
1688
+ declare class TooltipSettings {
1689
+ readonly id: string;
1690
+ containerClass: string;
1691
+ constructor(id?: string);
1692
+ static copy(model: TooltipSettings): TooltipSettings;
1693
+ show: (ev: MapClickEvent) => boolean;
1694
+ setShow(show: (ev: MapClickEvent) => boolean): TooltipSettings;
1695
+ setClass(containerClass: string): TooltipSettings;
1696
+ isSame(model: TooltipSettings): boolean;
1697
+ }
1698
+
1699
+ declare class TooltipComponent extends DestructibleComponent implements OnInit {
1700
+ private postboy;
1701
+ private detector;
1702
+ contentRef: i0.InputSignal<TemplateRef<any>>;
1703
+ container: ElementRef<HTMLElement>;
1704
+ overlay?: Overlay;
1705
+ show: boolean;
1706
+ private map?;
1707
+ constructor(postboy: MapPostboyService, detector: ChangeDetectorRef);
1708
+ _settings: TooltipSettings;
1709
+ set settings(value: TooltipSettings | undefined);
1710
+ ngOnInit(): void;
1711
+ addOverlay(coordinates: number[]): void;
1712
+ options: (coordinates: number[]) => Options$1;
1713
+ private observeMapClick;
1714
+ private observeClose;
1715
+ private observeMapRender;
1716
+ private removeOverlay;
1717
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
1718
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "art-tooltip", never, { "contentRef": { "alias": "contentRef"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
1719
+ }
1720
+
1721
+ export { AddControlCommand, CalculateAreaExecutor, CancelDrawingCommand, CancelFeatureModificationCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, FilterFeaturesInAreaExecutor, FilterFeaturesInPointExecutor, FitToFeaturesCommand, FitToPolygonsCommand, GetFeaturesInAreaQuery, GetFeaturesInPointQuery, GetGeometryLengthExecutor, GetMapPositionExecutor, ImageLayerComponent, ImageLayerSettings, MapClickEvent, MapConstants, MapControl, MapControlZoomComponent, MapFeatureHoveredEvent, MapLyrs, MapLyrsLabel, MapMoveEndEvent, MapPlateComponent, MapPointerMoveEvent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, ModifyFeatureCommand, OsmTileLayerComponent, PolygonModel, PolygonSelfIntersectionExecutor, PolygonStyleHelper, PolygonsComponent, RasterTileLayerComponent, RasterTileLayerSettings, RemoveControlCommand, SetMapCenterCommand, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings, ZoomControlSettings };
1722
+ export type { MapPosition };