@artstesh/maps 6.0.6 → 6.0.7

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 (27) hide show
  1. package/dist/esm2022/map/messages/executors/filter-features-in-point.executor.mjs +20 -0
  2. package/dist/esm2022/map/messages/index.mjs +3 -1
  3. package/dist/esm2022/map/messages/queries/get-features-in-point.query.mjs +21 -0
  4. package/dist/esm2022/map/services/feature.service.mjs +5 -1
  5. package/dist/esm2022/map/services/map-management.service.mjs +28 -12
  6. package/dist/esm2022/map/services/message-registrator.service.mjs +5 -2
  7. package/dist/esm2022/src/map/messages/executors/filter-features-in-point.executor.mjs +20 -0
  8. package/dist/esm2022/src/map/messages/index.mjs +3 -1
  9. package/dist/esm2022/src/map/messages/queries/get-features-in-point.query.mjs +21 -0
  10. package/dist/esm2022/src/map/services/feature.service.mjs +5 -1
  11. package/dist/esm2022/src/map/services/map-management.service.mjs +28 -12
  12. package/dist/esm2022/src/map/services/message-registrator.service.mjs +5 -2
  13. package/dist/fesm2022/maps-components-src-map.mjs +71 -11
  14. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  15. package/dist/fesm2022/maps-components.mjs +71 -11
  16. package/dist/fesm2022/maps-components.mjs.map +1 -1
  17. package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +14 -0
  18. package/dist/map/messages/index.d.ts +2 -0
  19. package/dist/map/messages/queries/get-features-in-point.query.d.ts +15 -0
  20. package/dist/map/services/feature.service.d.ts +2 -0
  21. package/dist/map/services/map-management.service.d.ts +2 -0
  22. package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +14 -0
  23. package/dist/src/map/messages/index.d.ts +2 -0
  24. package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +15 -0
  25. package/dist/src/map/services/feature.service.d.ts +2 -0
  26. package/dist/src/map/services/map-management.service.d.ts +2 -0
  27. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import { PostboyExecutor } from '@artstesh/postboy';
2
+ import { Feature } from 'ol';
3
+ import { Geometry } from 'ol/geom';
4
+ /**
5
+ * The FilterFeaturesInPointExecutor class is responsible for filtering features within a given point.
6
+ */
7
+ export declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Feature<Geometry>[]> {
8
+ lat: number;
9
+ lng: number;
10
+ features: Feature<Geometry>[];
11
+ static readonly ID = "5b859282-5d5a-47ca-a6ad-863a66c8b82b";
12
+ get id(): string;
13
+ constructor(lat: number, lng: number, features: Feature<Geometry>[]);
14
+ }
@@ -15,3 +15,5 @@ export * from './commands/fit-to-polygons.command';
15
15
  export * from './executors/get-map-position.executor';
16
16
  export * from './queries/get-features-in-area.query';
17
17
  export * from './executors/filter-features-in-area.executor';
18
+ export * from './queries/get-features-in-point.query';
19
+ export * from './executors/filter-features-in-point.executor';
@@ -0,0 +1,15 @@
1
+ import { PostboyCallbackMessage } from '@artstesh/postboy';
2
+ import { Dictionary } from '@artstesh/collections';
3
+ import { IIdentified } from '../../models/i-identified';
4
+ /**
5
+ * Represents a query to retrieve features located at a specific geographical point.
6
+ * The query is defined by latitude, longitude, and an optional set of features to ignore.
7
+ */
8
+ export declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
9
+ lat: number;
10
+ lng: number;
11
+ ignore: Set<string>;
12
+ static readonly ID: string;
13
+ constructor(lat: number, lng: number, ignore?: Set<string>);
14
+ get id(): string;
15
+ }
@@ -1,9 +1,11 @@
1
1
  import { Geometry } from 'ol/geom';
2
2
  import { Feature } from 'ol';
3
3
  import { FilterFeaturesInAreaExecutor } from '../messages/executors/filter-features-in-area.executor';
4
+ import { FilterFeaturesInPointExecutor } from '../messages';
4
5
  export declare class FeatureService {
5
6
  constructor();
6
7
  static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
8
+ static filterFeaturesInPoint(query: FilterFeaturesInPointExecutor): Feature<Geometry>[];
7
9
  static calculateArea(g: Geometry | undefined): number;
8
10
  private static booleanIntersects;
9
11
  }
@@ -15,6 +15,8 @@ export declare class MapManagementService implements IPostboyDependingService {
15
15
  private observePlaceFeatures;
16
16
  private observeRemoveLayer;
17
17
  private observeFeaturesInArea;
18
+ private observeFeaturesInPoint;
19
+ private forEachLayer;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
19
21
  static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
20
22
  }
@@ -0,0 +1,14 @@
1
+ import { PostboyExecutor } from '@artstesh/postboy';
2
+ import { Feature } from 'ol';
3
+ import { Geometry } from 'ol/geom';
4
+ /**
5
+ * The FilterFeaturesInPointExecutor class is responsible for filtering features within a given point.
6
+ */
7
+ export declare class FilterFeaturesInPointExecutor extends PostboyExecutor<Feature<Geometry>[]> {
8
+ lat: number;
9
+ lng: number;
10
+ features: Feature<Geometry>[];
11
+ static readonly ID = "5b859282-5d5a-47ca-a6ad-863a66c8b82b";
12
+ get id(): string;
13
+ constructor(lat: number, lng: number, features: Feature<Geometry>[]);
14
+ }
@@ -15,3 +15,5 @@ export * from './commands/fit-to-polygons.command';
15
15
  export * from './executors/get-map-position.executor';
16
16
  export * from './queries/get-features-in-area.query';
17
17
  export * from './executors/filter-features-in-area.executor';
18
+ export * from './queries/get-features-in-point.query';
19
+ export * from './executors/filter-features-in-point.executor';
@@ -0,0 +1,15 @@
1
+ import { PostboyCallbackMessage } from '@artstesh/postboy';
2
+ import { Dictionary } from '@artstesh/collections';
3
+ import { IIdentified } from '../../models/i-identified';
4
+ /**
5
+ * Represents a query to retrieve features located at a specific geographical point.
6
+ * The query is defined by latitude, longitude, and an optional set of features to ignore.
7
+ */
8
+ export declare class GetFeaturesInPointQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
9
+ lat: number;
10
+ lng: number;
11
+ ignore: Set<string>;
12
+ static readonly ID: string;
13
+ constructor(lat: number, lng: number, ignore?: Set<string>);
14
+ get id(): string;
15
+ }
@@ -1,9 +1,11 @@
1
1
  import { Geometry } from 'ol/geom';
2
2
  import { Feature } from 'ol';
3
3
  import { FilterFeaturesInAreaExecutor } from '../messages/executors/filter-features-in-area.executor';
4
+ import { FilterFeaturesInPointExecutor } from '../messages';
4
5
  export declare class FeatureService {
5
6
  constructor();
6
7
  static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
8
+ static filterFeaturesInPoint(query: FilterFeaturesInPointExecutor): Feature<Geometry>[];
7
9
  static calculateArea(g: Geometry | undefined): number;
8
10
  private static booleanIntersects;
9
11
  }
@@ -15,6 +15,8 @@ export declare class MapManagementService implements IPostboyDependingService {
15
15
  private observePlaceFeatures;
16
16
  private observeRemoveLayer;
17
17
  private observeFeaturesInArea;
18
+ private observeFeaturesInPoint;
19
+ private forEachLayer;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
19
21
  static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",