@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
@@ -1,119 +0,0 @@
1
- export declare class RasterTileLayerSettings {
2
- /**
3
- * The maximum zoom level for a map view.
4
- *
5
- * @type {number}
6
- * @default 19
7
- */
8
- maxZoom: number;
9
- /**
10
- * The minimum zoom level allowed.
11
- *
12
- * @type {number}
13
- */
14
- minZoom: number;
15
- /**
16
- * The opacity of an element.
17
- *
18
- * @type {number}
19
- * @default 0.6
20
- */
21
- opacity: number;
22
- /**
23
- * Represents the tiles URL.
24
- * @typedef {string} url
25
- *
26
- * @example
27
- * 'https://example.ex/{z}/{x}/{y}.png'
28
- */
29
- url: string;
30
- /**
31
- * The projection of the coordinate system.
32
- *
33
- * @type {string}
34
- * @default 'EPSG:3857'
35
- */
36
- projection: string;
37
- /**
38
- * Additional headers that should be added to each tile request
39
- *
40
- * @type {Record<string, string>}
41
- * @default An empty array
42
- */
43
- requestHeaders: Record<string, string> | null;
44
- /**
45
- * The priority of showing - layers with higher zIndex cover others in case of collisions
46
- */
47
- zIndex: number;
48
- operation: (data: number[][] | ImageData[]) => number[] | ImageData;
49
- /**
50
- * Creates a copy of the given tile layer settings.
51
- *
52
- * @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
53
- * @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
54
- */
55
- static copy(model: RasterTileLayerSettings): RasterTileLayerSettings;
56
- /**
57
- * Sets the URL of the RasterTileLayerSettings object.
58
- *
59
- * @param {string} url - The URL to be set.
60
- * @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
61
- */
62
- setUrl(url: string): RasterTileLayerSettings;
63
- /**
64
- * Sets the operation to apply on raster tile data.
65
- *
66
- * @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.
67
- * @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
68
- */
69
- setOperation(operation: (data: number[][] | ImageData[]) => number[] | ImageData): RasterTileLayerSettings;
70
- /**
71
- * Sets the requestHeaders of the RasterTileLayerSettings object.
72
- *
73
- * @param {Record<string, string>} requestHeaders - The headers which should be provided.
74
- * @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
75
- */
76
- setRequestHeaders(requestHeaders: Record<string, string>): RasterTileLayerSettings;
77
- /**
78
- * Sets the maximum zoom level for the tile layer.
79
- *
80
- * @param {number} maxZoom - The maximum zoom level.
81
- * @returns {RasterTileLayerSettings} - The updated tile layer settings object.
82
- */
83
- setMaxZoom(maxZoom: number): RasterTileLayerSettings;
84
- /**
85
- * Sets the z-index for the RasterTileLayerSettings.
86
- *
87
- * @param {number} zIndex - The new z-index to be assigned.
88
- * @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
89
- */
90
- setZIndex(zIndex: number): RasterTileLayerSettings;
91
- /**
92
- * Sets the minimum zoom level for the Tile Layer.
93
- *
94
- * @param {number} minZoom - The minimum zoom level to be set.
95
- * @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
96
- */
97
- setMinZoom(minZoom: number): RasterTileLayerSettings;
98
- /**
99
- * Sets the opacity of the RasterTileLayerSettings.
100
- *
101
- * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
102
- * @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
103
- */
104
- setOpacity(opacity: number): RasterTileLayerSettings;
105
- /**
106
- * Sets the projection for the tile layer settings.
107
- *
108
- * @param {string} projection - The desired projection for the tile layer settings.
109
- * @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
110
- */
111
- setProjection(projection: string): RasterTileLayerSettings;
112
- /**
113
- * Checks if the current instance of RasterTileLayerSettings is equal to the given model.
114
- * @param {RasterTileLayerSettings} model - The model to compare against.
115
- * @return {boolean} - True if all properties of the current instance matches the properties of the model;
116
- * otherwise, false.
117
- */
118
- isSame(model: RasterTileLayerSettings): boolean;
119
- }
@@ -1,21 +0,0 @@
1
- import { DestructibleComponent } from '../../../common/destructible.component';
2
- import { XYZ } from 'ol/source';
3
- import TileLayer from 'ol/layer/Tile';
4
- import { MapPostboyService } from '../../../services/map-postboy.service';
5
- import { TileLayerFactory } from './tile-layer.factory';
6
- import { TileLayerSettings } from './tile-layer.settings';
7
- import * as i0 from "@angular/core";
8
- export declare class TileLayerComponent extends DestructibleComponent {
9
- private postboy;
10
- private factory;
11
- layer?: TileLayer<XYZ>;
12
- constructor(postboy: MapPostboyService, factory: TileLayerFactory);
13
- _settings: TileLayerSettings;
14
- set settings(value: TileLayerSettings | undefined);
15
- ngOnInit(): void;
16
- onDestroy: () => void;
17
- private initLayer;
18
- private removeLayer;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "art-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
21
- }
@@ -1,12 +0,0 @@
1
- import { XYZ } from 'ol/source';
2
- import { TileLayerSettings } from './tile-layer.settings';
3
- import TileLayer from 'ol/layer/Tile';
4
- import * as i0 from "@angular/core";
5
- export declare class TileLayerFactory {
6
- build(settings: TileLayerSettings): TileLayer<XYZ>;
7
- private getTileFunc;
8
- private tileLoader;
9
- private getNormalizedCoord;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerFactory, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<TileLayerFactory>;
12
- }
@@ -1,103 +0,0 @@
1
- /**
2
- * Class representing settings for a tile layer.
3
- */
4
- export declare class TileLayerSettings {
5
- /**
6
- * The maximum zoom level for a map view.
7
- *
8
- * @type {number}
9
- * @default 19
10
- */
11
- maxZoom: number;
12
- /**
13
- * The minimum zoom level allowed.
14
- *
15
- * @type {number}
16
- */
17
- minZoom: number;
18
- /**
19
- * The opacity of an element.
20
- *
21
- * @type {number}
22
- * @default 0.6
23
- */
24
- opacity: number;
25
- /**
26
- * Represents the tiles URL.
27
- * @typedef {string} url
28
- *
29
- * @example
30
- * 'https://example.ex/{z}/{x}/{y}.png'
31
- */
32
- url: string;
33
- /**
34
- * The projection of the coordinate system.
35
- *
36
- * @type {string}
37
- * @default 'EPSG:3857'
38
- */
39
- projection: string;
40
- /**
41
- * Additional headers that should be added to each tile request
42
- *
43
- * @type {Record<string, string>}
44
- * @default An empty array
45
- */
46
- requestHeaders: Record<string, string> | null;
47
- /**
48
- * Creates a copy of the given tile layer settings.
49
- *
50
- * @param {TileLayerSettings} model - The tile layer settings to be copied.
51
- * @return {TileLayerSettings} - A new instance of TileLayerSettings with the same properties as the model.
52
- */
53
- static copy(model: TileLayerSettings): TileLayerSettings;
54
- /**
55
- * Sets the URL of the TileLayerSettings object.
56
- *
57
- * @param {string} url - The URL to be set.
58
- * @return {TileLayerSettings} - The updated TileLayerSettings object.
59
- */
60
- setUrl(url: string): TileLayerSettings;
61
- /**
62
- * Sets the requestHeaders of the TileLayerSettings object.
63
- *
64
- * @param {Record<string, string>} requestHeaders - The headers which should be provided.
65
- * @return {TileLayerSettings} - The updated TileLayerSettings object.
66
- */
67
- setRequestHeaders(requestHeaders: Record<string, string>): TileLayerSettings;
68
- /**
69
- * Sets the maximum zoom level for the tile layer.
70
- *
71
- * @param {number} maxZoom - The maximum zoom level.
72
- * @returns {TileLayerSettings} - The updated tile layer settings object.
73
- */
74
- setMaxZoom(maxZoom: number): TileLayerSettings;
75
- /**
76
- * Sets the minimum zoom level for the Tile Layer.
77
- *
78
- * @param {number} minZoom - The minimum zoom level to be set.
79
- * @return {TileLayerSettings} The modified TileLayerSettings object with the updated minimum zoom level.
80
- */
81
- setMinZoom(minZoom: number): TileLayerSettings;
82
- /**
83
- * Sets the opacity of the TileLayerSettings.
84
- *
85
- * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
86
- * @return {TileLayerSettings} - A new instance of TileLayerSettings with the opacity set.
87
- */
88
- setOpacity(opacity: number): TileLayerSettings;
89
- /**
90
- * Sets the projection for the tile layer settings.
91
- *
92
- * @param {string} projection - The desired projection for the tile layer settings.
93
- * @return {TileLayerSettings} - The updated tile layer settings with the new projection.
94
- */
95
- setProjection(projection: string): TileLayerSettings;
96
- /**
97
- * Checks if the current instance of TileLayerSettings is equal to the given model.
98
- * @param {TileLayerSettings} model - The model to compare against.
99
- * @return {boolean} - True if all properties of the current instance matches the properties of the model;
100
- * otherwise, false.
101
- */
102
- isSame(model: TileLayerSettings): boolean;
103
- }
@@ -1,30 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, TemplateRef } from '@angular/core';
2
- import { MapSettings } from '../models';
3
- import Map from 'ol/Map';
4
- import { DestructibleComponent } from '../common/destructible.component';
5
- import { MessageRegistratorService } from '../services/message-registrator.service';
6
- import { MapPostboyService } from '../services/map-postboy.service';
7
- import { MapPlateFactory } from './map-plate.factory.service';
8
- import { FeatureLayerSettings } from './layers';
9
- import * as i0 from "@angular/core";
10
- export declare class MapPlateComponent extends DestructibleComponent implements AfterViewInit {
11
- private elementRef;
12
- private postboy;
13
- private mapFactory;
14
- private registrator;
15
- private detector;
16
- contentRef: import("@angular/core").InputSignal<TemplateRef<any>>;
17
- private renderTryCount;
18
- map: Map;
19
- osmUrl: string;
20
- drawingLayerSettings: FeatureLayerSettings;
21
- constructor(elementRef: ElementRef, postboy: MapPostboyService, mapFactory: MapPlateFactory, registrator: MessageRegistratorService, detector: ChangeDetectorRef);
22
- _settings: MapSettings;
23
- set settings(value: MapSettings | undefined);
24
- private initializeMap;
25
- ngAfterViewInit(): void;
26
- onDestroy: () => void;
27
- private setOsm;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateComponent, never>;
29
- 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>;
30
- }
@@ -1,8 +0,0 @@
1
- import Map from 'ol/Map';
2
- import { MapSettings } from '../models';
3
- import * as i0 from "@angular/core";
4
- export declare class MapPlateFactory {
5
- build(settings: MapSettings): Map;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MapPlateFactory>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './tooltip/tooltip.component';
2
- export * from './tooltip/tooltip.settings';
@@ -1,27 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, OnInit, TemplateRef } from '@angular/core';
2
- import { TooltipSettings } from './tooltip.settings';
3
- import { DestructibleComponent } from '../../../common/destructible.component';
4
- import { MapPostboyService } from '../../../services/map-postboy.service';
5
- import Overlay, { Options as OverlayOptions } from 'ol/Overlay';
6
- import * as i0 from "@angular/core";
7
- export declare class TooltipComponent extends DestructibleComponent implements OnInit {
8
- private postboy;
9
- private detector;
10
- contentRef: import("@angular/core").InputSignal<TemplateRef<any>>;
11
- container: ElementRef<HTMLElement>;
12
- overlay?: Overlay;
13
- show: boolean;
14
- private map?;
15
- constructor(postboy: MapPostboyService, detector: ChangeDetectorRef);
16
- _settings: TooltipSettings;
17
- set settings(value: TooltipSettings | undefined);
18
- ngOnInit(): void;
19
- addOverlay(coordinates: number[]): void;
20
- options: (coordinates: number[]) => OverlayOptions;
21
- private observeMapClick;
22
- private observeClose;
23
- private observeMapRender;
24
- private removeOverlay;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "art-tooltip", never, { "contentRef": { "alias": "contentRef"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
27
- }
@@ -1,11 +0,0 @@
1
- import { MapClickEvent } from '../../../messages';
2
- export declare class TooltipSettings {
3
- readonly id: string;
4
- containerClass: string;
5
- constructor(id?: string);
6
- static copy(model: TooltipSettings): TooltipSettings;
7
- show: (ev: MapClickEvent) => boolean;
8
- setShow(show: (ev: MapClickEvent) => boolean): TooltipSettings;
9
- setClass(containerClass: string): TooltipSettings;
10
- isSame(model: TooltipSettings): boolean;
11
- }
@@ -1,15 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import { MapControl } from '../../models/map-control';
3
- /**
4
- * Represents a command to add a custom control to a map.
5
- */
6
- export declare class AddControlCommand extends PostboyGenericMessage {
7
- item: MapControl;
8
- static readonly ID = "2921fb19-f1c4-4bf4-97be-001f98241f3b";
9
- /**
10
- * Creates an instance of the class with the specified MapControl object.
11
- *
12
- * @param {MapControl} item - The MapControl object to be associated with the instance.
13
- */
14
- constructor(item: MapControl);
15
- }
@@ -1,8 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import Static from 'ol/source/ImageStatic';
3
- import ImageLayer from 'ol/layer/Image';
4
- export declare class AddImageLayerCommand extends PostboyGenericMessage {
5
- layer: ImageLayer<Static>;
6
- static readonly ID = "70f9b86f-8bc2-4f28-ae79-a13fc0b1ee5d";
7
- constructor(layer: ImageLayer<Static>);
8
- }
@@ -1,9 +0,0 @@
1
- import { Vector as Layer } from 'ol/layer';
2
- import VectorSource from 'ol/source/Vector';
3
- import Cluster from 'ol/source/Cluster';
4
- import { PostboyGenericMessage } from '@artstesh/postboy';
5
- export declare class AddLayerCommand extends PostboyGenericMessage {
6
- layer: Layer<VectorSource<any> | Cluster>;
7
- static readonly ID = "7fe68d71-350f-47e2-b1ae-62cc333e1572";
8
- constructor(layer: Layer<VectorSource<any> | Cluster>);
9
- }
@@ -1,8 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import ImageLayer from 'ol/layer/Image';
3
- import { Raster } from 'ol/source';
4
- export declare class AddRasterTileCommand extends PostboyGenericMessage {
5
- layer: ImageLayer<Raster>;
6
- static readonly ID = "d33447fe-eec0-4205-9b5d-0d79ddc74ad7";
7
- constructor(layer: ImageLayer<Raster>);
8
- }
@@ -1,8 +0,0 @@
1
- import TileLayer from 'ol/layer/Tile';
2
- import { XYZ } from 'ol/source';
3
- import { PostboyGenericMessage } from '@artstesh/postboy';
4
- export declare class AddTileCommand extends PostboyGenericMessage {
5
- layer: TileLayer<XYZ>;
6
- static readonly ID = "ae29b7af-21aa-4b0a-8586-92c23779e6cb";
7
- constructor(layer: TileLayer<XYZ>);
8
- }
@@ -1,7 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- /**
3
- * Represents a command to cancel a drawing action.
4
- */
5
- export declare class CancelDrawingCommand extends PostboyGenericMessage {
6
- static readonly ID = "192d70f8-9d12-4cb3-a8ad-0fc2dc5af1de";
7
- }
@@ -1,7 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- /**
3
- * Represents a command to cancel a feature modification.
4
- */
5
- export declare class CancelFeatureModificationCommand extends PostboyGenericMessage {
6
- static readonly ID = "e7886353-53b3-4bbe-93b5-6490e5f1305e";
7
- }
@@ -1,14 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- /**
3
- * A command class that represents the action to close a tooltip.
4
- */
5
- export declare class CloseTooltipCommand extends PostboyGenericMessage {
6
- tooltipId: string;
7
- static readonly ID = "df687e26-7298-46d7-8911-d014801dafac";
8
- /**
9
- * Creates an instance of the class with the specified tooltip ID.
10
- *
11
- * @param {string} tooltipId - The unique identifier for the tooltip.
12
- */
13
- constructor(tooltipId: string);
14
- }
@@ -1,24 +0,0 @@
1
- import { PostboyCallbackMessage } from '@artstesh/postboy';
2
- import Style from 'ol/style/Style';
3
- import { IIdentified } from '../../models/i-identified';
4
- import { Dictionary } from '@artstesh/collections';
5
- import { DrawingType } from '../../models';
6
- /**
7
- * Class representing a command to draw a selection area with a specific type and style.
8
- *
9
- * @return {Dictionary<IIdentified[]>} - a collection of features inside the selected area, grouped by a layer's name
10
- */
11
- export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
12
- type: DrawingType;
13
- style: Style;
14
- ignore: Set<string>;
15
- static readonly ID = "06e43f59-c6ba-41bb-9c5b-f6534d914905";
16
- /**
17
- * Constructs a new instance with the specified type, style, and optional set of ignored items.
18
- *
19
- * @param {DrawingType} type - The type of drawing to be created.
20
- * @param {Style} style - The style information for the drawing.
21
- * @param {Set<string>} [ignore=new Set<string>()] - Optional set of items to be ignored.
22
- */
23
- constructor(type: DrawingType, style: Style, ignore?: Set<string>);
24
- }
@@ -1,9 +0,0 @@
1
- import { Feature } from 'ol';
2
- import { Geometry } from 'ol/geom';
3
- import { PostboyGenericMessage } from '@artstesh/postboy';
4
- export declare class FitToFeaturesCommand extends PostboyGenericMessage {
5
- features: Feature<Geometry>[];
6
- zoomAfter: number;
7
- static readonly ID = "04d67609-0b4c-4f52-aa53-ad0a3db967dc";
8
- constructor(features: Feature<Geometry>[], zoomAfter?: number);
9
- }
@@ -1,18 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import { PolygonModel } from '../../models';
3
- /**
4
- * FitToPolygonsCommand is a command used to fit a given set of polygon features
5
- * to the viewable area, optionally applying a zoom transformation afterwards.
6
- */
7
- export declare class FitToPolygonsCommand extends PostboyGenericMessage {
8
- features: PolygonModel[];
9
- zoomAfter: number;
10
- static readonly ID = "308394ce-48d3-45f5-8671-52207fba4be3";
11
- /**
12
- * Creates an instance of the class with specified polygon features and an optional zoom level.
13
- *
14
- * @param {PolygonModel[]} features - An array of polygon models to fit to.
15
- * @param {number} [zoomAfter=0] - Optional zoom level change to apply after initialization. Defaults to 0.
16
- */
17
- constructor(features: PolygonModel[], zoomAfter?: number);
18
- }
@@ -1,25 +0,0 @@
1
- import { PostboyCallbackMessage } from '@artstesh/postboy';
2
- import { FeatureOutputFormat, PolygonModel } from '../../models';
3
- import { StyleLike } from 'ol/style/Style';
4
- /**
5
- * Represents a command to modify a feature with a specific style and output format
6
- * for a polygonal model.
7
- *
8
- * @return {string | null} a string representation of the modified feature in the appropriate format
9
- */
10
- export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string | null> {
11
- model: PolygonModel;
12
- style: StyleLike;
13
- format: FeatureOutputFormat;
14
- draggable: boolean;
15
- static readonly ID = "8f76507e-f18d-4232-bab7-f3d4e3d707bb";
16
- /**
17
- * Constructs an instance of the class.
18
- *
19
- * @param {PolygonModel} model - The model representing the polygon data.
20
- * @param {StyleLike} style - The style to be applied to the polygon.
21
- * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
22
- * @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
23
- */
24
- constructor(model: PolygonModel, style: StyleLike, format?: FeatureOutputFormat, draggable?: boolean);
25
- }
@@ -1,9 +0,0 @@
1
- import { Feature } from 'ol';
2
- import { Geometry } from 'ol/geom';
3
- import { PostboyGenericMessage } from '@artstesh/postboy';
4
- export declare class PlaceLayerFeaturesCommand extends PostboyGenericMessage {
5
- layer: string;
6
- features: Feature<Geometry>[];
7
- static readonly ID = "5f27a2cd-8d8a-4929-b703-8aee6dcdc21c";
8
- constructor(layer: string, features: Feature<Geometry>[]);
9
- }
@@ -1,20 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import { MapControl } from '../../models/map-control';
3
- /**
4
- * Represents a command to remove a map control from the map.
5
- *
6
- * The command is identified by a unique static ID, and it requires a MapControl item
7
- * to specify the control to be removed.
8
- *
9
- * @extends PostboyGenericMessage
10
- */
11
- export declare class RemoveControlCommand extends PostboyGenericMessage {
12
- item: MapControl;
13
- static readonly ID = "73bcb4f5-ce7d-4c71-b70d-e772100136a1";
14
- /**
15
- * Constructs an instance of the class.
16
- *
17
- * @param {MapControl} item - The map control instance to be removed.
18
- */
19
- constructor(item: MapControl);
20
- }
@@ -1,8 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import ImageLayer from 'ol/layer/Image';
3
- import Static from 'ol/source/ImageStatic';
4
- export declare class RemoveImageLayerCommand extends PostboyGenericMessage {
5
- layer: ImageLayer<Static>;
6
- static readonly ID = "c8e7efdb-17ff-4cf9-89be-e688b8de3b95";
7
- constructor(layer: ImageLayer<Static>);
8
- }
@@ -1,7 +0,0 @@
1
- import BaseLayer from 'ol/layer/Base';
2
- import { PostboyGenericMessage } from '@artstesh/postboy';
3
- export declare class RemoveLayerCommand extends PostboyGenericMessage {
4
- layer: BaseLayer;
5
- static readonly ID = "1b60599c-599a-4fdb-bad2-23b12e435e1a";
6
- constructor(layer: BaseLayer);
7
- }
@@ -1,8 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- import ImageLayer from 'ol/layer/Image';
3
- import { Raster } from 'ol/source';
4
- export declare class RemoveRasterTileCommand extends PostboyGenericMessage {
5
- layer: ImageLayer<Raster>;
6
- static readonly ID = "d1c4bf6a-e2f2-4385-a7a2-cecb525f8939";
7
- constructor(layer: ImageLayer<Raster>);
8
- }
@@ -1,8 +0,0 @@
1
- import TileLayer from 'ol/layer/Tile';
2
- import { XYZ } from 'ol/source';
3
- import { PostboyGenericMessage } from '@artstesh/postboy';
4
- export declare class RemoveTileCommand extends PostboyGenericMessage {
5
- layer: TileLayer<XYZ>;
6
- static readonly ID = "dab0f861-bb25-46da-9388-717bfaae798f";
7
- constructor(layer: TileLayer<XYZ>);
8
- }
@@ -1,17 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- /**
3
- * Forces map to move to a specific point
4
- */
5
- export declare class SetMapCenterCommand extends PostboyGenericMessage {
6
- lat: number;
7
- lng: number;
8
- zoom?: number | undefined;
9
- static readonly ID = "d4e3cf4f-0be7-4c1a-8355-8607d02c3dea";
10
- /**
11
- *
12
- * @param lat - the desired latitude
13
- * @param lng - the desired longitude
14
- * @param zoom - the desired zoom; doesn't change zoom if undefined
15
- */
16
- constructor(lat: number, lng: number, zoom?: number | undefined);
17
- }
@@ -1,20 +0,0 @@
1
- import { PostboyCallbackMessage } from '@artstesh/postboy';
2
- import { DrawingType, FeatureOutputFormat } from '../../models';
3
- import { StyleLike } from 'ol/style/Style';
4
- /**
5
- * Represents a command to start a drawing operation.
6
- */
7
- export declare class StartDrawingCommand extends PostboyCallbackMessage<string | null> {
8
- type: DrawingType;
9
- style: StyleLike;
10
- format: FeatureOutputFormat;
11
- static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
12
- /**
13
- * Constructor for creating an instance of the class that represents a drawing feature with specific type, style, and output format.
14
- *
15
- * @param {DrawingType} type - The type of the drawing to be created.
16
- * @param {Style} style - The style defining visual appearance of the drawing.
17
- * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
18
- */
19
- constructor(type: DrawingType, style: StyleLike, format?: FeatureOutputFormat);
20
- }
@@ -1,4 +0,0 @@
1
- import { PostboyGenericMessage } from '@artstesh/postboy';
2
- export declare class DrawingFinishedEvent extends PostboyGenericMessage {
3
- static readonly ID = "9094e160-8df7-4868-883a-3436724106dd";
4
- }