@artstesh/maps 8.0.0 → 9.0.0

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 +85 -85
  2. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  3. package/dist/fesm2022/maps-components.mjs +85 -85
  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,85 +0,0 @@
1
- /**
2
- * Represents the settings for a zoom control.
3
- */
4
- export declare class ZoomControlSettings {
5
- /**
6
- * The CSS class name of the control element.
7
- *
8
- * @type {string}
9
- */
10
- controlClass: string;
11
- /**
12
- * The CSS class name for zoom in button.
13
- * @type {string}
14
- */
15
- zoomInClass: string;
16
- /**
17
- * The CSS class name for the zoom out button element.
18
- *
19
- * @type {string}
20
- */
21
- zoomOutClass: string;
22
- /**
23
- * The label for the zoom in action.
24
- *
25
- * @type {string}
26
- */
27
- zoomInLabel: string;
28
- /**
29
- * The label for the zoom out control.
30
- *
31
- * @type {string}
32
- */
33
- zoomOutLabel: string;
34
- /**
35
- * Copies the provided ZoomControlSettings object.
36
- *
37
- * @param {ZoomControlSettings} model - The ZoomControlSettings object to be copied.
38
- * @return {ZoomControlSettings} - The copied ZoomControlSettings object.
39
- */
40
- static copy(model: ZoomControlSettings): ZoomControlSettings;
41
- /**
42
- * Checks if the current ZoomControlSettings object is equal to the given model.
43
- *
44
- * @param {ZoomControlSettings} model - The ZoomControlSettings object to compare with.
45
- *
46
- * @return {boolean} - true if the current object is equal to the given model, false otherwise.
47
- */
48
- isSame(model: ZoomControlSettings): boolean;
49
- /**
50
- * Sets the zoom in label of the Zoom Control Settings.
51
- *
52
- * @param {string} zoomInLabel - The label for the zoom in button.
53
- * @return {ZoomControlSettings} - The new Zoom Control Settings object with the updated zoom in label.
54
- */
55
- setZoomInLabel(zoomInLabel: string): ZoomControlSettings;
56
- /**
57
- * Sets the zoomOutClass property of the ZoomControlSettings object.
58
- *
59
- * @param {string} zoomOutClass - The CSS class to be assigned to the zoom out button.
60
- * @return {ZoomControlSettings} - The updated ZoomControlSettings object with the new zoomOutClass value.
61
- */
62
- setZoomOutClass(zoomOutClass: string): ZoomControlSettings;
63
- /**
64
- * Sets the zoom in class for the zoom control settings.
65
- *
66
- * @param {string} zoomInClass - The new zoom in class to be set.
67
- * @return {ZoomControlSettings} - The updated zoom control settings.
68
- */
69
- setZoomInClass(zoomInClass: string): ZoomControlSettings;
70
- /**
71
- * Set the label for the zoom out control.
72
- *
73
- * @param {string} zoomOutLabel - The label for the zoom out control.
74
- * @returns {ZoomControlSettings} - The updated zoom control settings.
75
- */
76
- setZoomOutLabel(zoomOutLabel: string): ZoomControlSettings;
77
- /**
78
- * Sets the control class for the ZoomControlSettings.
79
- *
80
- * @param {string} controlClass - The class name of the control to be set.
81
- *
82
- * @return {ZoomControlSettings} - The modified ZoomControlSettings object.
83
- */
84
- setControlClass(controlClass: string): ZoomControlSettings;
85
- }
@@ -1,2 +0,0 @@
1
- export * from './markers/markers.component';
2
- export * from './polygons/polygons.component';
@@ -1,26 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DestructibleComponent } from '../../../common/destructible.component';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import { MarkerModel } from '../../../models/marker-model';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * MarkersComponent is a component that displays markers on a map.
8
- * It listens for changes in the `markers` input property and
9
- * automatically puts the markers on the map using the MapPostboyService.
10
- */
11
- export declare class MarkersComponent extends DestructibleComponent implements OnInit {
12
- private postboy;
13
- layerName: string;
14
- constructor(postboy: MapPostboyService);
15
- _markers: MarkerModel[];
16
- /**
17
- * Sets the markers property.
18
- *
19
- * @param {MarkerModel[]} value - The array of MarkerModel objects to set as markers.
20
- */
21
- set markers(value: MarkerModel[]);
22
- ngOnInit(): void;
23
- private putMarkers;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<MarkersComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<MarkersComponent, "art-markers", never, { "layerName": { "alias": "layerName"; "required": false; }; "markers": { "alias": "markers"; "required": false; }; }, {}, never, never, true, never>;
26
- }
@@ -1,26 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DestructibleComponent } from '../../../common/destructible.component';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import { PolygonModel } from '../../../models/polygon.model';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Component for rendering polygons on a map.
8
- * It listens for changes in the `polygons` input property and
9
- * automatically puts the polygons on the map using the MapPostboyService.
10
- */
11
- export declare class PolygonsComponent extends DestructibleComponent implements OnInit {
12
- private postboy;
13
- layerName: string;
14
- constructor(postboy: MapPostboyService);
15
- _polygons: PolygonModel[];
16
- /**
17
- * Sets the value of polygons.
18
- *
19
- * @param {PolygonModel[]} value - The new value for polygons.
20
- */
21
- set polygons(value: PolygonModel[]);
22
- ngOnInit(): void;
23
- private putPolygons;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<PolygonsComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<PolygonsComponent, "art-polygons", never, { "layerName": { "alias": "layerName"; "required": false; }; "polygons": { "alias": "polygons"; "required": false; }; }, {}, never, never, true, never>;
26
- }
@@ -1,11 +0,0 @@
1
- import { ClusterLayerSettings } from './cluster-layer.settings';
2
- import { ClusterLayerManager } from './cluster-layer.manager';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import { StyleFunction } from 'ol/style/Style';
5
- import * as i0 from "@angular/core";
6
- export declare class ClusterLayerFactory {
7
- build(settings: ClusterLayerSettings, postboy: MapPostboyService): ClusterLayerManager;
8
- styleFunc(settings: ClusterLayerSettings): StyleFunction;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ClusterLayerFactory, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<ClusterLayerFactory>;
11
- }
@@ -1,29 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DestructibleComponent } from '../../../common/destructible.component';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import { ClusterLayerManager } from './cluster-layer.manager';
5
- import { ClusterLayerSettings } from './cluster-layer.settings';
6
- import { ClusterLayerFactory } from './cluster-layer-factory.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Represents a cluster layer component.
10
- */
11
- export declare class ClusterLayerComponent extends DestructibleComponent implements OnInit {
12
- private postboy;
13
- private factory;
14
- manager: ClusterLayerManager | null;
15
- constructor(postboy: MapPostboyService, factory: ClusterLayerFactory);
16
- _settings: ClusterLayerSettings;
17
- /**
18
- * Sets the settings for the cluster layer.
19
- *
20
- * @param {ClusterLayerSettings | undefined} value - The settings for the cluster layer.
21
- */
22
- set settings(value: ClusterLayerSettings | undefined);
23
- ngOnInit(): void;
24
- onDestroy: () => void;
25
- private initLayer;
26
- private removeLayer;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<ClusterLayerComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ClusterLayerComponent, "art-cluster-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
29
- }
@@ -1,13 +0,0 @@
1
- import { MapPostboyService } from '../../../services/map-postboy.service';
2
- import { Vector as Layer } from 'ol/layer';
3
- import Cluster from 'ol/source/Cluster';
4
- import { ClusterLayerSettings } from './cluster-layer.settings';
5
- export declare class ClusterLayerManager {
6
- private settings;
7
- readonly layer: Layer<Cluster>;
8
- private postboy;
9
- constructor(settings: ClusterLayerSettings, layer: Layer<Cluster>, postboy: MapPostboyService);
10
- private observeMapMovement;
11
- private observeClick;
12
- private checkClusterNecessity;
13
- }
@@ -1,100 +0,0 @@
1
- import Style, { StyleFunction } from 'ol/style/Style';
2
- import { IIdentified } from '../../../models/i-identified';
3
- export declare class ClusterLayerSettings {
4
- name: string;
5
- zIndex: number;
6
- /**
7
- * The maximum view zoom level (inclusive) at which this layer will be visible.
8
- *
9
- * @type {number}
10
- * @default 19
11
- */
12
- maxZoom: number;
13
- /**
14
- * The minimum view zoom level (exclusive) at which this layer will be visible.
15
- *
16
- * @type {number}
17
- */
18
- minZoom: number;
19
- /**
20
- * Distance in pixels within which features will be clustered together.
21
- *
22
- * @type {number}
23
- */
24
- distance: number;
25
- bbox: boolean;
26
- clusterCancel: number;
27
- style?: (features: IIdentified[]) => Style;
28
- /**
29
- * Creates a copy of the given ClusterLayerSettings object.
30
- *
31
- * @param {ClusterLayerSettings} model - The ClusterLayerSettings object to be copied.
32
- * @returns {ClusterLayerSettings} - A new ClusterLayerSettings object that is a copy of the original object.
33
- */
34
- static copy(model: ClusterLayerSettings): ClusterLayerSettings;
35
- /**
36
- * Set the z-index for the ClusterLayer.
37
- *
38
- * @param {number} zIndex - The new z-index for the ClusterLayer.
39
- * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
40
- */
41
- setZIndex(zIndex: number): ClusterLayerSettings;
42
- /**
43
- * Sets the distance value for ClusterLayerSettings.
44
- *
45
- * @param {number} distance - The distance value to be set.
46
- * @return {ClusterLayerSettings} - The modified ClusterLayerSettings object.
47
- */
48
- setDistance(distance: number): ClusterLayerSettings;
49
- /**
50
- * Sets the name of the ClusterLayerSettings object.
51
- *
52
- * @param {string} name - The name to set for the ClusterLayerSettings.
53
- * @return {ClusterLayerSettings} - A new ClusterLayerSettings object with the updated name.
54
- */
55
- setName(name: string): ClusterLayerSettings;
56
- /**
57
- * Sets the maximum zoom level for the Cluster Layer.
58
- *
59
- * @param {number} maxZoom - The maximum zoom level to be set.
60
- * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
61
- */
62
- setMaxZoom(maxZoom: number): ClusterLayerSettings;
63
- /**
64
- * Sets the minimum zoom level for the ClusterLayerSettings.
65
- *
66
- * @param {number} minZoom - The minimum zoom level to set.
67
- * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object.
68
- */
69
- setMinZoom(minZoom: number): ClusterLayerSettings;
70
- /**
71
- * Sets the cluster cancel number for the ClusterLayerSettings.
72
- *
73
- * @param {number} clusterCancel - The new cluster cancel number.
74
- * @returns {ClusterLayerSettings} - The updated ClusterLayerSettings object.
75
- */
76
- setClusterCancel(clusterCancel: number): ClusterLayerSettings;
77
- /**
78
- * Sets the value of 'bbox' property in the ClusterLayerSettings object.
79
- *
80
- * @param {boolean} bbox - A boolean value indicating whether to include bounding box calculation in the cluster layer settings.
81
- * @returns {ClusterLayerSettings} - The updated ClusterLayerSettings object with the newly set 'bbox' value.
82
- */
83
- setBbox(bbox: boolean): ClusterLayerSettings;
84
- /**
85
- * Sets the style for the ClusterLayerSettings.
86
- *
87
- * @param {function} style - A function that takes an array of identified features as input and returns a Style or StyleFunction.
88
- *
89
- * @return {ClusterLayerSettings} - The updated ClusterLayerSettings object with the new style applied.
90
- */
91
- setStyle(style: (features: IIdentified[]) => Style | StyleFunction): ClusterLayerSettings;
92
- /**
93
- * Checks if the current ClusterLayerSettings object is the same as the specified model.
94
- *
95
- * @param {ClusterLayerSettings} model - The model to compare with the current object.
96
- *
97
- * @return {boolean} - Returns true if the current ClusterLayerSettings object is the same as the specified model, otherwise false.
98
- */
99
- isSame(model: ClusterLayerSettings): boolean;
100
- }
@@ -1,22 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { MapPostboyService } from '../../../services/map-postboy.service';
3
- import VectorSource from 'ol/source/Vector';
4
- import { Vector as Layer } from 'ol/layer';
5
- import { FeatureLayerSettings } from './feature-layer.settings';
6
- import { DestructibleComponent } from '../../../common/destructible.component';
7
- import { FeatureLayerFactory } from './feature-layer.factory';
8
- import * as i0 from "@angular/core";
9
- export declare class FeatureLayerComponent extends DestructibleComponent implements OnInit {
10
- private postboy;
11
- private factory;
12
- layer: Layer<VectorSource<any>> | null;
13
- constructor(postboy: MapPostboyService, factory: FeatureLayerFactory);
14
- _settings: FeatureLayerSettings;
15
- set settings(value: FeatureLayerSettings | undefined);
16
- ngOnInit(): void;
17
- onDestroy: () => void;
18
- private initLayer;
19
- private removeLayer;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FeatureLayerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<FeatureLayerComponent, "art-feature-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,9 +0,0 @@
1
- import { FeatureLayerSettings } from './feature-layer.settings';
2
- import { Vector as Layer } from 'ol/layer';
3
- import VectorSource from 'ol/source/Vector';
4
- import * as i0 from "@angular/core";
5
- export declare class FeatureLayerFactory {
6
- build(settings: FeatureLayerSettings): Layer<VectorSource<any>>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FeatureLayerFactory, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<FeatureLayerFactory>;
9
- }
@@ -1,103 +0,0 @@
1
- import Style, { StyleFunction } from 'ol/style/Style';
2
- /**
3
- * A layer that is responsible for showing and styling main features on the map, such as markers and polygons
4
- */
5
- export declare class FeatureLayerSettings {
6
- /**
7
- * The identifier of the field, it is autogenerated by default, but can be set manually
8
- */
9
- name: string;
10
- /**
11
- * The priority of showing - layers with higher zIndex cover others in case of collisions
12
- */
13
- zIndex: number;
14
- /**
15
- The maximum view zoom level (inclusive) at which this layer will be visible.
16
-
17
- @type {number}
18
- @default 19
19
- */
20
- maxZoom: number;
21
- /**
22
- The minimum view zoom level (exclusive) at which this layer will be visible.
23
-
24
- @type {number}
25
- */
26
- minZoom: number;
27
- /**
28
- * The styling definition of layer's features. The easiest way is to use {@link PolygonStyleHelper},{@link MarkerStyleHelper}
29
- */
30
- style?: Style | StyleFunction;
31
- /**
32
- * Defines the style applied to a feature when it is hovered over.
33
- *
34
- * This property can accept either a static style object or a dynamic style function.
35
- * When a `StyleFunction` is provided, it will determine the style dynamically
36
- * based on the feature being hovered.
37
- *
38
- * The style is applied temporarily, specifically for the hovered feature,
39
- * and overrides any default or predefined styles for that feature.
40
- *
41
- * Optional property.
42
- *
43
- * @type {(Style | StyleFunction)}
44
- */
45
- featureHoverStyle?: Style | StyleFunction;
46
- /**
47
- * Copies the given FeatureLayerSettings object
48
- *
49
- * @param {FeatureLayerSettings} model - The FeatureLayerSettings object to be copied
50
- * @returns {FeatureLayerSettings} - A copy of the FeatureLayerSettings object
51
- */
52
- static copy(model: FeatureLayerSettings): FeatureLayerSettings;
53
- /**
54
- * Sets the z-index value for the FeatureLayerSettings object.
55
- *
56
- * @param {number} zIndex - The new z-index value.
57
- * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
58
- */
59
- setZIndex(zIndex: number): FeatureLayerSettings;
60
- /**
61
- * Sets the name of the FeatureLayerSettings.
62
- *
63
- * @param {string} name - The name to set for the FeatureLayerSettings.
64
- *
65
- * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new name.
66
- */
67
- setName(name: string): FeatureLayerSettings;
68
- /**
69
- * Sets the maximum zoom level for the FeatureLayerSettings.
70
- *
71
- * @param {number} maxZoom - The maximum zoom level.
72
- * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
73
- */
74
- setMaxZoom(maxZoom: number): FeatureLayerSettings;
75
- /**
76
- * Sets the minimum zoom level for the feature layer.
77
- *
78
- * @param {number} minZoom The minimum zoom level to be set.
79
- * @returns {FeatureLayerSettings} The updated feature layer settings object.
80
- */
81
- setMinZoom(minZoom: number): FeatureLayerSettings;
82
- /**
83
- * Sets the style for the FeatureLayerSettings object.
84
- *
85
- * @param {Style | StyleFunction} style - The new style to set. It can be either a Style object or a StyleFunction.
86
- * @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new style.
87
- */
88
- setStyle(style: Style | StyleFunction): FeatureLayerSettings;
89
- /**
90
- * Sets the style to apply to features when they are hovered over.
91
- *
92
- * @param {Style | StyleFunction} featureHoverStyle - The style or style function to use for hovered features.
93
- * @return {FeatureLayerSettings} A new instance of FeatureLayerSettings with the updated hover style.
94
- */
95
- setFeatureHoverStyle(featureHoverStyle: Style | StyleFunction): FeatureLayerSettings;
96
- /**
97
- * Checks if the given FeatureLayerSettings object is identical to the current object.
98
- *
99
- * @param {FeatureLayerSettings} model - The FeatureLayerSettings object to compare with.
100
- * @return {boolean} - Returns true if the given object is identical to the current object, otherwise false.
101
- */
102
- isSame(model: FeatureLayerSettings): boolean;
103
- }
@@ -1,9 +0,0 @@
1
- import Static from 'ol/source/ImageStatic';
2
- import { ImageLayerSettings } from './image-layer.settings';
3
- import ImageLayer from 'ol/layer/Image';
4
- import * as i0 from "@angular/core";
5
- export declare class ImageLayerFactory {
6
- build(settings: ImageLayerSettings): ImageLayer<Static>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerFactory, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<ImageLayerFactory>;
9
- }
@@ -1,22 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DestructibleComponent } from '../../../common/destructible.component';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import { ImageLayerFactory } from './image-layer-factory';
5
- import ImageLayer from 'ol/layer/Image';
6
- import Static from 'ol/source/ImageStatic';
7
- import { ImageLayerSettings } from './image-layer.settings';
8
- import * as i0 from "@angular/core";
9
- export declare class ImageLayerComponent extends DestructibleComponent implements OnInit {
10
- private postboy;
11
- private factory;
12
- layer?: ImageLayer<Static>;
13
- constructor(postboy: MapPostboyService, factory: ImageLayerFactory);
14
- _settings: ImageLayerSettings;
15
- set settings(value: ImageLayerSettings | undefined);
16
- ngOnInit(): void;
17
- onDestroy: () => void;
18
- private initLayer;
19
- private removeLayer;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageLayerComponent, "art-image-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,97 +0,0 @@
1
- export declare class ImageLayerSettings {
2
- /**
3
- * Represents the tiles URL.
4
- * @typedef {string} url
5
- *
6
- * @example
7
- * 'https://example.ex/{z}/{x}/{y}.png'
8
- */
9
- url: string;
10
- /**
11
- * Use interpolated values when resampling.
12
- * By default, linear interpolation is used when resampling.
13
- * Set to false to use the nearest neighbor instead.
14
- */
15
- interpolate?: boolean;
16
- /**
17
- * The projection of the coordinate system.
18
- *
19
- * @type {string}
20
- * @default 'EPSG:3857'
21
- */
22
- projection: string;
23
- extent: number[];
24
- /**
25
- * Additional headers that should be added to each tile request
26
- *
27
- * @type {Record<string, string>}
28
- * @default An empty array
29
- */
30
- requestHeaders: Record<string, string> | null;
31
- /**
32
- * Creates a copy of the given tile layer settings.
33
- *
34
- * @param {ImageLayerSettings} model - The tile layer settings to be copied.
35
- * @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the same properties as the model.
36
- */
37
- static copy(model: ImageLayerSettings): ImageLayerSettings;
38
- /**
39
- * Sets the URL of the ImageLayerSettings object.
40
- *
41
- * @param {string} url - The URL to be set.
42
- * @return {ImageLayerSettings} - The updated ImageLayerSettings object.
43
- */
44
- setUrl(url: string): ImageLayerSettings;
45
- /**
46
- * Sets the interpolation state for the image layer settings.
47
- *
48
- * @param {boolean} [interpolate] - Use interpolated values when resampling.
49
- * By default, linear interpolation is used when resampling.
50
- * Set to false to use the nearest neighbor instead.
51
- * @return {ImageLayerSettings} A new instance of ImageLayerSettings with the updated interpolation setting.
52
- */
53
- setInterpolate(interpolate?: boolean): ImageLayerSettings;
54
- setExtent(extent: number[]): ImageLayerSettings;
55
- /**
56
- * Sets the requestHeaders of the ImageLayerSettings object.
57
- *
58
- * @param {Record<string, string>} requestHeaders - The headers which should be provided.
59
- * @return {ImageLayerSettings} - The updated ImageLayerSettings object.
60
- */
61
- setRequestHeaders(requestHeaders: Record<string, string>): ImageLayerSettings;
62
- /**
63
- * Sets the maximum zoom level for the tile layer.
64
- *
65
- * @param {number} maxZoom - The maximum zoom level.
66
- * @returns {ImageLayerSettings} - The updated tile layer settings object.
67
- */
68
- setMaxZoom(maxZoom: number): ImageLayerSettings;
69
- /**
70
- * Sets the minimum zoom level for the Tile Layer.
71
- *
72
- * @param {number} minZoom - The minimum zoom level to be set.
73
- * @return {ImageLayerSettings} The modified ImageLayerSettings object with the updated minimum zoom level.
74
- */
75
- setMinZoom(minZoom: number): ImageLayerSettings;
76
- /**
77
- * Sets the opacity of the ImageLayerSettings.
78
- *
79
- * @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
80
- * @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the opacity set.
81
- */
82
- setOpacity(opacity: number): ImageLayerSettings;
83
- /**
84
- * Sets the projection for the tile layer settings.
85
- *
86
- * @param {string} projection - The desired projection for the tile layer settings.
87
- * @return {ImageLayerSettings} - The updated tile layer settings with the new projection.
88
- */
89
- setProjection(projection: string): ImageLayerSettings;
90
- /**
91
- * Checks if the current instance of ImageLayerSettings is equal to the given model.
92
- * @param {ImageLayerSettings} model - The model to compare against.
93
- * @return {boolean} - True if all properties of the current instance matches the properties of the model;
94
- * otherwise, false.
95
- */
96
- isSame(model: ImageLayerSettings): boolean;
97
- }
@@ -1,11 +0,0 @@
1
- export * from './tile-layer/tile-layer.component';
2
- export * from './tile-layer/tile-layer.settings';
3
- export * from './osm-tile-layer/osm-tile-layer.component';
4
- export * from './feature-layer/feature-layer.settings';
5
- export * from './feature-layer/feature-layer.component';
6
- export * from './cluster-layer/cluster-layer.component';
7
- export * from './cluster-layer/cluster-layer.settings';
8
- export * from './image-layer/image-layer.component';
9
- export * from './image-layer/image-layer.settings';
10
- export * from './raster-tile/raster-tile-layer.component';
11
- export * from './raster-tile/raster-tile-layer.settings';
@@ -1,21 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DestructibleComponent } from '../../../common/destructible.component';
3
- import TileLayer from 'ol/layer/Tile';
4
- import TileSource from 'ol/source/Tile';
5
- import { Map } from 'ol';
6
- import * as i0 from "@angular/core";
7
- export declare class OsmTileLayerComponent extends DestructibleComponent implements OnInit {
8
- layer?: TileLayer<TileSource>;
9
- constructor();
10
- private _url;
11
- private _map?;
12
- private _opacity;
13
- set url(value: string | undefined);
14
- set opacity(value: number);
15
- set map(value: Map | undefined);
16
- ngOnInit(): void;
17
- ngOnDestroy(): void;
18
- private initLayer;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<OsmTileLayerComponent, never>;
20
- 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>;
21
- }
@@ -1,21 +0,0 @@
1
- import { DestructibleComponent } from '../../../common/destructible.component';
2
- import { Raster } from 'ol/source';
3
- import { MapPostboyService } from '../../../services/map-postboy.service';
4
- import ImageLayer from 'ol/layer/Image';
5
- import { RasterTileLayerFactory } from './raster-tile-layer.factory';
6
- import { RasterTileLayerSettings } from './raster-tile-layer.settings';
7
- import * as i0 from "@angular/core";
8
- export declare class RasterTileLayerComponent extends DestructibleComponent {
9
- private postboy;
10
- private factory;
11
- layer?: ImageLayer<Raster>;
12
- constructor(postboy: MapPostboyService, factory: RasterTileLayerFactory);
13
- _settings: RasterTileLayerSettings;
14
- set settings(value: RasterTileLayerSettings | undefined);
15
- ngOnInit(): void;
16
- onDestroy: () => void;
17
- private initLayer;
18
- private removeLayer;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<RasterTileLayerComponent, "art-raster-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
21
- }
@@ -1,12 +0,0 @@
1
- import { Raster } from 'ol/source';
2
- import { RasterTileLayerSettings } from './raster-tile-layer.settings';
3
- import ImageLayer from 'ol/layer/Image';
4
- import * as i0 from "@angular/core";
5
- export declare class RasterTileLayerFactory {
6
- build(settings: RasterTileLayerSettings): ImageLayer<Raster>;
7
- private getTileFunc;
8
- private tileLoader;
9
- private getNormalizedCoord;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerFactory, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RasterTileLayerFactory>;
12
- }