@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,13 +0,0 @@
1
- import { Control } from 'ol/control';
2
- import { Options } from 'ol/control/Control';
3
- /**
4
- *
5
- * A control is a visible widget with a DOM element in a fixed position on the screen. They can involve user input (buttons), or be informational only; the position is determined using CSS. By default, these are placed in the container with CSS class name ol-overlaycontainer-stopevent, but can use any outside DOM element.
6
- * This is the base class for controls. You can use it for simple custom controls by creating the element with listeners, creating an instance:
7
- * var myControl = new Control({element: myElement}); and then adding this to the map.
8
- * The main advantage of having this as a control rather than a simple separate DOM element is that preventing propagation is handled for you. Controls will also be objects in a module:ol/Collection~Collection, so you can use their methods.
9
- * You can also extend this base for your own control class. See examples/custom-controls for an example of how to do this.
10
- */
11
- export declare class MapControl extends Control {
12
- constructor(options: Options);
13
- }
@@ -1,10 +0,0 @@
1
- export declare enum MapLyrs {
2
- Hybrid = 1,
3
- Satellite = 2,
4
- Streets = 3,
5
- Terrain = 4
6
- }
7
- export declare class MapLyrsLabel {
8
- private static lyrs;
9
- static get(lyrs: MapLyrs): string;
10
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Represents a position and view configuration on a map.
3
- *
4
- * This interface is utilized to store and retrieve geographic and viewport details,
5
- * including location coordinates, zoom level, and map extent.
6
- *
7
- * Properties:
8
- * - `latitude`: The latitude coordinate of the map's center point.
9
- * - `longitude`: The longitude coordinate of the map's center point.
10
- * - `zoom`: The zoom level of the map's view.
11
- * - `extent`: The geographical rectangular bounds defining the visible area of the map, represented as an array of coordinates [minX, minY, maxX, maxY].
12
- */
13
- export interface MapPosition {
14
- latitude: number;
15
- longitude: number;
16
- zoom: number;
17
- extent: number[];
18
- }
@@ -1,81 +0,0 @@
1
- import { MapLyrs } from './map-lyrs.enum';
2
- import { DefaultsOptions } from "ol/interaction/defaults";
3
- /**
4
- * Represents the configurable settings for a map instance, providing
5
- * options for center coordinates, zoom levels, map layers, and language.
6
- */
7
- export declare class MapSettings {
8
- center: number[];
9
- maxZoom: number;
10
- minZoom: number;
11
- zoom: number;
12
- lyrs: MapLyrs;
13
- language: string;
14
- osmOpacity: number;
15
- interactionSettings: DefaultsOptions;
16
- static copy(model: MapSettings): MapSettings;
17
- /**
18
- * Updates the interaction settings of the map and returns a new MapSettings instance
19
- * with the updated settings.
20
- *
21
- * @param {DefaultsOptions} interactionSettings - The new interaction settings to be applied.
22
- * @return {MapSettings} A new MapSettings instance with the updated interaction settings.
23
- */
24
- setInteractionSettings(interactionSettings: DefaultsOptions): MapSettings;
25
- /**
26
- * Sets the center for the map settings.
27
- *
28
- * @param {number[]} center - A two-element array representing the latitude and longitude of the map's center.
29
- * @return {MapSettings} A new MapSettings object with the updated center.
30
- */
31
- setCenter(center: number[]): MapSettings;
32
- /**
33
- * Sets the maximum zoom level for the map.
34
- *
35
- * @param {number} maxZoom - The maximum zoom level to be set.
36
- * @return {MapSettings} A new instance of MapSettings with the updated maximum zoom level.
37
- */
38
- setMaxZoom(maxZoom: number): MapSettings;
39
- /**
40
- * Sets the minimum zoom level for the map settings.
41
- *
42
- * @param {number} minZoom The minimum zoom level to be set. Must be a valid numeric value.
43
- * @return {MapSettings} A new MapSettings object with the updated minimum zoom level.
44
- */
45
- setMinZoom(minZoom: number): MapSettings;
46
- /**
47
- * Adjusts the zoom level of the map by setting the specified value.
48
- *
49
- * @param {number} zoom - The desired zoom level to be set.
50
- * @return {MapSettings} A new MapSettings instance with the updated zoom level.
51
- */
52
- setZoom(zoom: number): MapSettings;
53
- /**
54
- * Sets the layers in the map settings with the provided layers.
55
- *
56
- * @param {MapLyrs} lyrs - The layers to be set in the map settings.
57
- * @return {MapSettings} A new instance of MapSettings with the updated layers.
58
- */
59
- setLyrs(lyrs: MapLyrs): MapSettings;
60
- /**
61
- * Updates the language setting for the map configuration and returns a new instance with the updated language.
62
- *
63
- * @param {string} language - The language to be set for the map configuration.
64
- * @return {MapSettings} A new instance of MapSettings with the updated language.
65
- */
66
- setLanguage(language: string): MapSettings;
67
- /**
68
- * Sets the opacity level for the OpenStreetMap layer.
69
- *
70
- * @param {number} osmOpacity - The opacity value for the OpenStreetMap layer, where 0 is fully transparent and 1 is fully opaque.
71
- * @return {MapSettings} A new MapSettings instance with the updated OpenStreetMap opacity.
72
- */
73
- setOsmOpacity(osmOpacity: number): MapSettings;
74
- /**
75
- * Compares the current MapSettings instance with another to determine if they are identical.
76
- *
77
- * @param {MapSettings} model - The MapSettings instance to compare with the current instance.
78
- * @return {boolean} Returns true if both MapSettings instances have the same properties and values; otherwise, false.
79
- */
80
- isSame(model: MapSettings): boolean;
81
- }
@@ -1,5 +0,0 @@
1
- export declare class MapConstants {
2
- static FeatureInfo: string;
3
- static DrawingLayerId: string;
4
- static FeatureLayerName: string;
5
- }
@@ -1,16 +0,0 @@
1
- import { Feature } from 'ol';
2
- import { Geometry } from 'ol/geom';
3
- export declare class MarkerModel {
4
- readonly lat: number;
5
- readonly lng: number;
6
- info?: {
7
- [id: string]: any;
8
- } | undefined;
9
- readonly id: string | number;
10
- constructor(lat: number, lng: number, id?: string | number, info?: {
11
- [id: string]: any;
12
- } | undefined);
13
- private _feature;
14
- get feature(): Feature<Geometry>;
15
- private getFeature;
16
- }
@@ -1,22 +0,0 @@
1
- import { Feature } from 'ol';
2
- import { Geometry } from 'ol/geom';
3
- export declare class PolygonModel {
4
- info?: {
5
- [id: string]: any;
6
- } | undefined;
7
- readonly id: string | number;
8
- readonly lat: number;
9
- readonly lng: number;
10
- private constructor();
11
- private _feature;
12
- get feature(): Feature<Geometry>;
13
- static fromGeoJson(id: string | number, json: string, info?: {
14
- [id: string]: any;
15
- }): PolygonModel;
16
- static fromWKT(id: string | number, wkt: string, info?: {
17
- [id: string]: any;
18
- }): PolygonModel;
19
- static circle(id: string | number, lat: number, lng: number, radius: number, vertices?: number, info?: {
20
- [id: string]: any;
21
- }): PolygonModel;
22
- }
@@ -1,7 +0,0 @@
1
- export { FeatureLike } from 'ol/Feature';
2
- export { Feature } from 'ol';
3
- export { Style } from 'ol/style';
4
- export { Fill, RegularShape, Stroke, Text } from 'ol/style';
5
- export { StyleLike } from 'ol/style/Style';
6
- export { Geometry, LineString, Point } from 'ol/geom';
7
- export * as CircleStyle from 'ol/style/Circle';
@@ -1,12 +0,0 @@
1
- export * from './models/index';
2
- export * from './map-plate/map-plate.component';
3
- export * from './services/map-postboy.service';
4
- export * from './messages/index';
5
- export * from './map-plate/layers/index';
6
- export * from './map-plate/features/index';
7
- export * from './services/map-postboy.service';
8
- export * from './services/message-registrator.service';
9
- export * from './helpers/index';
10
- export * from './map-plate/controls/index';
11
- export * from './map-plate/tooltips/index';
12
- export * from './ol-proxy';
@@ -1,14 +0,0 @@
1
- import { MapPostboyService } from '../map-postboy.service';
2
- import { IPostboyDependingService } from '@artstesh/postboy';
3
- import * as i0 from "@angular/core";
4
- export declare class ControlsService implements IPostboyDependingService {
5
- private postboy;
6
- private map?;
7
- constructor(postboy: MapPostboyService);
8
- up(): void;
9
- private observeMapRender;
10
- private observeAdding;
11
- private observeRemoving;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlsService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ControlsService>;
14
- }
@@ -1,6 +0,0 @@
1
- import { Draw } from 'ol/interaction';
2
- import { GenerateDrawExecutor } from '../../messages/executors/generate-draw.executor';
3
- export declare class DrawingGenerationService {
4
- static getDraw(ev: GenerateDrawExecutor): Draw;
5
- private static geometryFunc;
6
- }
@@ -1,19 +0,0 @@
1
- import { IPostboyDependingService } from '@artstesh/postboy';
2
- import { MapPostboyService } from '../map-postboy.service';
3
- import * as i0 from "@angular/core";
4
- export declare class DrawingService implements IPostboyDependingService {
5
- private postboy;
6
- private drawInteraction?;
7
- private map?;
8
- constructor(postboy: MapPostboyService);
9
- up(): void;
10
- private observeSelectArea;
11
- private observeDrawing;
12
- private onEnd;
13
- private observeMapRender;
14
- private draw;
15
- private observeCancelation;
16
- private clearInteraction;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawingService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DrawingService>;
19
- }
@@ -1,22 +0,0 @@
1
- import { IPostboyDependingService } from '@artstesh/postboy';
2
- import { MapPostboyService } from '../map-postboy.service';
3
- import * as i0 from "@angular/core";
4
- export declare class FeatureModificationService implements IPostboyDependingService {
5
- private postboy;
6
- private modify?;
7
- private translate?;
8
- private map?;
9
- constructor(postboy: MapPostboyService);
10
- up(): void;
11
- private observeModification;
12
- private initFeature;
13
- private addModify;
14
- private addDragging;
15
- private onModified;
16
- private observeMapRender;
17
- private defineLayer;
18
- private observeCancelation;
19
- private clearInteraction;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FeatureModificationService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<FeatureModificationService>;
22
- }
@@ -1,16 +0,0 @@
1
- import { Geometry } from 'ol/geom';
2
- import { Feature } from 'ol';
3
- import { FilterFeaturesInAreaExecutor } from '../messages/executors/filter-features-in-area.executor';
4
- import { FilterFeaturesInPointExecutor } from '../messages';
5
- export declare class FeatureService {
6
- constructor();
7
- static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
8
- static filterFeaturesInPoint(query: FilterFeaturesInPointExecutor): Feature<Geometry>[];
9
- static calculateArea(g: Geometry | undefined): number;
10
- static polygonSelfIntersects(feature: Feature<Geometry>): boolean;
11
- private static booleanIntersects;
12
- private static getSegmentsFromCoordinates;
13
- private static segmentIntersection;
14
- private static orientation;
15
- private static onSegment;
16
- }
@@ -1,16 +0,0 @@
1
- import { IPostboyDependingService } from '@artstesh/postboy';
2
- import { MapBrowserEvent } from 'ol';
3
- import { MapPostboyService } from './map-postboy.service';
4
- import { MapClickEvent } from '../messages/events/map-click.event';
5
- import * as i0 from "@angular/core";
6
- export declare class MapClickService implements IPostboyDependingService {
7
- private postboy;
8
- private map?;
9
- constructor(postboy: MapPostboyService);
10
- up(): void;
11
- onClick(ev: MapBrowserEvent<PointerEvent>): MapClickEvent;
12
- private observeMapRender;
13
- private getFeatureCollectionWithInner;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<MapClickService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<MapClickService>;
16
- }
@@ -1,17 +0,0 @@
1
- import { IPostboyDependingService } from '@artstesh/postboy';
2
- import { MapPostboyService } from './map-postboy.service';
3
- import * as i0 from "@angular/core";
4
- export declare class MapFeatureService implements IPostboyDependingService {
5
- private postboy;
6
- private map?;
7
- private fitPolygonsWaiting?;
8
- constructor(postboy: MapPostboyService);
9
- up(): void;
10
- private observeMapRender;
11
- private observePointerMove;
12
- private observeFitToFeatures;
13
- private observeFitToPolygons;
14
- private fitToGeometries;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<MapFeatureService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<MapFeatureService>;
17
- }
@@ -1,22 +0,0 @@
1
- import { MapPostboyService } from './map-postboy.service';
2
- import { IPostboyDependingService } from '@artstesh/postboy';
3
- import * as i0 from "@angular/core";
4
- export declare class MapManagementService implements IPostboyDependingService {
5
- private postboy;
6
- private map?;
7
- private layers;
8
- constructor(postboy: MapPostboyService);
9
- up(): void;
10
- private observeLayerQuery;
11
- private observeAddTile;
12
- private observeImageLayer;
13
- private observeMapRender;
14
- private observeAddLayer;
15
- private observePlaceFeatures;
16
- private observeRemoveLayer;
17
- private observeFeaturesInArea;
18
- private observeFeaturesInPoint;
19
- private forEachLayer;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
22
- }
@@ -1,7 +0,0 @@
1
- import { PostboyService } from '@artstesh/postboy';
2
- import * as i0 from "@angular/core";
3
- export declare class MapPostboyService extends PostboyService {
4
- constructor();
5
- static ɵfac: i0.ɵɵFactoryDeclaration<MapPostboyService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<MapPostboyService>;
7
- }
@@ -1,15 +0,0 @@
1
- import { MapPostboyService } from './map-postboy.service';
2
- import { IPostboyDependingService } from '@artstesh/postboy';
3
- import { MapPosition } from '../models';
4
- import * as i0 from "@angular/core";
5
- export declare class MapStateService implements IPostboyDependingService {
6
- private postboy;
7
- private map?;
8
- constructor(postboy: MapPostboyService);
9
- up(): void;
10
- getMapPosition(): MapPosition | null;
11
- private observeMapRendering;
12
- private observeCenter;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MapStateService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<MapStateService>;
15
- }
@@ -1,18 +0,0 @@
1
- import { MapPostboyService } from './map-postboy.service';
2
- import { PostboyAbstractRegistrator } from '@artstesh/postboy';
3
- import { MapManagementService } from './map-management.service';
4
- import { MapStateService } from './map-state.service';
5
- import { MapClickService } from './map-click.service';
6
- import { MapFeatureService } from './map-feature.service';
7
- import { DrawingService } from './drawing/drawing.service';
8
- import { FeatureModificationService } from './drawing/feature-modification.service';
9
- import { ControlsService } from './controls/controls.service';
10
- import * as i0 from "@angular/core";
11
- export declare class MessageRegistratorService extends PostboyAbstractRegistrator {
12
- private state;
13
- constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, mapFeature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, featureModification: FeatureModificationService, controls: ControlsService);
14
- protected _up(): void;
15
- private setExecutors;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
18
- }
@@ -1 +0,0 @@
1
- export * from './map/public-api';
@@ -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
- }