@artstesh/maps 5.0.9 → 5.0.11
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.
- package/dist/esm2022/map/helpers/polygon-style.helper.mjs +19 -2
- package/dist/esm2022/map/map-plate/map-plate.component.mjs +7 -1
- package/dist/esm2022/map/messages/commands/cancel-feature-modification.command.mjs +8 -0
- package/dist/esm2022/map/messages/commands/draw-selection-area.command.mjs +17 -0
- package/dist/esm2022/map/messages/commands/modify-feature.command.mjs +18 -0
- package/dist/esm2022/map/messages/executors/filter-features-in-area.executor.mjs +15 -0
- package/dist/esm2022/map/messages/executors/generate-draw.executor.mjs +17 -0
- package/dist/esm2022/map/messages/index.mjs +4 -1
- package/dist/esm2022/map/messages/queries/get-features-in-area.query.mjs +15 -0
- package/dist/esm2022/map/models/dictionary.mjs +54 -0
- package/dist/esm2022/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/map/models/index.mjs +2 -1
- package/dist/esm2022/map/services/drawing/drawing-generation.service.mjs +16 -22
- package/dist/esm2022/map/services/drawing/drawing.service.mjs +32 -14
- package/dist/esm2022/map/services/drawing/feature-modification.service.mjs +103 -0
- package/dist/esm2022/map/services/feature.service.mjs +16 -0
- package/dist/esm2022/map/services/map-management.service.mjs +28 -7
- package/dist/esm2022/map/services/message-registrator.service.mjs +23 -8
- package/dist/esm2022/src/map/helpers/polygon-style.helper.mjs +19 -2
- package/dist/esm2022/src/map/map-plate/map-plate.component.mjs +7 -1
- package/dist/esm2022/src/map/messages/commands/cancel-feature-modification.command.mjs +8 -0
- package/dist/esm2022/src/map/messages/commands/draw-selection-area.command.mjs +17 -0
- package/dist/esm2022/src/map/messages/commands/modify-feature.command.mjs +18 -0
- package/dist/esm2022/src/map/messages/executors/filter-features-in-area.executor.mjs +15 -0
- package/dist/esm2022/src/map/messages/executors/generate-draw.executor.mjs +17 -0
- package/dist/esm2022/src/map/messages/index.mjs +4 -1
- package/dist/esm2022/src/map/messages/queries/get-features-in-area.query.mjs +15 -0
- package/dist/esm2022/src/map/models/dictionary.mjs +54 -0
- package/dist/esm2022/src/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/src/map/models/index.mjs +2 -1
- package/dist/esm2022/src/map/services/drawing/drawing-generation.service.mjs +16 -22
- package/dist/esm2022/src/map/services/drawing/drawing.service.mjs +32 -14
- package/dist/esm2022/src/map/services/drawing/feature-modification.service.mjs +103 -0
- package/dist/esm2022/src/map/services/feature.service.mjs +16 -0
- package/dist/esm2022/src/map/services/map-management.service.mjs +28 -7
- package/dist/esm2022/src/map/services/message-registrator.service.mjs +23 -8
- package/dist/fesm2022/maps-components-src-map.mjs +328 -40
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +328 -40
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/helpers/polygon-style.helper.d.ts +1 -0
- package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +5 -0
- package/dist/map/messages/commands/draw-selection-area.command.d.ts +12 -0
- package/dist/map/messages/commands/modify-feature.command.d.ts +11 -0
- package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +10 -0
- package/dist/map/messages/{queries/generate-draw.query.d.ts → executors/generate-draw.executor.d.ts} +2 -2
- package/dist/map/messages/index.d.ts +3 -0
- package/dist/map/messages/queries/get-features-in-area.query.d.ts +11 -0
- package/dist/map/models/dictionary.d.ts +17 -0
- package/dist/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/map/models/index.d.ts +1 -0
- package/dist/map/services/drawing/drawing-generation.service.d.ts +5 -9
- package/dist/map/services/drawing/drawing.service.d.ts +2 -0
- package/dist/map/services/drawing/feature-modification.service.d.ts +22 -0
- package/dist/map/services/feature.service.d.ts +8 -0
- package/dist/map/services/map-management.service.d.ts +1 -0
- package/dist/map/services/message-registrator.service.d.ts +3 -2
- package/dist/package.json +1 -1
- package/dist/src/map/helpers/polygon-style.helper.d.ts +1 -0
- package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +5 -0
- package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +12 -0
- package/dist/src/map/messages/commands/modify-feature.command.d.ts +11 -0
- package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +10 -0
- package/dist/src/map/messages/{queries/generate-draw.query.d.ts → executors/generate-draw.executor.d.ts} +2 -2
- package/dist/src/map/messages/index.d.ts +3 -0
- package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +11 -0
- package/dist/src/map/models/dictionary.d.ts +17 -0
- package/dist/src/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/src/map/models/index.d.ts +1 -0
- package/dist/src/map/services/drawing/drawing-generation.service.d.ts +5 -9
- package/dist/src/map/services/drawing/drawing.service.d.ts +2 -0
- package/dist/src/map/services/drawing/feature-modification.service.d.ts +22 -0
- package/dist/src/map/services/feature.service.d.ts +8 -0
- package/dist/src/map/services/map-management.service.d.ts +1 -0
- package/dist/src/map/services/message-registrator.service.d.ts +3 -2
- package/package.json +2 -2
- package/dist/esm2022/map/messages/queries/generate-draw.query.mjs +0 -17
- package/dist/esm2022/src/map/messages/queries/generate-draw.query.mjs +0 -17
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Dictionary, DrawingType } from '../../models';
|
|
3
|
+
import Style from 'ol/style/Style';
|
|
4
|
+
import { IIdentified } from '../../models/i-identified';
|
|
5
|
+
export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
|
|
6
|
+
type: DrawingType;
|
|
7
|
+
style: Style;
|
|
8
|
+
ignore: Set<string>;
|
|
9
|
+
static readonly ID: string;
|
|
10
|
+
constructor(type: DrawingType, style: Style, ignore?: Set<string>);
|
|
11
|
+
get id(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { FeatureOutputFormat, PolygonModel } from '../../models';
|
|
3
|
+
import Style from 'ol/style/Style';
|
|
4
|
+
export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string | null> {
|
|
5
|
+
model: PolygonModel;
|
|
6
|
+
style: Style;
|
|
7
|
+
format: FeatureOutputFormat;
|
|
8
|
+
static readonly ID: string;
|
|
9
|
+
constructor(model: PolygonModel, style: Style, format?: FeatureOutputFormat);
|
|
10
|
+
get id(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
import { Geometry } from 'ol/geom';
|
|
4
|
+
export declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
|
|
5
|
+
area: Geometry;
|
|
6
|
+
features: Feature<Geometry>[];
|
|
7
|
+
static readonly ID: string;
|
|
8
|
+
constructor(area: Geometry, features: Feature<Geometry>[]);
|
|
9
|
+
get id(): string;
|
|
10
|
+
}
|
package/dist/map/messages/{queries/generate-draw.query.d.ts → executors/generate-draw.executor.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
2
|
import { Vector as Layer } from 'ol/layer';
|
|
3
3
|
import VectorSource from 'ol/source/Vector';
|
|
4
4
|
import { Draw } from 'ol/interaction';
|
|
5
5
|
import { DrawingType } from '../../models';
|
|
6
6
|
import Style from 'ol/style/Style';
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class GenerateDrawExecutor extends PostboyExecutor<Draw> {
|
|
8
8
|
layer: Layer<VectorSource<any>>;
|
|
9
9
|
style: Style;
|
|
10
10
|
type: DrawingType;
|
|
@@ -4,3 +4,6 @@ export * from './events/map-move-end.event';
|
|
|
4
4
|
export * from './commands/close-tooltip.command';
|
|
5
5
|
export * from './commands/start-drawing.command';
|
|
6
6
|
export * from './commands/cancel-drawing.command';
|
|
7
|
+
export * from './commands/draw-selection-area.command';
|
|
8
|
+
export * from './commands/modify-feature.command';
|
|
9
|
+
export * from './commands/cancel-feature-modification.command';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { Dictionary } from '../../models';
|
|
4
|
+
import { IIdentified } from '../../models/i-identified';
|
|
5
|
+
export declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
|
|
6
|
+
area: Geometry;
|
|
7
|
+
ignore: Set<string>;
|
|
8
|
+
static readonly ID: string;
|
|
9
|
+
constructor(area: Geometry, ignore?: Set<string>);
|
|
10
|
+
get id(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class Dictionary<T> {
|
|
2
|
+
collection: DictionaryType<T>;
|
|
3
|
+
private _keys;
|
|
4
|
+
get keys(): string[];
|
|
5
|
+
get size(): number;
|
|
6
|
+
static clone<T>(dic: Dictionary<T>, action?: (e: T, k: string) => T): Dictionary<T>;
|
|
7
|
+
static create<T>(dic: DictionaryType<T>, action?: (e: T, k: string) => T): Dictionary<T>;
|
|
8
|
+
find(predicate: (value: T) => boolean): T | null;
|
|
9
|
+
has: (key: string) => boolean;
|
|
10
|
+
take(key: string): T | null;
|
|
11
|
+
put(key: string, value?: T | null): void;
|
|
12
|
+
rmv(key: string): void;
|
|
13
|
+
forEach(callback: (value: T, index: number) => void): void;
|
|
14
|
+
}
|
|
15
|
+
export type DictionaryType<T> = {
|
|
16
|
+
[id: string]: T;
|
|
17
|
+
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
constructor(postboy: MapPostboyService);
|
|
7
|
-
up(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawingGenerationService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DrawingGenerationService>;
|
|
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;
|
|
10
6
|
}
|
|
@@ -7,6 +7,8 @@ export declare class DrawingService implements IPostboyDependingService {
|
|
|
7
7
|
private map?;
|
|
8
8
|
constructor(postboy: MapPostboyService);
|
|
9
9
|
up(): void;
|
|
10
|
+
private observeSelectArea;
|
|
11
|
+
private observeDrawing;
|
|
10
12
|
private onEnd;
|
|
11
13
|
private observeMapRender;
|
|
12
14
|
private draw;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
import { FilterFeaturesInAreaExecutor } from '../messages/executors/filter-features-in-area.executor';
|
|
4
|
+
export declare class FeatureService {
|
|
5
|
+
constructor();
|
|
6
|
+
static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
|
|
7
|
+
private static booleanIntersects;
|
|
8
|
+
}
|
|
@@ -14,6 +14,7 @@ export declare class MapManagementService implements IPostboyDependingService {
|
|
|
14
14
|
private observeAddLayer;
|
|
15
15
|
private observePlaceFeatures;
|
|
16
16
|
private observeRemoveLayer;
|
|
17
|
+
private observeFeaturesInArea;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
|
|
18
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
|
|
19
20
|
}
|
|
@@ -5,11 +5,12 @@ import { MapStateService } from './map-state.service';
|
|
|
5
5
|
import { MapClickService } from './map-click.service';
|
|
6
6
|
import { MapFeatureService } from './map-feature.service';
|
|
7
7
|
import { DrawingService } from './drawing/drawing.service';
|
|
8
|
-
import {
|
|
8
|
+
import { FeatureModificationService } from './drawing/feature-modification.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
11
|
-
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService,
|
|
11
|
+
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, mapFeature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, featureModification: FeatureModificationService);
|
|
12
12
|
protected _up(): void;
|
|
13
|
+
private setExecutors;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
|
|
15
16
|
}
|
package/dist/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Dictionary, DrawingType } from '../../models';
|
|
3
|
+
import Style from 'ol/style/Style';
|
|
4
|
+
import { IIdentified } from '../../models/i-identified';
|
|
5
|
+
export declare class DrawSelectionAreaCommand extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
|
|
6
|
+
type: DrawingType;
|
|
7
|
+
style: Style;
|
|
8
|
+
ignore: Set<string>;
|
|
9
|
+
static readonly ID: string;
|
|
10
|
+
constructor(type: DrawingType, style: Style, ignore?: Set<string>);
|
|
11
|
+
get id(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { FeatureOutputFormat, PolygonModel } from '../../models';
|
|
3
|
+
import Style from 'ol/style/Style';
|
|
4
|
+
export declare class ModifyFeatureCommand extends PostboyCallbackMessage<string | null> {
|
|
5
|
+
model: PolygonModel;
|
|
6
|
+
style: Style;
|
|
7
|
+
format: FeatureOutputFormat;
|
|
8
|
+
static readonly ID: string;
|
|
9
|
+
constructor(model: PolygonModel, style: Style, format?: FeatureOutputFormat);
|
|
10
|
+
get id(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
import { Geometry } from 'ol/geom';
|
|
4
|
+
export declare class FilterFeaturesInAreaExecutor extends PostboyExecutor<Feature<Geometry>[]> {
|
|
5
|
+
area: Geometry;
|
|
6
|
+
features: Feature<Geometry>[];
|
|
7
|
+
static readonly ID: string;
|
|
8
|
+
constructor(area: Geometry, features: Feature<Geometry>[]);
|
|
9
|
+
get id(): string;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
2
|
import { Vector as Layer } from 'ol/layer';
|
|
3
3
|
import VectorSource from 'ol/source/Vector';
|
|
4
4
|
import { Draw } from 'ol/interaction';
|
|
5
5
|
import { DrawingType } from '../../models';
|
|
6
6
|
import Style from 'ol/style/Style';
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class GenerateDrawExecutor extends PostboyExecutor<Draw> {
|
|
8
8
|
layer: Layer<VectorSource<any>>;
|
|
9
9
|
style: Style;
|
|
10
10
|
type: DrawingType;
|
|
@@ -4,3 +4,6 @@ export * from './events/map-move-end.event';
|
|
|
4
4
|
export * from './commands/close-tooltip.command';
|
|
5
5
|
export * from './commands/start-drawing.command';
|
|
6
6
|
export * from './commands/cancel-drawing.command';
|
|
7
|
+
export * from './commands/draw-selection-area.command';
|
|
8
|
+
export * from './commands/modify-feature.command';
|
|
9
|
+
export * from './commands/cancel-feature-modification.command';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { Dictionary } from '../../models';
|
|
4
|
+
import { IIdentified } from '../../models/i-identified';
|
|
5
|
+
export declare class GetFeaturesInAreaQuery extends PostboyCallbackMessage<Dictionary<IIdentified[]>> {
|
|
6
|
+
area: Geometry;
|
|
7
|
+
ignore: Set<string>;
|
|
8
|
+
static readonly ID: string;
|
|
9
|
+
constructor(area: Geometry, ignore?: Set<string>);
|
|
10
|
+
get id(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class Dictionary<T> {
|
|
2
|
+
collection: DictionaryType<T>;
|
|
3
|
+
private _keys;
|
|
4
|
+
get keys(): string[];
|
|
5
|
+
get size(): number;
|
|
6
|
+
static clone<T>(dic: Dictionary<T>, action?: (e: T, k: string) => T): Dictionary<T>;
|
|
7
|
+
static create<T>(dic: DictionaryType<T>, action?: (e: T, k: string) => T): Dictionary<T>;
|
|
8
|
+
find(predicate: (value: T) => boolean): T | null;
|
|
9
|
+
has: (key: string) => boolean;
|
|
10
|
+
take(key: string): T | null;
|
|
11
|
+
put(key: string, value?: T | null): void;
|
|
12
|
+
rmv(key: string): void;
|
|
13
|
+
forEach(callback: (value: T, index: number) => void): void;
|
|
14
|
+
}
|
|
15
|
+
export type DictionaryType<T> = {
|
|
16
|
+
[id: string]: T;
|
|
17
|
+
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
constructor(postboy: MapPostboyService);
|
|
7
|
-
up(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawingGenerationService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DrawingGenerationService>;
|
|
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;
|
|
10
6
|
}
|
|
@@ -7,6 +7,8 @@ export declare class DrawingService implements IPostboyDependingService {
|
|
|
7
7
|
private map?;
|
|
8
8
|
constructor(postboy: MapPostboyService);
|
|
9
9
|
up(): void;
|
|
10
|
+
private observeSelectArea;
|
|
11
|
+
private observeDrawing;
|
|
10
12
|
private onEnd;
|
|
11
13
|
private observeMapRender;
|
|
12
14
|
private draw;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
import { FilterFeaturesInAreaExecutor } from '../messages/executors/filter-features-in-area.executor';
|
|
4
|
+
export declare class FeatureService {
|
|
5
|
+
constructor();
|
|
6
|
+
static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
|
|
7
|
+
private static booleanIntersects;
|
|
8
|
+
}
|
|
@@ -14,6 +14,7 @@ export declare class MapManagementService implements IPostboyDependingService {
|
|
|
14
14
|
private observeAddLayer;
|
|
15
15
|
private observePlaceFeatures;
|
|
16
16
|
private observeRemoveLayer;
|
|
17
|
+
private observeFeaturesInArea;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapManagementService, never>;
|
|
18
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapManagementService>;
|
|
19
20
|
}
|
|
@@ -5,11 +5,12 @@ import { MapStateService } from './map-state.service';
|
|
|
5
5
|
import { MapClickService } from './map-click.service';
|
|
6
6
|
import { MapFeatureService } from './map-feature.service';
|
|
7
7
|
import { DrawingService } from './drawing/drawing.service';
|
|
8
|
-
import {
|
|
8
|
+
import { FeatureModificationService } from './drawing/feature-modification.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
11
|
-
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService,
|
|
11
|
+
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, mapFeature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, featureModification: FeatureModificationService);
|
|
12
12
|
protected _up(): void;
|
|
13
|
+
private setExecutors;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
|
|
15
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artstesh/maps",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
4
4
|
"author": "artstesh",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Let's draw a map ;)",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"zone.js": "~0.13.0",
|
|
45
45
|
"ol-geocoder": "^4.0.0",
|
|
46
46
|
"ol": "^6.9.0",
|
|
47
|
-
"@artstesh/postboy": "
|
|
47
|
+
"@artstesh/postboy": "1.0.8"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@angular-builders/custom-webpack": "^16.0.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
-
export class GenerateDrawQuery extends PostboyCallbackMessage {
|
|
3
|
-
layer;
|
|
4
|
-
style;
|
|
5
|
-
type;
|
|
6
|
-
static ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
|
|
7
|
-
constructor(layer, style, type) {
|
|
8
|
-
super();
|
|
9
|
-
this.layer = layer;
|
|
10
|
-
this.style = style;
|
|
11
|
-
this.type = type;
|
|
12
|
-
}
|
|
13
|
-
get id() {
|
|
14
|
-
return GenerateDrawQuery.ID;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUtZHJhdy5xdWVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy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TWVzc2FnZTxEcmF3PiB7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgSUQ6IHN0cmluZyA9ICdmMDFjOTliYS0wOTUzLTRhYjUtODJmOS0wNGU2ZmJiNjc4YzEnO1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBsYXllcjogTGF5ZXI8VmVjdG9yU291cmNlPGFueT4+LCBwdWJsaWMgc3R5bGU6IFN0eWxlLCBwdWJsaWMgdHlwZTogRHJhd2luZ1R5cGUpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgcHVibGljIGdldCBpZCgpOiBzdHJpbmcge1xuICAgIHJldHVybiBHZW5lcmF0ZURyYXdRdWVyeS5JRDtcbiAgfVxufVxuIl19
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
-
export class GenerateDrawQuery extends PostboyCallbackMessage {
|
|
3
|
-
layer;
|
|
4
|
-
style;
|
|
5
|
-
type;
|
|
6
|
-
static ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
|
|
7
|
-
constructor(layer, style, type) {
|
|
8
|
-
super();
|
|
9
|
-
this.layer = layer;
|
|
10
|
-
this.style = style;
|
|
11
|
-
this.type = type;
|
|
12
|
-
}
|
|
13
|
-
get id() {
|
|
14
|
-
return GenerateDrawQuery.ID;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUtZHJhdy5xdWVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcHMtY29tcG9uZW50cy9zcmMvbWFwL21lc3NhZ2VzL3F1ZXJpZXMvZ2VuZXJhdGUtZHJhdy5xdWVyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQU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