@artstesh/maps 4.0.9 → 4.0.10
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/esm2020/map/map-plate/map-plate.component.mjs +4 -1
- package/dist/esm2020/map/messages/commands/draw-selection-area.command.mjs +14 -0
- package/dist/esm2020/map/messages/index.mjs +2 -1
- package/dist/esm2020/map/messages/queries/filter-features-in-area.query.mjs +13 -0
- package/dist/esm2020/map/messages/queries/get-features-in-area.query.mjs +13 -0
- package/dist/esm2020/map/models/dictionary.mjs +56 -0
- package/dist/esm2020/map/models/index.mjs +2 -1
- package/dist/esm2020/map/services/drawing/drawing.service.mjs +25 -3
- package/dist/esm2020/map/services/feature.service.mjs +29 -0
- package/dist/esm2020/map/services/map-management.service.mjs +36 -7
- package/dist/esm2020/map/services/message-registrator.service.mjs +12 -5
- package/dist/esm2020/src/map/map-plate/map-plate.component.mjs +4 -1
- package/dist/esm2020/src/map/messages/commands/draw-selection-area.command.mjs +14 -0
- package/dist/esm2020/src/map/messages/index.mjs +2 -1
- package/dist/esm2020/src/map/messages/queries/filter-features-in-area.query.mjs +13 -0
- package/dist/esm2020/src/map/messages/queries/get-features-in-area.query.mjs +13 -0
- package/dist/esm2020/src/map/models/dictionary.mjs +56 -0
- package/dist/esm2020/src/map/models/index.mjs +2 -1
- package/dist/esm2020/src/map/services/drawing/drawing.service.mjs +25 -3
- package/dist/esm2020/src/map/services/feature.service.mjs +29 -0
- package/dist/esm2020/src/map/services/map-management.service.mjs +36 -7
- package/dist/esm2020/src/map/services/message-registrator.service.mjs +12 -5
- package/dist/fesm2015/maps-components-src-map.mjs +181 -15
- package/dist/fesm2015/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2015/maps-components.mjs +181 -15
- package/dist/fesm2015/maps-components.mjs.map +1 -1
- package/dist/fesm2020/maps-components-src-map.mjs +180 -14
- package/dist/fesm2020/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2020/maps-components.mjs +180 -14
- package/dist/fesm2020/maps-components.mjs.map +1 -1
- package/dist/map/messages/commands/draw-selection-area.command.d.ts +12 -0
- package/dist/map/messages/index.d.ts +1 -0
- package/dist/map/messages/queries/filter-features-in-area.query.d.ts +10 -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/index.d.ts +1 -0
- package/dist/map/services/drawing/drawing.service.d.ts +2 -0
- package/dist/map/services/feature.service.d.ts +11 -0
- package/dist/map/services/map-management.service.d.ts +1 -0
- package/dist/map/services/message-registrator.service.d.ts +2 -1
- package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +12 -0
- package/dist/src/map/messages/index.d.ts +1 -0
- package/dist/src/map/messages/queries/filter-features-in-area.query.d.ts +10 -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/index.d.ts +1 -0
- package/dist/src/map/services/drawing/drawing.service.d.ts +2 -0
- package/dist/src/map/services/feature.service.d.ts +11 -0
- package/dist/src/map/services/map-management.service.d.ts +1 -0
- package/dist/src/map/services/message-registrator.service.d.ts +2 -1
- package/package.json +2 -2
|
@@ -8,7 +8,8 @@ import { GeoJSON, WKT } from 'ol/format';
|
|
|
8
8
|
import { getCenter, createEmpty, extend } from 'ol/extent';
|
|
9
9
|
import { get, useGeographic, transform } from 'ol/proj';
|
|
10
10
|
import { PostboyGenericMessage, PostboyCallbackMessage, PostboyService, PostboyAbstractRegistrator } from '@artstesh/postboy';
|
|
11
|
-
import {
|
|
11
|
+
import { forkJoin, combineLatest } from 'rxjs';
|
|
12
|
+
import { tap, first, filter, auditTime } from 'rxjs/operators';
|
|
12
13
|
import { Vector, XYZ } from 'ol/source';
|
|
13
14
|
import { Draw } from 'ol/interaction';
|
|
14
15
|
import { createRegularPolygon } from 'ol/interaction/Draw';
|
|
@@ -18,7 +19,6 @@ import { Vector as Vector$1 } from 'ol/layer';
|
|
|
18
19
|
import { bbox } from 'ol/loadingstrategy';
|
|
19
20
|
import Polygon, { fromExtent } from 'ol/geom/Polygon';
|
|
20
21
|
import Cluster from 'ol/source/Cluster';
|
|
21
|
-
import { combineLatest } from 'rxjs';
|
|
22
22
|
import Map from 'ol/Map';
|
|
23
23
|
import View from 'ol/View';
|
|
24
24
|
import Overlay from 'ol/Overlay';
|
|
@@ -188,6 +188,62 @@ var FeatureOutputFormat;
|
|
|
188
188
|
FeatureOutputFormat[FeatureOutputFormat["WKT"] = 2] = "WKT";
|
|
189
189
|
})(FeatureOutputFormat || (FeatureOutputFormat = {}));
|
|
190
190
|
|
|
191
|
+
class Dictionary {
|
|
192
|
+
constructor() {
|
|
193
|
+
this.collection = {};
|
|
194
|
+
this._keys = new Set();
|
|
195
|
+
this.has = (key) => this._keys.has(key);
|
|
196
|
+
}
|
|
197
|
+
get keys() {
|
|
198
|
+
return Array.from(this._keys);
|
|
199
|
+
}
|
|
200
|
+
get size() {
|
|
201
|
+
return this._keys.size;
|
|
202
|
+
}
|
|
203
|
+
static clone(dic, action) {
|
|
204
|
+
return Dictionary.create(dic.collection, action);
|
|
205
|
+
}
|
|
206
|
+
static create(dic, action) {
|
|
207
|
+
let keyList = Object.keys(dic);
|
|
208
|
+
const result = new Dictionary();
|
|
209
|
+
for (let i = 0; i < keyList.length; i++) {
|
|
210
|
+
let key = keyList[i];
|
|
211
|
+
result._keys.add(key);
|
|
212
|
+
result.collection[key] = action ? action(dic[key], key) : dic[key];
|
|
213
|
+
}
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
find(predicate) {
|
|
217
|
+
let result = null;
|
|
218
|
+
this.forEach((e) => {
|
|
219
|
+
if (result === null && predicate(e))
|
|
220
|
+
result = e;
|
|
221
|
+
});
|
|
222
|
+
return result;
|
|
223
|
+
}
|
|
224
|
+
take(key) {
|
|
225
|
+
return this._keys.has(key) ? this.collection[key] : null;
|
|
226
|
+
}
|
|
227
|
+
put(key, value) {
|
|
228
|
+
if (value == null)
|
|
229
|
+
return;
|
|
230
|
+
this.collection[key] = value;
|
|
231
|
+
this._keys.add(key);
|
|
232
|
+
}
|
|
233
|
+
rmv(key) {
|
|
234
|
+
if (!this._keys.has(key))
|
|
235
|
+
return;
|
|
236
|
+
delete this.collection[key];
|
|
237
|
+
this._keys.delete(key);
|
|
238
|
+
}
|
|
239
|
+
forEach(callback) {
|
|
240
|
+
let keys = Object.keys(this.collection);
|
|
241
|
+
for (let i = 0; i < keys.length; i++) {
|
|
242
|
+
callback(this.collection[keys[i]], i);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
191
247
|
class MapRenderedEvent extends PostboyGenericMessage {
|
|
192
248
|
constructor(map) {
|
|
193
249
|
super();
|
|
@@ -255,6 +311,19 @@ class CancelDrawingCommand extends PostboyGenericMessage {
|
|
|
255
311
|
}
|
|
256
312
|
CancelDrawingCommand.ID = '7d38d983-feba-4176-a66b-18175e5ecd6b';
|
|
257
313
|
|
|
314
|
+
class DrawSelectionAreaCommand extends PostboyCallbackMessage {
|
|
315
|
+
constructor(type, style, ignore = new Set()) {
|
|
316
|
+
super();
|
|
317
|
+
this.type = type;
|
|
318
|
+
this.style = style;
|
|
319
|
+
this.ignore = ignore;
|
|
320
|
+
}
|
|
321
|
+
get id() {
|
|
322
|
+
return DrawSelectionAreaCommand.ID;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
DrawSelectionAreaCommand.ID = '573d8a0d-f25b-42b7-9ad7-0ac6d86ac362';
|
|
326
|
+
|
|
258
327
|
class AddLayerCommand extends PostboyGenericMessage {
|
|
259
328
|
constructor(layer) {
|
|
260
329
|
super();
|
|
@@ -357,6 +426,30 @@ class GenerateDrawQuery extends PostboyCallbackMessage {
|
|
|
357
426
|
}
|
|
358
427
|
GenerateDrawQuery.ID = 'f01c99ba-0953-4ab5-82f9-04e6fbb678c1';
|
|
359
428
|
|
|
429
|
+
class FilterFeaturesInAreaQuery extends PostboyCallbackMessage {
|
|
430
|
+
constructor(area, features) {
|
|
431
|
+
super();
|
|
432
|
+
this.area = area;
|
|
433
|
+
this.features = features;
|
|
434
|
+
}
|
|
435
|
+
get id() {
|
|
436
|
+
return FilterFeaturesInAreaQuery.ID;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
FilterFeaturesInAreaQuery.ID = '36bb2d94-8028-4512-90dd-2386af3fc67c';
|
|
440
|
+
|
|
441
|
+
class GetFeaturesInAreaQuery extends PostboyCallbackMessage {
|
|
442
|
+
constructor(area, ignore = new Set()) {
|
|
443
|
+
super();
|
|
444
|
+
this.area = area;
|
|
445
|
+
this.ignore = ignore;
|
|
446
|
+
}
|
|
447
|
+
get id() {
|
|
448
|
+
return GetFeaturesInAreaQuery.ID;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
GetFeaturesInAreaQuery.ID = 'efcf4271-a07a-40e0-9f02-d4dade40b8ac';
|
|
452
|
+
|
|
360
453
|
class MapPostboyService extends PostboyService {
|
|
361
454
|
constructor() {
|
|
362
455
|
super();
|
|
@@ -372,7 +465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
372
465
|
class MapManagementService {
|
|
373
466
|
constructor(postboy) {
|
|
374
467
|
this.postboy = postboy;
|
|
375
|
-
this.layers =
|
|
468
|
+
this.layers = new Dictionary();
|
|
376
469
|
}
|
|
377
470
|
up() {
|
|
378
471
|
this.observeMapRender();
|
|
@@ -382,6 +475,7 @@ class MapManagementService {
|
|
|
382
475
|
this.observeAddTile();
|
|
383
476
|
this.observeRemoveTile();
|
|
384
477
|
this.observeLayerQuery();
|
|
478
|
+
this.observeFeaturesInArea();
|
|
385
479
|
}
|
|
386
480
|
observeRemoveTile() {
|
|
387
481
|
this.postboy.subscribe(RemoveTileCommand.ID).subscribe((c) => {
|
|
@@ -391,7 +485,7 @@ class MapManagementService {
|
|
|
391
485
|
});
|
|
392
486
|
}
|
|
393
487
|
observeLayerQuery() {
|
|
394
|
-
this.postboy.subscribe(GetLayerQuery.ID).subscribe((ev) =>
|
|
488
|
+
this.postboy.subscribe(GetLayerQuery.ID).subscribe((ev) => ev.finish(this.layers.take(ev.name)));
|
|
395
489
|
}
|
|
396
490
|
observeAddTile() {
|
|
397
491
|
this.postboy.subscribe(AddTileCommand.ID).subscribe((c) => {
|
|
@@ -409,16 +503,15 @@ class MapManagementService {
|
|
|
409
503
|
this.postboy.subscribe(AddLayerCommand.ID).subscribe((c) => {
|
|
410
504
|
if (!this.map)
|
|
411
505
|
return;
|
|
412
|
-
this.layers
|
|
506
|
+
this.layers.put(c.layer.get('name'), c.layer);
|
|
413
507
|
this.map.addLayer(c.layer);
|
|
414
508
|
});
|
|
415
509
|
}
|
|
416
510
|
observePlaceFeatures() {
|
|
417
511
|
this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe((c) => {
|
|
418
|
-
|
|
419
|
-
if (!this.layers[c.layer])
|
|
512
|
+
if (!this.layers.has(c.layer))
|
|
420
513
|
return;
|
|
421
|
-
let source =
|
|
514
|
+
let source = this.layers.take(c.layer).getSource();
|
|
422
515
|
if (!!source['getSource'])
|
|
423
516
|
source = source === null || source === void 0 ? void 0 : source.getSource();
|
|
424
517
|
source === null || source === void 0 ? void 0 : source.clear();
|
|
@@ -429,10 +522,33 @@ class MapManagementService {
|
|
|
429
522
|
this.postboy.subscribe(RemoveLayerCommand.ID).subscribe((c) => {
|
|
430
523
|
if (!this.map)
|
|
431
524
|
return;
|
|
432
|
-
|
|
525
|
+
this.layers.rmv(c.layer.get('name'));
|
|
433
526
|
this.map.removeLayer(c.layer);
|
|
434
527
|
});
|
|
435
528
|
}
|
|
529
|
+
observeFeaturesInArea() {
|
|
530
|
+
this.postboy.subscribe(GetFeaturesInAreaQuery.ID).subscribe((qr) => {
|
|
531
|
+
let result = new Dictionary();
|
|
532
|
+
const queue = [];
|
|
533
|
+
const queries = [];
|
|
534
|
+
this.layers.forEach((l) => {
|
|
535
|
+
var _a;
|
|
536
|
+
let layerName = l.get('name');
|
|
537
|
+
if (qr.ignore.has(layerName) || layerName === MapConstants.DrawingLayerId)
|
|
538
|
+
return;
|
|
539
|
+
let source = l.getSource();
|
|
540
|
+
if (!!source['getSource'])
|
|
541
|
+
source = source === null || source === void 0 ? void 0 : source.getSource();
|
|
542
|
+
const query = new FilterFeaturesInAreaQuery(qr.area, (_a = source === null || source === void 0 ? void 0 : source.getFeatures()) !== null && _a !== void 0 ? _a : []);
|
|
543
|
+
queue.push(query.result.pipe(tap((r) => {
|
|
544
|
+
result.put(l.get('name'), r.map((e) => (Object.assign({ id: e.getId() }, e.get(MapConstants.FeatureInfo)))));
|
|
545
|
+
})));
|
|
546
|
+
queries.push(query);
|
|
547
|
+
});
|
|
548
|
+
forkJoin(queue).subscribe(() => qr.finish(result));
|
|
549
|
+
queries.forEach((q) => this.postboy.fire(q));
|
|
550
|
+
});
|
|
551
|
+
}
|
|
436
552
|
}
|
|
437
553
|
MapManagementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapManagementService, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
438
554
|
MapManagementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapManagementService });
|
|
@@ -550,6 +666,27 @@ class DrawingService {
|
|
|
550
666
|
this.postboy = postboy;
|
|
551
667
|
}
|
|
552
668
|
up() {
|
|
669
|
+
this.observeDrawing();
|
|
670
|
+
this.observeSelectArea();
|
|
671
|
+
this.observeMapRender();
|
|
672
|
+
}
|
|
673
|
+
observeSelectArea() {
|
|
674
|
+
this.postboy.subscribe(DrawSelectionAreaCommand.ID).subscribe((ev) => {
|
|
675
|
+
const drawingCommand = new StartDrawingCommand(ev.type, ev.style);
|
|
676
|
+
drawingCommand.result.subscribe((r) => {
|
|
677
|
+
if (!r) {
|
|
678
|
+
ev.finish(new Dictionary());
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
const area = PolygonModel.fromGeoJson(1, r).feature.getGeometry();
|
|
682
|
+
const getFeaturesCommand = new GetFeaturesInAreaQuery(area, ev.ignore);
|
|
683
|
+
getFeaturesCommand.result.subscribe((result) => ev.finish(result));
|
|
684
|
+
this.postboy.fire(getFeaturesCommand);
|
|
685
|
+
});
|
|
686
|
+
this.postboy.fire(drawingCommand);
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
observeDrawing() {
|
|
553
690
|
this.postboy.subscribe(StartDrawingCommand.ID).subscribe((ev) => {
|
|
554
691
|
this.draw((l) => {
|
|
555
692
|
if (!l || !this.map) {
|
|
@@ -570,7 +707,6 @@ class DrawingService {
|
|
|
570
707
|
this.postboy.fire(drawQuery);
|
|
571
708
|
});
|
|
572
709
|
});
|
|
573
|
-
this.observeMapRender();
|
|
574
710
|
}
|
|
575
711
|
onEnd(evt, command, layer) {
|
|
576
712
|
command.finish(command.format === FeatureOutputFormat.GeoJson
|
|
@@ -633,10 +769,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
633
769
|
type: Injectable
|
|
634
770
|
}], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
|
|
635
771
|
|
|
772
|
+
class FeatureService {
|
|
773
|
+
constructor(postboy) {
|
|
774
|
+
this.postboy = postboy;
|
|
775
|
+
}
|
|
776
|
+
up() {
|
|
777
|
+
this.postboy.subscribe(FilterFeaturesInAreaQuery.ID).subscribe((qr) => {
|
|
778
|
+
qr.finish(qr.features.filter((f) => FeatureService.booleanIntersects(qr.area, f.getGeometry())));
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
static booleanIntersects(g1, g2) {
|
|
782
|
+
if (g2.getType() === 'Point')
|
|
783
|
+
return g1.intersectsCoordinate(g2.getCoordinates());
|
|
784
|
+
if (g2.getType() === 'Circle')
|
|
785
|
+
return g1.intersectsCoordinate(g2.getCenter());
|
|
786
|
+
if (g2.getType() === 'Polygon')
|
|
787
|
+
return g1.intersectsCoordinate(g2.getInteriorPoint().getCoordinates());
|
|
788
|
+
return false;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
FeatureService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FeatureService, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
792
|
+
FeatureService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FeatureService });
|
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FeatureService, decorators: [{
|
|
794
|
+
type: Injectable
|
|
795
|
+
}], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
|
|
796
|
+
|
|
636
797
|
class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
637
|
-
constructor(service, management, state,
|
|
798
|
+
constructor(service, management, state, mapFeature, interaction, drawing, drawGenerator, feature) {
|
|
638
799
|
super(service);
|
|
639
|
-
this.registerServices([management, state, interaction,
|
|
800
|
+
this.registerServices([management, state, interaction, mapFeature, drawing, drawGenerator, feature]);
|
|
640
801
|
}
|
|
641
802
|
_up() {
|
|
642
803
|
this.registerReplay(MapRenderedEvent.ID);
|
|
@@ -654,13 +815,16 @@ class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
|
654
815
|
this.registerSubject(GetLayerQuery.ID);
|
|
655
816
|
this.registerSubject(DrawingFinishedEvent.ID);
|
|
656
817
|
this.registerSubject(GenerateDrawQuery.ID);
|
|
818
|
+
this.registerSubject(FilterFeaturesInAreaQuery.ID);
|
|
819
|
+
this.registerSubject(GetFeaturesInAreaQuery.ID);
|
|
820
|
+
this.registerSubject(DrawSelectionAreaCommand.ID);
|
|
657
821
|
}
|
|
658
822
|
}
|
|
659
|
-
MessageRegistratorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageRegistratorService, deps: [{ token: MapPostboyService }, { token: MapManagementService }, { token: MapStateService }, { token: MapFeatureService }, { token: MapClickService }, { token: DrawingService }, { token: DrawingGenerationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
823
|
+
MessageRegistratorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageRegistratorService, deps: [{ token: MapPostboyService }, { token: MapManagementService }, { token: MapStateService }, { token: MapFeatureService }, { token: MapClickService }, { token: DrawingService }, { token: DrawingGenerationService }, { token: FeatureService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
660
824
|
MessageRegistratorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageRegistratorService });
|
|
661
825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageRegistratorService, decorators: [{
|
|
662
826
|
type: Injectable
|
|
663
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: MapManagementService }, { type: MapStateService }, { type: MapFeatureService }, { type: MapClickService }, { type: DrawingService }, { type: DrawingGenerationService }]; } });
|
|
827
|
+
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: MapManagementService }, { type: MapStateService }, { type: MapFeatureService }, { type: MapClickService }, { type: DrawingService }, { type: DrawingGenerationService }, { type: FeatureService }]; } });
|
|
664
828
|
|
|
665
829
|
class TileLayerSettings {
|
|
666
830
|
constructor() {
|
|
@@ -1218,6 +1382,7 @@ MapPlateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
1218
1382
|
MapFeatureService,
|
|
1219
1383
|
DrawingService,
|
|
1220
1384
|
DrawingGenerationService,
|
|
1385
|
+
FeatureService,
|
|
1221
1386
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\r\n<lib-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></lib-osm-tile-layer>\r\n<lib-feature-layer *ngIf=\"map\" [settings]=\"drawingLayerSettings\"></lib-feature-layer>\r\n", styles: ["lib-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: OsmTileLayerComponent, selector: "lib-osm-tile-layer", inputs: ["url", "map"] }, { kind: "component", type: FeatureLayerComponent, selector: "lib-feature-layer", inputs: ["settings"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1222
1387
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapPlateComponent, decorators: [{
|
|
1223
1388
|
type: Component,
|
|
@@ -1229,6 +1394,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1229
1394
|
MapFeatureService,
|
|
1230
1395
|
DrawingService,
|
|
1231
1396
|
DrawingGenerationService,
|
|
1397
|
+
FeatureService,
|
|
1232
1398
|
], template: "<ng-content></ng-content>\r\n<lib-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></lib-osm-tile-layer>\r\n<lib-feature-layer *ngIf=\"map\" [settings]=\"drawingLayerSettings\"></lib-feature-layer>\r\n", styles: ["lib-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"] }]
|
|
1233
1399
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MapPostboyService }, { type: MapPlateFactory }, { type: MessageRegistratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { settings: [{
|
|
1234
1400
|
type: Input
|
|
@@ -1561,5 +1727,5 @@ class StringifyFeatureHelper {
|
|
|
1561
1727
|
* Generated bundle index. Do not edit.
|
|
1562
1728
|
*/
|
|
1563
1729
|
|
|
1564
|
-
export { CancelDrawingCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, MapClickEvent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, OsmTileLayerComponent, PolygonModel, PolygonStyleHelper, PolygonsComponent, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings };
|
|
1730
|
+
export { CancelDrawingCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, Dictionary, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, MapClickEvent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, OsmTileLayerComponent, PolygonModel, PolygonStyleHelper, PolygonsComponent, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings };
|
|
1565
1731
|
//# sourceMappingURL=maps-components-src-map.mjs.map
|