@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",
@@ -36,9 +36,9 @@
36
36
  "url": "git+https://github.com/artstesh/maps.git"
37
37
  },
38
38
  "dependencies": {
39
- "@angular/common": "^19.0.0",
40
- "@angular/compiler": "^19.0.0",
41
- "@angular/core": "^19.0.0",
39
+ "@angular/common": "^20.0.0",
40
+ "@angular/compiler": "^20.0.0",
41
+ "@angular/core": "^20.0.0",
42
42
  "@artstesh/collections": "^1.0.0",
43
43
  "@artstesh/postboy": "^3.1.5",
44
44
  "ol": "^10.0.0",
@@ -48,26 +48,26 @@
48
48
  "zone.js": "~0.15.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@angular-builders/custom-webpack": "^19.0.0",
52
- "@angular-devkit/build-angular": "^19.0.0",
53
- "@angular-eslint/builder": "^19.0.0",
54
- "@angular-eslint/eslint-plugin": "^19.0.0",
55
- "@angular-eslint/eslint-plugin-template": "^19.0.0",
56
- "@angular-eslint/schematics": "^19.0.0",
57
- "@angular-eslint/template-parser": "^19.0.0",
58
- "@angular/cli": "^19.0.0",
59
- "@angular/compiler-cli": "^19.0.0",
60
- "@angular/forms": "^19.2.19",
61
- "@angular/platform-browser-dynamic": "^19.2.19",
51
+ "@angular-builders/custom-webpack": "^20.0.0",
52
+ "@angular-devkit/build-angular": "^20.0.0",
53
+ "@angular-eslint/builder": "^20.0.0",
54
+ "@angular-eslint/eslint-plugin": "^20.0.0",
55
+ "@angular-eslint/eslint-plugin-template": "^20.0.0",
56
+ "@angular-eslint/schematics": "^20.0.0",
57
+ "@angular-eslint/template-parser": "^20.0.0",
58
+ "@angular/cli": "^20.0.0",
59
+ "@angular/compiler-cli": "^20.0.0",
60
+ "@angular/forms": "^20.0.0",
61
+ "@angular/platform-browser-dynamic": "^20.0.0",
62
62
  "@artstesh/forger": "^2.0.0",
63
63
  "@artstesh/it-should": "^2.0.0",
64
64
  "@biesbjerg/ngx-translate-extract": "7.0.4",
65
65
  "@types/chart.js": "2.9.34",
66
66
  "@types/jasmine": "3.8.1",
67
- "@types/node": "^18.0.0",
67
+ "@types/node": "^20.11.1",
68
68
  "@typescript-eslint/eslint-plugin": "7.18.0",
69
69
  "@typescript-eslint/parser": "7.18.0",
70
- "eslint": "^9.39.3",
70
+ "eslint": "^8.57.1",
71
71
  "eslint-config-airbnb-typescript": "^18.0.0",
72
72
  "eslint-config-prettier": "^9.0.0",
73
73
  "eslint-plugin-import": "2.29.0",
@@ -81,10 +81,10 @@
81
81
  "karma-jasmine": "4.0.1",
82
82
  "karma-jasmine-html-reporter": "1.7.0",
83
83
  "ng-mocks": "^14.11.0",
84
- "ng-packagr": "^19.0.0",
84
+ "ng-packagr": "^20.0.0",
85
85
  "pre-commit": "1.2.2",
86
86
  "prettier": "2.7.1",
87
87
  "ts-mockito": "2.6.1",
88
- "typescript": "^5.5.2"
88
+ "typescript": "^5.8.2"
89
89
  }
90
90
  }
@@ -1,10 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Subscription } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class DestructibleComponent implements OnDestroy {
5
- protected subs: Subscription[];
6
- protected onDestroy?: () => void;
7
- ngOnDestroy(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DestructibleComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DestructibleComponent, "ng-component", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,4 +0,0 @@
1
- export declare class IdGenerator {
2
- private static collection;
3
- static get(): string;
4
- }
@@ -1,4 +0,0 @@
1
- export * from './marker-style.helper';
2
- export * from './polygon-style.helper';
3
- export * from './text-style.helper';
4
- export * from './stringify-feature.helper';
@@ -1,33 +0,0 @@
1
- import Style from 'ol/style/Style';
2
- import { Text } from 'ol/style';
3
- /**
4
- * Helper class to create and modify marker styles.
5
- */
6
- export declare class MarkerStyleHelper {
7
- /**
8
- * Creates a new Style object from an SVG.
9
- * @param {string} svg - The SVG string.
10
- * @param {Array<number>} [size=[30, 30]] - The size of the icon image.
11
- * @param {number} [zIndex=400] - The zIndex of the style.
12
- * @returns {Style} A new Style object.
13
- */
14
- static fromSvg(svg: string, size?: [number, number], zIndex?: number): Style;
15
- /**
16
- * Returns a Style object with a circle style.
17
- *
18
- * @param {number} radius - The radius of the circle.
19
- * @param {string} fill - The fill color of the circle. Format: '#RRGGBB' or 'rgba(R, G, B, A)'.
20
- * @param {string} strokeColor - The stroke color of the circle. Format: '#RRGGBB' or 'rgba(R, G, B, A)'.
21
- * @param {number} [strokeWidth=1] - The width of the stroke. Default is 1.
22
- * @returns {Style} - A Style object with a Circle image.
23
- */
24
- static circle(radius: number, fill: string, strokeColor: string, strokeWidth?: number): Style;
25
- /**
26
- * Applies the given Text to the provided Style.
27
- *
28
- * @param {Style} style - The Style to modify.
29
- * @param {Text} text - The Text to apply to the Style.
30
- * @return {Style} - The modified Style with the applied Text.
31
- */
32
- static withText(style: Style, text: Text): Style;
33
- }
@@ -1,26 +0,0 @@
1
- import Style from 'ol/style/Style';
2
- /**
3
- * A helper class for creating polygon styles.
4
- * @class
5
- */
6
- export declare class PolygonStyleHelper {
7
- /**
8
- * Creates a Style object with the given fill color, stroke color, and stroke width.
9
- *
10
- * @param {string} fill - The fill color in hexadecimal or RGB format.
11
- * @param {string} stroke - The stroke color in hexadecimal or RGB format.
12
- * @param {number} [strokeWidth=1] - The width of the stroke. Defaults to 1.
13
- * @return {Style} The created Style object.
14
- */
15
- static simple(fill: string, stroke: string, strokeWidth?: number): Style;
16
- /**
17
- * Creates a new Style object with the given fill, stroke, stroke width, and pin radius.
18
- *
19
- * @param {string} fill - The color to use for the fill of the style.
20
- * @param {string} stroke - The color to use for the stroke of the style.
21
- * @param {number} [strokeWidth=1] - The width of the stroke. Defaults to 1.
22
- * @param {number} [pinRadius=5] - The radius of the circle used as the image for the style. Defaults to 5.
23
- * @returns {Style} - The newly created Style object.
24
- */
25
- static edit(fill: string, stroke: string, strokeWidth?: number, pinRadius?: number): Style;
26
- }
@@ -1,26 +0,0 @@
1
- import { Feature } from 'ol';
2
- import { Geometry } from 'ol/geom';
3
- import { FeatureOutputFormat } from '../models';
4
- /**
5
- * A helper class for converting and stringify features.
6
- */
7
- export declare class StringifyFeatureHelper {
8
- static polygon(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
9
- /**
10
- * Creates a polygon feature representing a circle based on a given feature with a circle geometry.
11
- *
12
- * @param {Feature<Geometry>} feature - The input feature with a circle geometry.
13
- * @param {FeatureOutputFormat} format - The format for outputting the polygon feature. (default: FeatureOutputFormat.GeoJson)
14
- *
15
- * @return {string} - The string representation of the polygon feature.
16
- */
17
- static circle(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
18
- /**
19
- * Draw a circle based on a center point and radius.
20
- *
21
- * @param {number[]} point - The center point coordinates in EPSG:4326 format.
22
- * @param {number} radius - The radius of the circle in meters.
23
- * @return {Coordinate[][]} - The coordinates of the circle boundary in EPSG:4326 format.
24
- */
25
- private static drawCircle;
26
- }
@@ -1,19 +0,0 @@
1
- import { Text } from 'ol/style';
2
- /**
3
- * Helper class for creating text styles.
4
- */
5
- export declare class TextStyleHelper {
6
- /**
7
- * Creates and returns a new Text instance with specified styling properties.
8
- *
9
- * @param {string} text - The text content to display.
10
- * @param {string} font - The font style to use for the text.
11
- * @param {string} color - The color of the text.
12
- * @param {string|null|undefined} [backColor] - The background color of the text. Optional.
13
- * @param {number[]|null|undefined} [padding] - The padding around the text in pixels. Optional.
14
- * @param {string|null|undefined} [textBaseline] - The text baseline alignment. Optional.
15
- * @param {number|null|undefined} [offsetY] - The vertical offset for the text. Optional.
16
- * @return {Text} A new Text instance configured with the specified properties.
17
- */
18
- 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;
19
- }
@@ -1,2 +0,0 @@
1
- export * from './map-control-zoom/zoom-control.settings';
2
- export * from './map-control-zoom/map-control-zoom.component';
@@ -1,36 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { MapPostboyService } from '../../../services/map-postboy.service';
3
- import { DestructibleComponent } from '../../../common/destructible.component';
4
- import { ZoomControlSettings } from './zoom-control.settings';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @class
8
- * @classdesc Represents a component for the Zoom control on a map.
9
- * @extends DestructibleComponent
10
- * @implements OnInit
11
- */
12
- export declare class MapControlZoomComponent extends DestructibleComponent implements OnInit {
13
- private postboy;
14
- private map?;
15
- private control?;
16
- constructor(postboy: MapPostboyService);
17
- private _settings;
18
- /**
19
- * Sets the settings for the Zoom Control.
20
- *
21
- * @param {ZoomControlSettings | undefined} value - The new settings for the Zoom Control.
22
- *
23
- * @description
24
- * This method sets the settings for the Zoom Control. It takes a parameter `value` which should be an object of type `ZoomControlSettings` or `undefined`.
25
- *
26
- * If the `value` is `undefined` or the same as the current settings, the method will return without making any changes.
27
- *
28
- */
29
- set settings(value: ZoomControlSettings | undefined);
30
- ngOnInit(): void;
31
- onDestroy: () => void;
32
- private setControl;
33
- private eliminate;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<MapControlZoomComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<MapControlZoomComponent, "art-map-control-zoom", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
36
- }
@@ -1,5 +0,0 @@
1
- import { ZoomControlSettings } from './zoom-control.settings';
2
- import { Zoom } from 'ol/control';
3
- export declare class ZoomControlFactory {
4
- static build(settings: ZoomControlSettings): Zoom;
5
- }
@@ -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
- }