@artstesh/maps 5.0.8 → 5.0.9
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/index.mjs +2 -1
- package/dist/esm2022/map/helpers/stringify-feature.helper.mjs +58 -0
- package/dist/esm2022/map/map-plate/map-plate.component.mjs +4 -1
- package/dist/esm2022/map/messages/queries/generate-draw.query.mjs +17 -0
- package/dist/esm2022/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/map/services/drawing/drawing-generation.service.mjs +29 -0
- package/dist/esm2022/map/services/drawing/drawing.service.mjs +13 -13
- package/dist/esm2022/map/services/message-registrator.service.mjs +8 -5
- package/dist/esm2022/src/map/helpers/index.mjs +2 -1
- package/dist/esm2022/src/map/helpers/stringify-feature.helper.mjs +58 -0
- package/dist/esm2022/src/map/map-plate/map-plate.component.mjs +4 -1
- package/dist/esm2022/src/map/messages/queries/generate-draw.query.mjs +17 -0
- package/dist/esm2022/src/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/src/map/services/drawing/drawing-generation.service.mjs +29 -0
- package/dist/esm2022/src/map/services/drawing/drawing.service.mjs +13 -13
- package/dist/esm2022/src/map/services/message-registrator.service.mjs +8 -5
- package/dist/fesm2022/maps-components-src-map.mjs +113 -18
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +113 -18
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/helpers/index.d.ts +1 -0
- package/dist/map/helpers/stringify-feature.helper.d.ts +8 -0
- package/dist/map/messages/queries/generate-draw.query.d.ts +14 -0
- package/dist/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/map/services/drawing/drawing-generation.service.d.ts +10 -0
- package/dist/map/services/message-registrator.service.d.ts +2 -1
- package/dist/src/map/helpers/index.d.ts +1 -0
- package/dist/src/map/helpers/stringify-feature.helper.d.ts +8 -0
- package/dist/src/map/messages/queries/generate-draw.query.d.ts +14 -0
- package/dist/src/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/src/map/services/drawing/drawing-generation.service.d.ts +10 -0
- package/dist/src/map/services/message-registrator.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Feature } from 'ol';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { FeatureOutputFormat } from '../models';
|
|
4
|
+
export declare class StringifyFeatureHelper {
|
|
5
|
+
static polygon(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
|
|
6
|
+
static circle(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
|
|
7
|
+
private static drawCircle;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Vector as Layer } from 'ol/layer';
|
|
3
|
+
import VectorSource from 'ol/source/Vector';
|
|
4
|
+
import { Draw } from 'ol/interaction';
|
|
5
|
+
import { DrawingType } from '../../models';
|
|
6
|
+
import Style from 'ol/style/Style';
|
|
7
|
+
export declare class GenerateDrawQuery extends PostboyCallbackMessage<Draw> {
|
|
8
|
+
layer: Layer<VectorSource<any>>;
|
|
9
|
+
style: Style;
|
|
10
|
+
type: DrawingType;
|
|
11
|
+
static readonly ID: string;
|
|
12
|
+
constructor(layer: Layer<VectorSource<any>>, style: Style, type: DrawingType);
|
|
13
|
+
get id(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPostboyDependingService } from '@artstesh/postboy';
|
|
2
|
+
import { MapPostboyService } from '../map-postboy.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DrawingGenerationService implements IPostboyDependingService {
|
|
5
|
+
private postboy;
|
|
6
|
+
constructor(postboy: MapPostboyService);
|
|
7
|
+
up(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawingGenerationService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DrawingGenerationService>;
|
|
10
|
+
}
|
|
@@ -5,9 +5,10 @@ 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 { DrawingGenerationService } from './drawing/drawing-generation.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
10
|
-
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, feature: MapFeatureService, interaction: MapClickService, drawing: DrawingService);
|
|
11
|
+
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, feature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, drawGenerator: DrawingGenerationService);
|
|
11
12
|
protected _up(): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
|
|
13
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Feature } from 'ol';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { FeatureOutputFormat } from '../models';
|
|
4
|
+
export declare class StringifyFeatureHelper {
|
|
5
|
+
static polygon(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
|
|
6
|
+
static circle(feature: Feature<Geometry>, format?: FeatureOutputFormat): string;
|
|
7
|
+
private static drawCircle;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
|
+
import { Vector as Layer } from 'ol/layer';
|
|
3
|
+
import VectorSource from 'ol/source/Vector';
|
|
4
|
+
import { Draw } from 'ol/interaction';
|
|
5
|
+
import { DrawingType } from '../../models';
|
|
6
|
+
import Style from 'ol/style/Style';
|
|
7
|
+
export declare class GenerateDrawQuery extends PostboyCallbackMessage<Draw> {
|
|
8
|
+
layer: Layer<VectorSource<any>>;
|
|
9
|
+
style: Style;
|
|
10
|
+
type: DrawingType;
|
|
11
|
+
static readonly ID: string;
|
|
12
|
+
constructor(layer: Layer<VectorSource<any>>, style: Style, type: DrawingType);
|
|
13
|
+
get id(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPostboyDependingService } from '@artstesh/postboy';
|
|
2
|
+
import { MapPostboyService } from '../map-postboy.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DrawingGenerationService implements IPostboyDependingService {
|
|
5
|
+
private postboy;
|
|
6
|
+
constructor(postboy: MapPostboyService);
|
|
7
|
+
up(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawingGenerationService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DrawingGenerationService>;
|
|
10
|
+
}
|
|
@@ -5,9 +5,10 @@ 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 { DrawingGenerationService } from './drawing/drawing-generation.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
10
|
-
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, feature: MapFeatureService, interaction: MapClickService, drawing: DrawingService);
|
|
11
|
+
constructor(service: MapPostboyService, management: MapManagementService, state: MapStateService, feature: MapFeatureService, interaction: MapClickService, drawing: DrawingService, drawGenerator: DrawingGenerationService);
|
|
11
12
|
protected _up(): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageRegistratorService, never>;
|
|
13
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageRegistratorService>;
|