@igo2/integration 1.14.2 → 1.14.3
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/esm2020/igo2-integration.mjs +4 -4
- package/esm2020/lib/about/about-tool/about-tool.component.mjs +184 -184
- package/esm2020/lib/about/about-tool/index.mjs +1 -1
- package/esm2020/lib/about/about.module.mjs +54 -54
- package/esm2020/lib/about/index.mjs +1 -1
- package/esm2020/lib/analytics/analytics-listener.service.mjs +71 -71
- package/esm2020/lib/analytics/analytics.module.mjs +15 -15
- package/esm2020/lib/analytics/index.mjs +1 -1
- package/esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.mjs +112 -112
- package/esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.mjs +28 -28
- package/esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.component.mjs +88 -88
- package/esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.module.mjs +28 -28
- package/esm2020/lib/catalog/catalog.module.mjs +23 -23
- package/esm2020/lib/catalog/catalog.state.mjs +53 -53
- package/esm2020/lib/catalog/index.mjs +5 -5
- package/esm2020/lib/context/context-editor-tool/context-editor-tool.component.mjs +33 -33
- package/esm2020/lib/context/context-manager-tool/context-manager-tool.component.mjs +43 -43
- package/esm2020/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.mjs +24 -24
- package/esm2020/lib/context/context-share-tool/context-share-tool.component.mjs +33 -33
- package/esm2020/lib/context/context.module.mjs +38 -38
- package/esm2020/lib/context/context.state.mjs +87 -87
- package/esm2020/lib/context/index.mjs +5 -5
- package/esm2020/lib/directions/directions-tool/directions-tool.component.mjs +86 -86
- package/esm2020/lib/directions/directions-tool/index.mjs +1 -1
- package/esm2020/lib/directions/directions.module.mjs +25 -25
- package/esm2020/lib/directions/directions.state.mjs +63 -63
- package/esm2020/lib/directions/index.mjs +2 -2
- package/esm2020/lib/draw/draw.module.mjs +20 -20
- package/esm2020/lib/draw/draw.state.mjs +39 -39
- package/esm2020/lib/draw/drawing-tool/drawing-tool.component.mjs +71 -71
- package/esm2020/lib/draw/index.mjs +2 -2
- package/esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.mjs +9 -9
- package/esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.mjs +43 -43
- package/esm2020/lib/filter/active-ogc-filter-tool/index.mjs +1 -1
- package/esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.mjs +9 -9
- package/esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.component.mjs +43 -43
- package/esm2020/lib/filter/active-time-filter-tool/index.mjs +1 -1
- package/esm2020/lib/filter/filter.module.mjs +50 -50
- package/esm2020/lib/filter/index.mjs +5 -5
- package/esm2020/lib/filter/ogc-filter-tool/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filter-tool/ogc-filter-tool.component.mjs +24 -24
- package/esm2020/lib/filter/spatial-filter-tool/index.mjs +1 -1
- package/esm2020/lib/filter/spatial-filter-tool/spatial-filter-tool.component.mjs +534 -534
- package/esm2020/lib/filter/time-filter-tool/index.mjs +1 -1
- package/esm2020/lib/filter/time-filter-tool/time-filter-tool.component.mjs +24 -24
- package/esm2020/lib/import-export/import-export-tool/import-export-tool.component.mjs +136 -136
- package/esm2020/lib/import-export/import-export-tool/index.mjs +1 -1
- package/esm2020/lib/import-export/import-export.module.mjs +47 -47
- package/esm2020/lib/import-export/import-export.state.mjs +40 -40
- package/esm2020/lib/import-export/index.mjs +2 -2
- package/esm2020/lib/integration.module.mjs +71 -71
- package/esm2020/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.mjs +472 -472
- package/esm2020/lib/map/advanced-map-tool/advanced-map-tool.component.mjs +88 -88
- package/esm2020/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.mjs +217 -217
- package/esm2020/lib/map/advanced-map-tool/index.mjs +1 -1
- package/esm2020/lib/map/index.mjs +8 -8
- package/esm2020/lib/map/layer-list-tool.state.mjs +41 -41
- package/esm2020/lib/map/map-details-tool/index.mjs +1 -1
- package/esm2020/lib/map/map-details-tool/map-details-tool.component.mjs +255 -255
- package/esm2020/lib/map/map-legend/index.mjs +1 -1
- package/esm2020/lib/map/map-legend/map-legend-tool.component.mjs +274 -274
- package/esm2020/lib/map/map-proximity-tool/index.mjs +1 -1
- package/esm2020/lib/map/map-proximity-tool/map-proximity-tool.component.mjs +205 -205
- package/esm2020/lib/map/map-proximity.state.mjs +162 -162
- package/esm2020/lib/map/map-tool/index.mjs +1 -1
- package/esm2020/lib/map/map-tool/map-tool.component.mjs +129 -129
- package/esm2020/lib/map/map-tools/index.mjs +1 -1
- package/esm2020/lib/map/map-tools/map-tools.component.mjs +477 -477
- package/esm2020/lib/map/map.module.mjs +140 -140
- package/esm2020/lib/map/map.state.mjs +46 -46
- package/esm2020/lib/measure/index.mjs +3 -3
- package/esm2020/lib/measure/measure.module.mjs +19 -19
- package/esm2020/lib/measure/measure.state.mjs +34 -34
- package/esm2020/lib/measure/measurer-tool/measurer-tool.component.mjs +44 -44
- package/esm2020/lib/measure/measurer-tool/measurer-tool.module.mjs +24 -24
- package/esm2020/lib/print/index.mjs +1 -1
- package/esm2020/lib/print/print-tool/index.mjs +1 -1
- package/esm2020/lib/print/print-tool/print-tool.component.mjs +32 -32
- package/esm2020/lib/print/print.module.mjs +25 -25
- package/esm2020/lib/search/index.mjs +6 -6
- package/esm2020/lib/search/query.state.mjs +33 -33
- package/esm2020/lib/search/search-bar/search-bar-binding.directive.mjs +60 -60
- package/esm2020/lib/search/search-bar/search-bar.module.mjs +21 -21
- package/esm2020/lib/search/search-results-tool/search-results-tool.component.mjs +592 -592
- package/esm2020/lib/search/search-results-tool/search-results-tool.module.mjs +64 -64
- package/esm2020/lib/search/search.module.mjs +23 -23
- package/esm2020/lib/search/search.state.mjs +106 -106
- package/esm2020/lib/storage/index.mjs +1 -1
- package/esm2020/lib/storage/storage.module.mjs +15 -15
- package/esm2020/lib/storage/storage.state.mjs +22 -22
- package/esm2020/lib/tool/index.mjs +1 -1
- package/esm2020/lib/tool/tool.module.mjs +15 -15
- package/esm2020/lib/tool/tool.state.mjs +51 -51
- package/esm2020/lib/workspace/index.mjs +3 -3
- package/esm2020/lib/workspace/shared/edition-actions.service.mjs +155 -155
- package/esm2020/lib/workspace/shared/feature-actions.service.mjs +143 -143
- package/esm2020/lib/workspace/shared/index.mjs +2 -2
- package/esm2020/lib/workspace/shared/wfs-actions.service.mjs +157 -157
- package/esm2020/lib/workspace/shared/workspace.utils.mjs +6 -6
- package/esm2020/lib/workspace/workspace-button/index.mjs +1 -1
- package/esm2020/lib/workspace/workspace-button/workspace-button.component.mjs +68 -68
- package/esm2020/lib/workspace/workspace.module.mjs +36 -36
- package/esm2020/lib/workspace/workspace.state.mjs +187 -187
- package/esm2020/public_api.mjs +34 -34
- package/fesm2015/igo2-integration.mjs +6450 -6450
- package/fesm2020/igo2-integration.mjs +6009 -6009
- package/index.d.ts +5 -5
- package/lib/about/about-tool/about-tool.component.d.ts +34 -34
- package/lib/about/about-tool/index.d.ts +1 -1
- package/lib/about/about.module.d.ts +16 -16
- package/lib/about/index.d.ts +1 -1
- package/lib/analytics/analytics-listener.service.d.ts +27 -27
- package/lib/analytics/analytics.module.d.ts +6 -6
- package/lib/analytics/index.d.ts +1 -1
- package/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.d.ts +57 -57
- package/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.d.ts +12 -12
- package/lib/catalog/catalog-library-tool/catalog-library-tool.component.d.ts +50 -50
- package/lib/catalog/catalog-library-tool/catalog-library-tool.module.d.ts +12 -12
- package/lib/catalog/catalog.module.d.ts +8 -8
- package/lib/catalog/catalog.state.d.ts +37 -37
- package/lib/catalog/index.d.ts +5 -5
- package/lib/context/context-editor-tool/context-editor-tool.component.d.ts +9 -9
- package/lib/context/context-manager-tool/context-manager-tool.component.d.ts +15 -15
- package/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.d.ts +5 -5
- package/lib/context/context-share-tool/context-share-tool.component.d.ts +13 -13
- package/lib/context/context.module.d.ts +11 -11
- package/lib/context/context.state.d.ts +37 -37
- package/lib/context/index.d.ts +5 -5
- package/lib/directions/directions-tool/directions-tool.component.d.ts +54 -54
- package/lib/directions/directions-tool/index.d.ts +1 -1
- package/lib/directions/directions.module.d.ts +10 -10
- package/lib/directions/directions.state.d.ts +28 -28
- package/lib/directions/index.d.ts +2 -2
- package/lib/draw/draw.module.d.ts +8 -8
- package/lib/draw/draw.state.d.ts +17 -17
- package/lib/draw/drawing-tool/drawing-tool.component.d.ts +31 -31
- package/lib/draw/index.d.ts +2 -2
- package/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.d.ts +2 -2
- package/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.d.ts +12 -12
- package/lib/filter/active-ogc-filter-tool/index.d.ts +1 -1
- package/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.d.ts +2 -2
- package/lib/filter/active-time-filter-tool/active-time-filter-tool.component.d.ts +12 -12
- package/lib/filter/active-time-filter-tool/index.d.ts +1 -1
- package/lib/filter/filter.module.d.ts +15 -15
- package/lib/filter/index.d.ts +5 -5
- package/lib/filter/ogc-filter-tool/index.d.ts +1 -1
- package/lib/filter/ogc-filter-tool/ogc-filter-tool.component.d.ts +6 -6
- package/lib/filter/spatial-filter-tool/index.d.ts +1 -1
- package/lib/filter/spatial-filter-tool/spatial-filter-tool.component.d.ts +82 -82
- package/lib/filter/time-filter-tool/index.d.ts +1 -1
- package/lib/filter/time-filter-tool/time-filter-tool.component.d.ts +6 -6
- package/lib/import-export/import-export-tool/import-export-tool.component.d.ts +31 -31
- package/lib/import-export/import-export-tool/index.d.ts +1 -1
- package/lib/import-export/import-export.module.d.ts +15 -15
- package/lib/import-export/import-export.state.d.ts +24 -24
- package/lib/import-export/index.d.ts +2 -2
- package/lib/integration.module.d.ts +20 -20
- package/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.d.ts +97 -97
- package/lib/map/advanced-map-tool/advanced-map-tool.component.d.ts +12 -12
- package/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.d.ts +65 -65
- package/lib/map/advanced-map-tool/index.d.ts +1 -1
- package/lib/map/index.d.ts +8 -8
- package/lib/map/layer-list-tool.state.d.ts +19 -19
- package/lib/map/map-details-tool/index.d.ts +1 -1
- package/lib/map/map-details-tool/map-details-tool.component.d.ts +38 -38
- package/lib/map/map-legend/index.d.ts +1 -1
- package/lib/map/map-legend/map-legend-tool.component.d.ts +40 -40
- package/lib/map/map-proximity-tool/index.d.ts +1 -1
- package/lib/map/map-proximity-tool/map-proximity-tool.component.d.ts +36 -36
- package/lib/map/map-proximity.state.d.ts +28 -28
- package/lib/map/map-tool/index.d.ts +1 -1
- package/lib/map/map-tool/map-tool.component.d.ts +27 -27
- package/lib/map/map-tools/index.d.ts +1 -1
- package/lib/map/map-tools/map-tools.component.d.ts +65 -65
- package/lib/map/map.module.d.ts +38 -38
- package/lib/map/map.state.d.ts +24 -24
- package/lib/measure/index.d.ts +3 -3
- package/lib/measure/measure.module.d.ts +7 -7
- package/lib/measure/measure.state.d.ts +16 -16
- package/lib/measure/measurer-tool/measurer-tool.component.d.ts +24 -24
- package/lib/measure/measurer-tool/measurer-tool.module.d.ts +11 -11
- package/lib/print/index.d.ts +1 -1
- package/lib/print/print-tool/index.d.ts +1 -1
- package/lib/print/print-tool/print-tool.component.d.ts +10 -10
- package/lib/print/print.module.d.ts +10 -10
- package/lib/search/index.d.ts +6 -6
- package/lib/search/query.state.d.ts +20 -20
- package/lib/search/search-bar/search-bar-binding.directive.d.ts +20 -20
- package/lib/search/search-bar/search-bar.module.d.ts +11 -11
- package/lib/search/search-results-tool/search-results-tool.component.d.ts +101 -101
- package/lib/search/search-results-tool/search-results-tool.module.d.ts +18 -18
- package/lib/search/search.module.d.ts +8 -8
- package/lib/search/search.state.d.ts +54 -54
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/storage.module.d.ts +6 -6
- package/lib/storage/storage.state.d.ts +12 -12
- package/lib/tool/index.d.ts +1 -1
- package/lib/tool/tool.module.d.ts +6 -6
- package/lib/tool/tool.state.d.ts +22 -22
- package/lib/workspace/index.d.ts +3 -3
- package/lib/workspace/shared/edition-actions.service.d.ts +26 -26
- package/lib/workspace/shared/feature-actions.service.d.ts +25 -25
- package/lib/workspace/shared/index.d.ts +2 -2
- package/lib/workspace/shared/wfs-actions.service.d.ts +27 -27
- package/lib/workspace/shared/workspace.utils.d.ts +2 -2
- package/lib/workspace/workspace-button/index.d.ts +1 -1
- package/lib/workspace/workspace-button/workspace-button.component.d.ts +21 -21
- package/lib/workspace/workspace.module.d.ts +12 -12
- package/lib/workspace/workspace.state.d.ts +63 -63
- package/package.json +3 -3
- package/public_api.d.ts +31 -31
|
@@ -1,206 +1,206 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component, ViewChild } from '@angular/core';
|
|
3
|
-
import { ToolComponent } from '@igo2/common';
|
|
4
|
-
import { NumberUtils, Clipboard } from '@igo2/utils';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../map.state";
|
|
7
|
-
import * as i2 from "../map-proximity.state";
|
|
8
|
-
import * as i3 from "@igo2/core";
|
|
9
|
-
import * as i4 from "@angular/forms";
|
|
10
|
-
import * as i5 from "@angular/material/form-field";
|
|
11
|
-
import * as i6 from "@angular/material/input";
|
|
12
|
-
import * as i7 from "@angular/common";
|
|
13
|
-
import * as i8 from "@angular/material/icon";
|
|
14
|
-
import * as i9 from "@angular/material/radio";
|
|
15
|
-
import * as i10 from "@angular/material/button";
|
|
16
|
-
import * as i11 from "@igo2/common";
|
|
17
|
-
import * as i12 from "@ngx-translate/core";
|
|
18
|
-
const _c0 = ["table"];
|
|
19
|
-
function MapProximityToolComponent_mat_form_field_3_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵelementStart(0, "mat-form-field", 14);
|
|
21
|
-
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
22
|
-
i0.ɵɵpipe(3, "translate");
|
|
23
|
-
i0.ɵɵelementEnd();
|
|
24
|
-
} if (rf & 2) {
|
|
25
|
-
const coord_r4 = ctx.ngIf;
|
|
26
|
-
i0.ɵɵadvance(1);
|
|
27
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lon"))("value", coord_r4[0]);
|
|
28
|
-
} }
|
|
29
|
-
function MapProximityToolComponent_mat_form_field_5_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "mat-form-field", 17);
|
|
31
|
-
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
32
|
-
i0.ɵɵpipe(3, "translate");
|
|
33
|
-
i0.ɵɵelementEnd();
|
|
34
|
-
} if (rf & 2) {
|
|
35
|
-
const coord2_r6 = ctx.ngIf;
|
|
36
|
-
i0.ɵɵadvance(1);
|
|
37
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lat"))("value", coord2_r6[1]);
|
|
38
|
-
} }
|
|
39
|
-
function MapProximityToolComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
41
|
-
i0.ɵɵelementStart(0, "button", 18);
|
|
42
|
-
i0.ɵɵlistener("click", function MapProximityToolComponent_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.copyTextToClipboard()); });
|
|
43
|
-
i0.ɵɵelement(1, "mat-icon", 19);
|
|
44
|
-
i0.ɵɵelementEnd();
|
|
45
|
-
} }
|
|
46
|
-
let MapProximityToolComponent = class MapProximityToolComponent {
|
|
47
|
-
constructor(mapState, mapProximityState, languageService, messageService) {
|
|
48
|
-
this.mapState = mapState;
|
|
49
|
-
this.mapProximityState = mapProximityState;
|
|
50
|
-
this.languageService = languageService;
|
|
51
|
-
this.messageService = messageService;
|
|
52
|
-
this.subs$$ = [];
|
|
53
|
-
/**
|
|
54
|
-
* Table template
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
this.tableTemplate = {
|
|
58
|
-
selection: true,
|
|
59
|
-
selectMany: false,
|
|
60
|
-
selectionCheckbox: false,
|
|
61
|
-
sort: true,
|
|
62
|
-
columns: [
|
|
63
|
-
{
|
|
64
|
-
name: 'element',
|
|
65
|
-
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.feature'),
|
|
66
|
-
valueAccessor: (localFeature) => {
|
|
67
|
-
return localFeature.properties.element;
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'distance',
|
|
72
|
-
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.distance'),
|
|
73
|
-
valueAccessor: (localFeature) => {
|
|
74
|
-
return `${NumberUtils.roundToNDecimal(localFeature.properties.distance, 1)}m`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
get maxDistance() {
|
|
81
|
-
return this.mapProximityState.proximityRadiusValue$.value;
|
|
82
|
-
}
|
|
83
|
-
set maxDistance(value) {
|
|
84
|
-
this.mapProximityState.proximityRadiusValue$.next(value);
|
|
85
|
-
}
|
|
86
|
-
get map() {
|
|
87
|
-
return this.mapState.map;
|
|
88
|
-
}
|
|
89
|
-
ngOnInit() {
|
|
90
|
-
this.mapProximityState.enabled$.next(true);
|
|
91
|
-
this.userDefinedFollowPosition = this.map.geolocationController.followPosition === true;
|
|
92
|
-
this.userDefinedMapCenter = this.map.mapCenter$.value === true;
|
|
93
|
-
this.subs$$.push(this.mapProximityState.proximitylocationType$.subscribe(v => {
|
|
94
|
-
this.map.mapCenter$.next(v !== 'geolocation');
|
|
95
|
-
if (v === 'geolocation') {
|
|
96
|
-
this.map.geolocationController.followPosition = true;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
this.map.geolocationController.followPosition = false;
|
|
100
|
-
}
|
|
101
|
-
}));
|
|
102
|
-
}
|
|
103
|
-
ngOnDestroy() {
|
|
104
|
-
this.mapProximityState.enabled$.next(false);
|
|
105
|
-
this.map.mapCenter$.next(this.userDefinedMapCenter);
|
|
106
|
-
this.subs$$.map(s => s.unsubscribe());
|
|
107
|
-
this.map.geolocationController.followPosition = this.userDefinedFollowPosition;
|
|
108
|
-
}
|
|
109
|
-
onLocationTypeChange(e) {
|
|
110
|
-
this.mapProximityState.proximitylocationType$.next(e.value);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Copy the coordinates to a clipboard
|
|
114
|
-
*/
|
|
115
|
-
copyTextToClipboard() {
|
|
116
|
-
const successful = Clipboard.copy(this.mapProximityState.currentPositionCoordinate$?.value.toString());
|
|
117
|
-
if (successful) {
|
|
118
|
-
const translate = this.languageService.translate;
|
|
119
|
-
const title = translate.instant('igo.integration.map-proximity-tool.copyTitle');
|
|
120
|
-
const msg = translate.instant('igo.integration.map-proximity-tool.copyMsg');
|
|
121
|
-
this.messageService.success(msg, title);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
MapProximityToolComponent.ɵfac = function MapProximityToolComponent_Factory(t) { return new (t || MapProximityToolComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.MapProximityState), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
|
|
126
|
-
MapProximityToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapProximityToolComponent, selectors: [["igo-map-proximity-tool"]], viewQuery: function MapProximityToolComponent_Query(rf, ctx) { if (rf & 1) {
|
|
127
|
-
i0.ɵɵviewQuery(_c0, 7);
|
|
128
|
-
} if (rf & 2) {
|
|
129
|
-
let _t;
|
|
130
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.table = _t.first);
|
|
131
|
-
} }, decls: 31, vars: 35, consts: [[1, "table-compact", 3, "store", "template"], ["table", ""], ["class", "coordinates", 4, "ngIf"], ["class", "coordinates2", 4, "ngIf"], ["mat-icon-button", "", 3, "click", 4, "ngIf"], [1, "title-container"], [1, "title", "mat-typography"], [1, "igo-input-container", "mat-typography"], [3, "change"], ["value", "geolocation", 3, "checked"], ["value", "mapCenter", 3, "checked"], [1, "radius-unit"], ["appearance", "outline", "floatLabel", "always", 1, "measure-field"], ["type", "number", "pattern", "[0-9]*", "matInput", "", 3, "ngModel", "placeholder", "ngModelChange"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["mat-icon-button", "", 3, "click"], ["svgIcon", "content-copy"]], template: function MapProximityToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
132
|
-
i0.ɵɵelement(0, "igo-entity-table", 0, 1)(2, "br");
|
|
133
|
-
i0.ɵɵtemplate(3, MapProximityToolComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
|
|
134
|
-
i0.ɵɵpipe(4, "async");
|
|
135
|
-
i0.ɵɵtemplate(5, MapProximityToolComponent_mat_form_field_5_Template, 4, 4, "mat-form-field", 3);
|
|
136
|
-
i0.ɵɵpipe(6, "async");
|
|
137
|
-
i0.ɵɵtemplate(7, MapProximityToolComponent_button_7_Template, 2, 0, "button", 4);
|
|
138
|
-
i0.ɵɵpipe(8, "async");
|
|
139
|
-
i0.ɵɵpipe(9, "async");
|
|
140
|
-
i0.ɵɵelementStart(10, "div", 5)(11, "mat-label", 6);
|
|
141
|
-
i0.ɵɵtext(12);
|
|
142
|
-
i0.ɵɵpipe(13, "translate");
|
|
143
|
-
i0.ɵɵelementEnd()();
|
|
144
|
-
i0.ɵɵelementStart(14, "div", 7)(15, "mat-radio-group", 8);
|
|
145
|
-
i0.ɵɵlistener("change", function MapProximityToolComponent_Template_mat_radio_group_change_15_listener($event) { return ctx.onLocationTypeChange($event); });
|
|
146
|
-
i0.ɵɵelementStart(16, "mat-radio-button", 9);
|
|
147
|
-
i0.ɵɵpipe(17, "async");
|
|
148
|
-
i0.ɵɵtext(18);
|
|
149
|
-
i0.ɵɵpipe(19, "translate");
|
|
150
|
-
i0.ɵɵelementEnd();
|
|
151
|
-
i0.ɵɵelementStart(20, "mat-radio-button", 10);
|
|
152
|
-
i0.ɵɵpipe(21, "async");
|
|
153
|
-
i0.ɵɵtext(22);
|
|
154
|
-
i0.ɵɵpipe(23, "translate");
|
|
155
|
-
i0.ɵɵelementEnd()()();
|
|
156
|
-
i0.ɵɵelementStart(24, "div", 11)(25, "mat-form-field", 12)(26, "mat-label");
|
|
157
|
-
i0.ɵɵtext(27);
|
|
158
|
-
i0.ɵɵpipe(28, "translate");
|
|
159
|
-
i0.ɵɵelementEnd();
|
|
160
|
-
i0.ɵɵelementStart(29, "input", 13);
|
|
161
|
-
i0.ɵɵlistener("ngModelChange", function MapProximityToolComponent_Template_input_ngModelChange_29_listener($event) { return ctx.maxDistance = $event; });
|
|
162
|
-
i0.ɵɵpipe(30, "translate");
|
|
163
|
-
i0.ɵɵelementEnd()()();
|
|
164
|
-
} if (rf & 2) {
|
|
165
|
-
i0.ɵɵproperty("store", ctx.mapProximityState.proximityFeatureStore)("template", ctx.tableTemplate);
|
|
166
|
-
i0.ɵɵadvance(3);
|
|
167
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.mapProximityState.currentPositionCoordinate$));
|
|
168
|
-
i0.ɵɵadvance(2);
|
|
169
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(6, 15, ctx.mapProximityState.currentPositionCoordinate$));
|
|
170
|
-
i0.ɵɵadvance(2);
|
|
171
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(8, 17, ctx.mapProximityState.currentPositionCoordinate$) && i0.ɵɵpipeBind1(9, 19, ctx.mapProximityState.currentPositionCoordinate$).length);
|
|
172
|
-
i0.ɵɵadvance(5);
|
|
173
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 21, "igo.integration.map-proximity-tool.method"));
|
|
174
|
-
i0.ɵɵadvance(4);
|
|
175
|
-
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(17, 23, ctx.mapProximityState.proximitylocationType$) === "geolocation");
|
|
176
|
-
i0.ɵɵadvance(2);
|
|
177
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 25, "igo.integration.map-proximity-tool.geolocation"));
|
|
178
|
-
i0.ɵɵadvance(2);
|
|
179
|
-
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(21, 27, ctx.mapProximityState.proximitylocationType$) === "mapCenter");
|
|
180
|
-
i0.ɵɵadvance(2);
|
|
181
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, "igo.integration.map-proximity-tool.mapCenter"));
|
|
182
|
-
i0.ɵɵadvance(5);
|
|
183
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 31, "igo.integration.map-proximity-tool.radiusM"));
|
|
184
|
-
i0.ɵɵadvance(2);
|
|
185
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(30, 33, "igo.integration.map-proximity-tool.radiusM"));
|
|
186
|
-
i0.ɵɵproperty("ngModel", ctx.maxDistance);
|
|
187
|
-
} }, dependencies: [i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.PatternValidator, i4.NgModel, i5.MatFormField, i5.MatLabel, i6.MatInput, i7.NgIf, i8.MatIcon, i9.MatRadioGroup, i9.MatRadioButton, i10.MatButton, i11.EntityTableComponent, i7.AsyncPipe, i12.TranslatePipe], styles: [".table-compact[_ngcontent-%COMP%]{height:auto}.table-compact[_ngcontent-%COMP%] .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:110px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.radius-unit[_ngcontent-%COMP%]{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;width:60%}.title-container[_ngcontent-%COMP%]{padding:10px}.title[_ngcontent-%COMP%]{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button[_ngcontent-%COMP%]{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}"] });
|
|
188
|
-
MapProximityToolComponent = __decorate([
|
|
189
|
-
ToolComponent({
|
|
190
|
-
name: 'map-proximity',
|
|
191
|
-
title: 'igo.integration.tools.closestFeature',
|
|
192
|
-
icon: 'radius'
|
|
193
|
-
})
|
|
194
|
-
/**
|
|
195
|
-
* Tool to handle the advanced map tools
|
|
196
|
-
*/
|
|
197
|
-
], MapProximityToolComponent);
|
|
198
|
-
export { MapProximityToolComponent };
|
|
199
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapProximityToolComponent, [{
|
|
200
|
-
type: Component,
|
|
201
|
-
args: [{ selector: 'igo-map-proximity-tool', template: "<igo-entity-table #table class=\"table-compact\" [store]=\"mapProximityState.proximityFeatureStore\" [template]=\"tableTemplate\"></igo-entity-table>\n<br>\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord\" class=\"coordinates\">\n <textarea #textArea matInput readonly rows=\"1\"\n [placeholder]=\"'igo.integration.map-proximity-tool.lon' | translate\"\n [value]=\"coord[0]\"></textarea>\n</mat-form-field>\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord2\" class=\"coordinates2\">\n <textarea #textArea matInput readonly rows=\"1\"\n [placeholder]=\"'igo.integration.map-proximity-tool.lat' | translate\"\n [value]=\"coord2[1]\"></textarea>\n</mat-form-field>\n\n<button *ngIf=\"(mapProximityState.currentPositionCoordinate$ | async) && (mapProximityState.currentPositionCoordinate$ | async).length\" mat-icon-button\n (click)=\"copyTextToClipboard()\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n</button>\n<div class=\"title-container\">\n <mat-label class=\"title mat-typography\">{{'igo.integration.map-proximity-tool.method' | translate}}</mat-label>\n</div>\n<div class=\"igo-input-container mat-typography\">\n <mat-radio-group (change)=\"onLocationTypeChange($event)\">\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='geolocation'\" value=\"geolocation\">{{'igo.integration.map-proximity-tool.geolocation' | translate}}</mat-radio-button>\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='mapCenter'\" value=\"mapCenter\">{{'igo.integration.map-proximity-tool.mapCenter' | translate}}</mat-radio-button>\n </mat-radio-group>\n</div>\n\n<div class=\"radius-unit\"> \n \n <mat-form-field appearance=\"outline\" class=\"measure-field\" floatLabel=\"always\">\n <mat-label>{{'igo.integration.map-proximity-tool.radiusM' | translate}}</mat-label>\n <input type=\"number\" pattern=\"[0-9]*\" [(ngModel)]=\"maxDistance\" matInput placeholder=\"{{'igo.integration.map-proximity-tool.radiusM' | translate}}\">\n </mat-form-field>\n\n \n</div>", styles: [".table-compact{height:auto}.table-compact ::ng-deep .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea{resize:none}mat-form-field{padding:10px 15px}mat-form-field.coordinates{width:110px}mat-form-field.coordinates2{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container{width:60%;padding:0 15px}.radius-unit{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field{display:flex;flex-flow:column nowrap;width:60%}.title-container{padding:10px}.title{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}\n"] }]
|
|
202
|
-
}], function () { return [{ type: i1.MapState }, { type: i2.MapProximityState }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { table: [{
|
|
203
|
-
type: ViewChild,
|
|
204
|
-
args: ['table', { static: true }]
|
|
205
|
-
}] }); })();
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Component, ViewChild } from '@angular/core';
|
|
3
|
+
import { ToolComponent } from '@igo2/common';
|
|
4
|
+
import { NumberUtils, Clipboard } from '@igo2/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../map.state";
|
|
7
|
+
import * as i2 from "../map-proximity.state";
|
|
8
|
+
import * as i3 from "@igo2/core";
|
|
9
|
+
import * as i4 from "@angular/forms";
|
|
10
|
+
import * as i5 from "@angular/material/form-field";
|
|
11
|
+
import * as i6 from "@angular/material/input";
|
|
12
|
+
import * as i7 from "@angular/common";
|
|
13
|
+
import * as i8 from "@angular/material/icon";
|
|
14
|
+
import * as i9 from "@angular/material/radio";
|
|
15
|
+
import * as i10 from "@angular/material/button";
|
|
16
|
+
import * as i11 from "@igo2/common";
|
|
17
|
+
import * as i12 from "@ngx-translate/core";
|
|
18
|
+
const _c0 = ["table"];
|
|
19
|
+
function MapProximityToolComponent_mat_form_field_3_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "mat-form-field", 14);
|
|
21
|
+
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
22
|
+
i0.ɵɵpipe(3, "translate");
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const coord_r4 = ctx.ngIf;
|
|
26
|
+
i0.ɵɵadvance(1);
|
|
27
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lon"))("value", coord_r4[0]);
|
|
28
|
+
} }
|
|
29
|
+
function MapProximityToolComponent_mat_form_field_5_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelementStart(0, "mat-form-field", 17);
|
|
31
|
+
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
32
|
+
i0.ɵɵpipe(3, "translate");
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
} if (rf & 2) {
|
|
35
|
+
const coord2_r6 = ctx.ngIf;
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lat"))("value", coord2_r6[1]);
|
|
38
|
+
} }
|
|
39
|
+
function MapProximityToolComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
41
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
42
|
+
i0.ɵɵlistener("click", function MapProximityToolComponent_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.copyTextToClipboard()); });
|
|
43
|
+
i0.ɵɵelement(1, "mat-icon", 19);
|
|
44
|
+
i0.ɵɵelementEnd();
|
|
45
|
+
} }
|
|
46
|
+
let MapProximityToolComponent = class MapProximityToolComponent {
|
|
47
|
+
constructor(mapState, mapProximityState, languageService, messageService) {
|
|
48
|
+
this.mapState = mapState;
|
|
49
|
+
this.mapProximityState = mapProximityState;
|
|
50
|
+
this.languageService = languageService;
|
|
51
|
+
this.messageService = messageService;
|
|
52
|
+
this.subs$$ = [];
|
|
53
|
+
/**
|
|
54
|
+
* Table template
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
this.tableTemplate = {
|
|
58
|
+
selection: true,
|
|
59
|
+
selectMany: false,
|
|
60
|
+
selectionCheckbox: false,
|
|
61
|
+
sort: true,
|
|
62
|
+
columns: [
|
|
63
|
+
{
|
|
64
|
+
name: 'element',
|
|
65
|
+
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.feature'),
|
|
66
|
+
valueAccessor: (localFeature) => {
|
|
67
|
+
return localFeature.properties.element;
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'distance',
|
|
72
|
+
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.distance'),
|
|
73
|
+
valueAccessor: (localFeature) => {
|
|
74
|
+
return `${NumberUtils.roundToNDecimal(localFeature.properties.distance, 1)}m`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
get maxDistance() {
|
|
81
|
+
return this.mapProximityState.proximityRadiusValue$.value;
|
|
82
|
+
}
|
|
83
|
+
set maxDistance(value) {
|
|
84
|
+
this.mapProximityState.proximityRadiusValue$.next(value);
|
|
85
|
+
}
|
|
86
|
+
get map() {
|
|
87
|
+
return this.mapState.map;
|
|
88
|
+
}
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
this.mapProximityState.enabled$.next(true);
|
|
91
|
+
this.userDefinedFollowPosition = this.map.geolocationController.followPosition === true;
|
|
92
|
+
this.userDefinedMapCenter = this.map.mapCenter$.value === true;
|
|
93
|
+
this.subs$$.push(this.mapProximityState.proximitylocationType$.subscribe(v => {
|
|
94
|
+
this.map.mapCenter$.next(v !== 'geolocation');
|
|
95
|
+
if (v === 'geolocation') {
|
|
96
|
+
this.map.geolocationController.followPosition = true;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.map.geolocationController.followPosition = false;
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
ngOnDestroy() {
|
|
104
|
+
this.mapProximityState.enabled$.next(false);
|
|
105
|
+
this.map.mapCenter$.next(this.userDefinedMapCenter);
|
|
106
|
+
this.subs$$.map(s => s.unsubscribe());
|
|
107
|
+
this.map.geolocationController.followPosition = this.userDefinedFollowPosition;
|
|
108
|
+
}
|
|
109
|
+
onLocationTypeChange(e) {
|
|
110
|
+
this.mapProximityState.proximitylocationType$.next(e.value);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Copy the coordinates to a clipboard
|
|
114
|
+
*/
|
|
115
|
+
copyTextToClipboard() {
|
|
116
|
+
const successful = Clipboard.copy(this.mapProximityState.currentPositionCoordinate$?.value.toString());
|
|
117
|
+
if (successful) {
|
|
118
|
+
const translate = this.languageService.translate;
|
|
119
|
+
const title = translate.instant('igo.integration.map-proximity-tool.copyTitle');
|
|
120
|
+
const msg = translate.instant('igo.integration.map-proximity-tool.copyMsg');
|
|
121
|
+
this.messageService.success(msg, title);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
MapProximityToolComponent.ɵfac = function MapProximityToolComponent_Factory(t) { return new (t || MapProximityToolComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.MapProximityState), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
|
|
126
|
+
MapProximityToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapProximityToolComponent, selectors: [["igo-map-proximity-tool"]], viewQuery: function MapProximityToolComponent_Query(rf, ctx) { if (rf & 1) {
|
|
127
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
128
|
+
} if (rf & 2) {
|
|
129
|
+
let _t;
|
|
130
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.table = _t.first);
|
|
131
|
+
} }, decls: 31, vars: 35, consts: [[1, "table-compact", 3, "store", "template"], ["table", ""], ["class", "coordinates", 4, "ngIf"], ["class", "coordinates2", 4, "ngIf"], ["mat-icon-button", "", 3, "click", 4, "ngIf"], [1, "title-container"], [1, "title", "mat-typography"], [1, "igo-input-container", "mat-typography"], [3, "change"], ["value", "geolocation", 3, "checked"], ["value", "mapCenter", 3, "checked"], [1, "radius-unit"], ["appearance", "outline", "floatLabel", "always", 1, "measure-field"], ["type", "number", "pattern", "[0-9]*", "matInput", "", 3, "ngModel", "placeholder", "ngModelChange"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["mat-icon-button", "", 3, "click"], ["svgIcon", "content-copy"]], template: function MapProximityToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
132
|
+
i0.ɵɵelement(0, "igo-entity-table", 0, 1)(2, "br");
|
|
133
|
+
i0.ɵɵtemplate(3, MapProximityToolComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
|
|
134
|
+
i0.ɵɵpipe(4, "async");
|
|
135
|
+
i0.ɵɵtemplate(5, MapProximityToolComponent_mat_form_field_5_Template, 4, 4, "mat-form-field", 3);
|
|
136
|
+
i0.ɵɵpipe(6, "async");
|
|
137
|
+
i0.ɵɵtemplate(7, MapProximityToolComponent_button_7_Template, 2, 0, "button", 4);
|
|
138
|
+
i0.ɵɵpipe(8, "async");
|
|
139
|
+
i0.ɵɵpipe(9, "async");
|
|
140
|
+
i0.ɵɵelementStart(10, "div", 5)(11, "mat-label", 6);
|
|
141
|
+
i0.ɵɵtext(12);
|
|
142
|
+
i0.ɵɵpipe(13, "translate");
|
|
143
|
+
i0.ɵɵelementEnd()();
|
|
144
|
+
i0.ɵɵelementStart(14, "div", 7)(15, "mat-radio-group", 8);
|
|
145
|
+
i0.ɵɵlistener("change", function MapProximityToolComponent_Template_mat_radio_group_change_15_listener($event) { return ctx.onLocationTypeChange($event); });
|
|
146
|
+
i0.ɵɵelementStart(16, "mat-radio-button", 9);
|
|
147
|
+
i0.ɵɵpipe(17, "async");
|
|
148
|
+
i0.ɵɵtext(18);
|
|
149
|
+
i0.ɵɵpipe(19, "translate");
|
|
150
|
+
i0.ɵɵelementEnd();
|
|
151
|
+
i0.ɵɵelementStart(20, "mat-radio-button", 10);
|
|
152
|
+
i0.ɵɵpipe(21, "async");
|
|
153
|
+
i0.ɵɵtext(22);
|
|
154
|
+
i0.ɵɵpipe(23, "translate");
|
|
155
|
+
i0.ɵɵelementEnd()()();
|
|
156
|
+
i0.ɵɵelementStart(24, "div", 11)(25, "mat-form-field", 12)(26, "mat-label");
|
|
157
|
+
i0.ɵɵtext(27);
|
|
158
|
+
i0.ɵɵpipe(28, "translate");
|
|
159
|
+
i0.ɵɵelementEnd();
|
|
160
|
+
i0.ɵɵelementStart(29, "input", 13);
|
|
161
|
+
i0.ɵɵlistener("ngModelChange", function MapProximityToolComponent_Template_input_ngModelChange_29_listener($event) { return ctx.maxDistance = $event; });
|
|
162
|
+
i0.ɵɵpipe(30, "translate");
|
|
163
|
+
i0.ɵɵelementEnd()()();
|
|
164
|
+
} if (rf & 2) {
|
|
165
|
+
i0.ɵɵproperty("store", ctx.mapProximityState.proximityFeatureStore)("template", ctx.tableTemplate);
|
|
166
|
+
i0.ɵɵadvance(3);
|
|
167
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.mapProximityState.currentPositionCoordinate$));
|
|
168
|
+
i0.ɵɵadvance(2);
|
|
169
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(6, 15, ctx.mapProximityState.currentPositionCoordinate$));
|
|
170
|
+
i0.ɵɵadvance(2);
|
|
171
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(8, 17, ctx.mapProximityState.currentPositionCoordinate$) && i0.ɵɵpipeBind1(9, 19, ctx.mapProximityState.currentPositionCoordinate$).length);
|
|
172
|
+
i0.ɵɵadvance(5);
|
|
173
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 21, "igo.integration.map-proximity-tool.method"));
|
|
174
|
+
i0.ɵɵadvance(4);
|
|
175
|
+
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(17, 23, ctx.mapProximityState.proximitylocationType$) === "geolocation");
|
|
176
|
+
i0.ɵɵadvance(2);
|
|
177
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 25, "igo.integration.map-proximity-tool.geolocation"));
|
|
178
|
+
i0.ɵɵadvance(2);
|
|
179
|
+
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(21, 27, ctx.mapProximityState.proximitylocationType$) === "mapCenter");
|
|
180
|
+
i0.ɵɵadvance(2);
|
|
181
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, "igo.integration.map-proximity-tool.mapCenter"));
|
|
182
|
+
i0.ɵɵadvance(5);
|
|
183
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 31, "igo.integration.map-proximity-tool.radiusM"));
|
|
184
|
+
i0.ɵɵadvance(2);
|
|
185
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(30, 33, "igo.integration.map-proximity-tool.radiusM"));
|
|
186
|
+
i0.ɵɵproperty("ngModel", ctx.maxDistance);
|
|
187
|
+
} }, dependencies: [i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.PatternValidator, i4.NgModel, i5.MatFormField, i5.MatLabel, i6.MatInput, i7.NgIf, i8.MatIcon, i9.MatRadioGroup, i9.MatRadioButton, i10.MatButton, i11.EntityTableComponent, i7.AsyncPipe, i12.TranslatePipe], styles: [".table-compact[_ngcontent-%COMP%]{height:auto}.table-compact[_ngcontent-%COMP%] .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:110px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.radius-unit[_ngcontent-%COMP%]{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;width:60%}.title-container[_ngcontent-%COMP%]{padding:10px}.title[_ngcontent-%COMP%]{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button[_ngcontent-%COMP%]{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}"] });
|
|
188
|
+
MapProximityToolComponent = __decorate([
|
|
189
|
+
ToolComponent({
|
|
190
|
+
name: 'map-proximity',
|
|
191
|
+
title: 'igo.integration.tools.closestFeature',
|
|
192
|
+
icon: 'radius'
|
|
193
|
+
})
|
|
194
|
+
/**
|
|
195
|
+
* Tool to handle the advanced map tools
|
|
196
|
+
*/
|
|
197
|
+
], MapProximityToolComponent);
|
|
198
|
+
export { MapProximityToolComponent };
|
|
199
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapProximityToolComponent, [{
|
|
200
|
+
type: Component,
|
|
201
|
+
args: [{ selector: 'igo-map-proximity-tool', template: "<igo-entity-table #table class=\"table-compact\" [store]=\"mapProximityState.proximityFeatureStore\" [template]=\"tableTemplate\"></igo-entity-table>\n<br>\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord\" class=\"coordinates\">\n <textarea #textArea matInput readonly rows=\"1\"\n [placeholder]=\"'igo.integration.map-proximity-tool.lon' | translate\"\n [value]=\"coord[0]\"></textarea>\n</mat-form-field>\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord2\" class=\"coordinates2\">\n <textarea #textArea matInput readonly rows=\"1\"\n [placeholder]=\"'igo.integration.map-proximity-tool.lat' | translate\"\n [value]=\"coord2[1]\"></textarea>\n</mat-form-field>\n\n<button *ngIf=\"(mapProximityState.currentPositionCoordinate$ | async) && (mapProximityState.currentPositionCoordinate$ | async).length\" mat-icon-button\n (click)=\"copyTextToClipboard()\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n</button>\n<div class=\"title-container\">\n <mat-label class=\"title mat-typography\">{{'igo.integration.map-proximity-tool.method' | translate}}</mat-label>\n</div>\n<div class=\"igo-input-container mat-typography\">\n <mat-radio-group (change)=\"onLocationTypeChange($event)\">\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='geolocation'\" value=\"geolocation\">{{'igo.integration.map-proximity-tool.geolocation' | translate}}</mat-radio-button>\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='mapCenter'\" value=\"mapCenter\">{{'igo.integration.map-proximity-tool.mapCenter' | translate}}</mat-radio-button>\n </mat-radio-group>\n</div>\n\n<div class=\"radius-unit\"> \n \n <mat-form-field appearance=\"outline\" class=\"measure-field\" floatLabel=\"always\">\n <mat-label>{{'igo.integration.map-proximity-tool.radiusM' | translate}}</mat-label>\n <input type=\"number\" pattern=\"[0-9]*\" [(ngModel)]=\"maxDistance\" matInput placeholder=\"{{'igo.integration.map-proximity-tool.radiusM' | translate}}\">\n </mat-form-field>\n\n \n</div>", styles: [".table-compact{height:auto}.table-compact ::ng-deep .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea{resize:none}mat-form-field{padding:10px 15px}mat-form-field.coordinates{width:110px}mat-form-field.coordinates2{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container{width:60%;padding:0 15px}.radius-unit{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field{display:flex;flex-flow:column nowrap;width:60%}.title-container{padding:10px}.title{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}\n"] }]
|
|
202
|
+
}], function () { return [{ type: i1.MapState }, { type: i2.MapProximityState }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { table: [{
|
|
203
|
+
type: ViewChild,
|
|
204
|
+
args: ['table', { static: true }]
|
|
205
|
+
}] }); })();
|
|
206
206
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLXByb3hpbWl0eS10b29sLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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