@igo2/integration 1.14.1 → 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 +40 -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 +593 -588
- 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 +6462 -6457
- package/fesm2015/igo2-integration.mjs.map +1 -1
- package/fesm2020/igo2-integration.mjs +6021 -6016
- package/fesm2020/igo2-integration.mjs.map +1 -1
- 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 -16
- 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 -98
- 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,218 +1,218 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { Validators } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../map.state";
|
|
5
|
-
import * as i2 from "@igo2/context";
|
|
6
|
-
import * as i3 from "@angular/forms";
|
|
7
|
-
import * as i4 from "../../../tool/tool.state";
|
|
8
|
-
import * as i5 from "@angular/material/divider";
|
|
9
|
-
import * as i6 from "@angular/material/form-field";
|
|
10
|
-
import * as i7 from "@angular/material/select";
|
|
11
|
-
import * as i8 from "@angular/material/core";
|
|
12
|
-
import * as i9 from "@angular/common";
|
|
13
|
-
import * as i10 from "@angular/material/list";
|
|
14
|
-
import * as i11 from "@angular/material/icon";
|
|
15
|
-
import * as i12 from "@angular/material/slide-toggle";
|
|
16
|
-
import * as i13 from "@ngx-translate/core";
|
|
17
|
-
function AdvancedSwipeComponent_div_0_mat_option_12_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
19
|
-
i0.ɵɵelementStart(0, "mat-option", 5);
|
|
20
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_div_0_mat_option_12_Template_mat_option_click_0_listener() { i0.ɵɵrestoreView(_r7); i0.ɵɵnextContext(); const _r3 = i0.ɵɵreference(8); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.applyNewLayers(_r3)); });
|
|
21
|
-
i0.ɵɵtext(1);
|
|
22
|
-
i0.ɵɵelementEnd();
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const layer_r5 = ctx.$implicit;
|
|
25
|
-
i0.ɵɵproperty("value", layer_r5);
|
|
26
|
-
i0.ɵɵadvance(1);
|
|
27
|
-
i0.ɵɵtextInterpolate(layer_r5.title);
|
|
28
|
-
} }
|
|
29
|
-
function AdvancedSwipeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
31
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "form", 3)(2, "mat-form-field")(3, "mat-label");
|
|
32
|
-
i0.ɵɵtext(4);
|
|
33
|
-
i0.ɵɵpipe(5, "translate");
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
i0.ɵɵelementStart(6, "mat-select", 4)(7, "mat-option", 5, 6);
|
|
36
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_div_0_Template_mat_option_click_7_listener() { i0.ɵɵrestoreView(_r9); const _r3 = i0.ɵɵreference(8); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.selectAll(_r3)); });
|
|
37
|
-
i0.ɵɵtext(9);
|
|
38
|
-
i0.ɵɵpipe(10, "translate");
|
|
39
|
-
i0.ɵɵelementEnd();
|
|
40
|
-
i0.ɵɵelement(11, "mat-divider");
|
|
41
|
-
i0.ɵɵtemplate(12, AdvancedSwipeComponent_div_0_mat_option_12_Template, 2, 2, "mat-option", 7);
|
|
42
|
-
i0.ɵɵelementEnd()()();
|
|
43
|
-
i0.ɵɵelementStart(13, "mat-slide-toggle", 8);
|
|
44
|
-
i0.ɵɵlistener("change", function AdvancedSwipeComponent_div_0_Template_mat_slide_toggle_change_13_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.startSwipe($event.checked)); });
|
|
45
|
-
i0.ɵɵtext(14);
|
|
46
|
-
i0.ɵɵpipe(15, "translate");
|
|
47
|
-
i0.ɵɵelementEnd()();
|
|
48
|
-
} if (rf & 2) {
|
|
49
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
|
-
i0.ɵɵadvance(1);
|
|
51
|
-
i0.ɵɵproperty("formGroup", ctx_r0.form);
|
|
52
|
-
i0.ɵɵadvance(3);
|
|
53
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 8, "igo.integration.advanced-map-tool.advanced-swipe.swipe-select"));
|
|
54
|
-
i0.ɵɵadvance(3);
|
|
55
|
-
i0.ɵɵproperty("value", 1);
|
|
56
|
-
i0.ɵɵadvance(2);
|
|
57
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.integration.advanced-map-tool.advanced-swipe.selectAll"), " ");
|
|
58
|
-
i0.ɵɵadvance(3);
|
|
59
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.userControlledLayerList);
|
|
60
|
-
i0.ɵɵadvance(1);
|
|
61
|
-
i0.ɵɵproperty("checked", ctx_r0.swipe)("labelPosition", "before");
|
|
62
|
-
i0.ɵɵadvance(1);
|
|
63
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 12, "igo.integration.advanced-map-tool.advanced-swipe.swipe"), " ");
|
|
64
|
-
} }
|
|
65
|
-
function AdvancedSwipeComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
67
|
-
i0.ɵɵelementStart(0, "mat-list")(1, "p", 9);
|
|
68
|
-
i0.ɵɵtext(2);
|
|
69
|
-
i0.ɵɵpipe(3, "translate");
|
|
70
|
-
i0.ɵɵelementEnd();
|
|
71
|
-
i0.ɵɵelementStart(4, "p", 9);
|
|
72
|
-
i0.ɵɵtext(5);
|
|
73
|
-
i0.ɵɵpipe(6, "translate");
|
|
74
|
-
i0.ɵɵelementEnd();
|
|
75
|
-
i0.ɵɵelementStart(7, "mat-list-item");
|
|
76
|
-
i0.ɵɵelement(8, "mat-icon", 10);
|
|
77
|
-
i0.ɵɵelementStart(9, "h4", 11);
|
|
78
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_9_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.searchEmit()); });
|
|
79
|
-
i0.ɵɵtext(10);
|
|
80
|
-
i0.ɵɵpipe(11, "translate");
|
|
81
|
-
i0.ɵɵelementEnd()();
|
|
82
|
-
i0.ɵɵelementStart(12, "mat-list-item");
|
|
83
|
-
i0.ɵɵelement(13, "mat-icon", 12);
|
|
84
|
-
i0.ɵɵelementStart(14, "h4", 13);
|
|
85
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_14_listener() { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.catalogEmit()); });
|
|
86
|
-
i0.ɵɵtext(15);
|
|
87
|
-
i0.ɵɵpipe(16, "translate");
|
|
88
|
-
i0.ɵɵelementEnd()();
|
|
89
|
-
i0.ɵɵelementStart(17, "mat-list-item");
|
|
90
|
-
i0.ɵɵelement(18, "mat-icon", 14);
|
|
91
|
-
i0.ɵɵelementStart(19, "h4", 15);
|
|
92
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_19_listener() { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.contextEmit()); });
|
|
93
|
-
i0.ɵɵtext(20);
|
|
94
|
-
i0.ɵɵpipe(21, "translate");
|
|
95
|
-
i0.ɵɵelementEnd()()();
|
|
96
|
-
} if (rf & 2) {
|
|
97
|
-
i0.ɵɵadvance(2);
|
|
98
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "igo.integration.advanced-map-tool.advanced-swipe.empty"), "");
|
|
99
|
-
i0.ɵɵadvance(3);
|
|
100
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 7, "igo.integration.advanced-map-tool.advanced-swipe.customize"), "");
|
|
101
|
-
i0.ɵɵadvance(5);
|
|
102
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 9, "igo.integration.advanced-map-tool.advanced-swipe.search-tool"), " ");
|
|
103
|
-
i0.ɵɵadvance(5);
|
|
104
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 11, "igo.integration.advanced-map-tool.advanced-swipe.catalog-tool"), " ");
|
|
105
|
-
i0.ɵɵadvance(5);
|
|
106
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 13, "igo.integration.advanced-map-tool.advanced-swipe.context-tool"), " ");
|
|
107
|
-
} }
|
|
108
|
-
export class AdvancedSwipeComponent {
|
|
109
|
-
constructor(mapState, contextService, formBuilder, toolState) {
|
|
110
|
-
this.mapState = mapState;
|
|
111
|
-
this.contextService = contextService;
|
|
112
|
-
this.formBuilder = formBuilder;
|
|
113
|
-
this.toolState = toolState;
|
|
114
|
-
this.swipe = false;
|
|
115
|
-
this.buildForm();
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Get an active map state
|
|
119
|
-
*/
|
|
120
|
-
get map() {
|
|
121
|
-
return this.mapState.map;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Get the list of layers for swipe
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
127
|
-
ngOnInit() {
|
|
128
|
-
this.map.layers$.subscribe(ll => this.userControlledLayerList = ll.filter(layer => (!layer.baseLayer && layer.showInLayerList && layer.displayed)));
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Desactivate the swipe
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
ngOnDestroy() {
|
|
135
|
-
this.swipe = false;
|
|
136
|
-
this.map.swipeEnabled$.next(this.swipe);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Build a form for choise of the layers
|
|
140
|
-
*/
|
|
141
|
-
buildForm() {
|
|
142
|
-
this.form = this.formBuilder.group({
|
|
143
|
-
layers: ['', [Validators.required]]
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Activate the swipe, send a list of layers for a swipe-tool
|
|
148
|
-
*/
|
|
149
|
-
startSwipe(toggle) {
|
|
150
|
-
this.swipe = toggle;
|
|
151
|
-
this.map.swipeEnabled$.next(toggle);
|
|
152
|
-
this.listForSwipe = [];
|
|
153
|
-
for (const layer of this.form.value.layers) {
|
|
154
|
-
this.listForSwipe.push(layer);
|
|
155
|
-
}
|
|
156
|
-
this.map.selectedFeatures$.next(this.listForSwipe);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Restart a swipe for a new layers-list
|
|
160
|
-
*/
|
|
161
|
-
applyNewLayers(e) {
|
|
162
|
-
this.startSwipe(false); // l'approche KISS
|
|
163
|
-
this.startSwipe(true);
|
|
164
|
-
if (e._selected) {
|
|
165
|
-
e._selected = false;
|
|
166
|
-
}
|
|
167
|
-
const allLayers = this.userControlledLayerList.length;
|
|
168
|
-
const selectedLayers = this.form.controls.layers.value.length;
|
|
169
|
-
if (selectedLayers === allLayers) {
|
|
170
|
-
e._selected = true;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Select all list of layers and restart a tool
|
|
175
|
-
*/
|
|
176
|
-
selectAll(e) {
|
|
177
|
-
if (e._selected) {
|
|
178
|
-
this.form.controls.layers.setValue(this.userControlledLayerList);
|
|
179
|
-
e._selected = true;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
this.form.controls.layers.setValue([]);
|
|
183
|
-
}
|
|
184
|
-
this.startSwipe(false);
|
|
185
|
-
this.startSwipe(true);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Open search tool
|
|
189
|
-
*/
|
|
190
|
-
searchEmit() {
|
|
191
|
-
this.toolState.toolbox.activateTool('searchResults');
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Open catalog
|
|
195
|
-
*/
|
|
196
|
-
catalogEmit() {
|
|
197
|
-
this.toolState.toolbox.activateTool('catalog');
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Open context manager
|
|
201
|
-
*/
|
|
202
|
-
contextEmit() {
|
|
203
|
-
this.toolState.toolbox.activateTool('contextManager');
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.ContextService), i0.ɵɵdirectiveInject(i3.UntypedFormBuilder), i0.ɵɵdirectiveInject(i4.ToolState)); };
|
|
207
|
-
AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedSwipeComponent, selectors: [["igo-advanced-swipe"]], decls: 3, vars: 2, consts: [["class", "igo-swipe-select-container", 4, "ngIf", "ngIfElse"], ["noLayersBlock", ""], [1, "igo-swipe-select-container"], [1, "igo-form", 3, "formGroup"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", "click", 4, "ngFor", "ngForOf"], [1, "swipe-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "map-empty", "mat-typography"], ["mat-list-icon", "", "svgIcon", "magnify"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "layers-plus"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "star"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function AdvancedSwipeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
-
i0.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
|
|
209
|
-
i0.ɵɵtemplate(1, AdvancedSwipeComponent_ng_template_1_Template, 22, 15, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
210
|
-
} if (rf & 2) {
|
|
211
|
-
const _r1 = i0.ɵɵreference(2);
|
|
212
|
-
i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
213
|
-
} }, dependencies: [i3.ɵNgNoValidate, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i5.MatDivider, i6.MatFormField, i6.MatLabel, i7.MatSelect, i8.MatOption, i9.NgForOf, i9.NgIf, i10.MatList, i10.MatListItem, i8.MatLine, i10.MatListIconCssMatStyler, i11.MatIcon, i12.MatSlideToggle, i13.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:700}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
|
|
214
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
215
|
-
type: Component,
|
|
216
|
-
args: [{ selector: 'igo-advanced-swipe', template: "<div *ngIf=\"userControlledLayerList.length; else noLayersBlock\" class=\"igo-swipe-select-container\">\n <form class=\"igo-form\" [formGroup]=\"form\">\n <mat-form-field>\n <mat-label>{{'igo.integration.advanced-map-tool.advanced-swipe.swipe-select' | translate}}</mat-label>\n <mat-select formControlName=\"layers\" multiple>\n <mat-option [value]=\"1\" (click)=\"selectAll(e)\" #e>\n {{'igo.integration.advanced-map-tool.advanced-swipe.selectAll' | translate}}\n </mat-option>\n <mat-divider></mat-divider>\n <mat-option *ngFor=\"let layer of userControlledLayerList\" [value]=\"layer\" (click)=\"applyNewLayers(e)\">{{layer.title}}</mat-option>\n </mat-select>\n </mat-form-field>\n </form>\n\n <mat-slide-toggle class=\"swipe-toggle mat-typography\"\n [checked]=\"swipe\"\n [labelPosition]=\"'before'\"\n (change)=\"startSwipe($event.checked)\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.swipe' | translate}}\n </mat-slide-toggle> \n</div>\n\n<ng-template #noLayersBlock>\n <mat-list>\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.empty' | translate}}</p>\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.customize' | translate}}</p>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"magnify\"></mat-icon>\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.search-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"layers-plus\"></mat-icon>\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.catalog-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"star\"></mat-icon>\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.context-tool' | translate}}\n </h4>\n </mat-list-item>\n </mat-list>\n</ng-template>\n", styles: [".nameOfTool{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.igo-swipe-select-container{padding:10px}.igo-swipe-select-container mat-form-field{width:100%}.igo-form{padding:1px 5px;width:100%}.swipe-toggle{padding:10px 5px 35px}.map-empty,.search-tool,.catalog-tool,.context-tool{margin:5px}.map-empty{padding:10px;text-align:justify}.search-tool,.catalog-tool,.context-tool{cursor:pointer}mat-list mat-list-item h4{font-weight:700}mat-list-item ::ng-deep .mat-list-text{font-size:smaller}mat-list.mat-list-base mat-list-item.mat-list-item ::ng-deep div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line{height:2px;background-color:gray}\n"] }]
|
|
217
|
-
}], function () { return [{ type: i1.MapState }, { type: i2.ContextService }, { type: i3.UntypedFormBuilder }, { type: i4.ToolState }]; }, null); })();
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { Validators } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../map.state";
|
|
5
|
+
import * as i2 from "@igo2/context";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "../../../tool/tool.state";
|
|
8
|
+
import * as i5 from "@angular/material/divider";
|
|
9
|
+
import * as i6 from "@angular/material/form-field";
|
|
10
|
+
import * as i7 from "@angular/material/select";
|
|
11
|
+
import * as i8 from "@angular/material/core";
|
|
12
|
+
import * as i9 from "@angular/common";
|
|
13
|
+
import * as i10 from "@angular/material/list";
|
|
14
|
+
import * as i11 from "@angular/material/icon";
|
|
15
|
+
import * as i12 from "@angular/material/slide-toggle";
|
|
16
|
+
import * as i13 from "@ngx-translate/core";
|
|
17
|
+
function AdvancedSwipeComponent_div_0_mat_option_12_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
19
|
+
i0.ɵɵelementStart(0, "mat-option", 5);
|
|
20
|
+
i0.ɵɵlistener("click", function AdvancedSwipeComponent_div_0_mat_option_12_Template_mat_option_click_0_listener() { i0.ɵɵrestoreView(_r7); i0.ɵɵnextContext(); const _r3 = i0.ɵɵreference(8); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.applyNewLayers(_r3)); });
|
|
21
|
+
i0.ɵɵtext(1);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const layer_r5 = ctx.$implicit;
|
|
25
|
+
i0.ɵɵproperty("value", layer_r5);
|
|
26
|
+
i0.ɵɵadvance(1);
|
|
27
|
+
i0.ɵɵtextInterpolate(layer_r5.title);
|
|
28
|
+
} }
|
|
29
|
+
function AdvancedSwipeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
31
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "form", 3)(2, "mat-form-field")(3, "mat-label");
|
|
32
|
+
i0.ɵɵtext(4);
|
|
33
|
+
i0.ɵɵpipe(5, "translate");
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
i0.ɵɵelementStart(6, "mat-select", 4)(7, "mat-option", 5, 6);
|
|
36
|
+
i0.ɵɵlistener("click", function AdvancedSwipeComponent_div_0_Template_mat_option_click_7_listener() { i0.ɵɵrestoreView(_r9); const _r3 = i0.ɵɵreference(8); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.selectAll(_r3)); });
|
|
37
|
+
i0.ɵɵtext(9);
|
|
38
|
+
i0.ɵɵpipe(10, "translate");
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
i0.ɵɵelement(11, "mat-divider");
|
|
41
|
+
i0.ɵɵtemplate(12, AdvancedSwipeComponent_div_0_mat_option_12_Template, 2, 2, "mat-option", 7);
|
|
42
|
+
i0.ɵɵelementEnd()()();
|
|
43
|
+
i0.ɵɵelementStart(13, "mat-slide-toggle", 8);
|
|
44
|
+
i0.ɵɵlistener("change", function AdvancedSwipeComponent_div_0_Template_mat_slide_toggle_change_13_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.startSwipe($event.checked)); });
|
|
45
|
+
i0.ɵɵtext(14);
|
|
46
|
+
i0.ɵɵpipe(15, "translate");
|
|
47
|
+
i0.ɵɵelementEnd()();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
|
+
i0.ɵɵadvance(1);
|
|
51
|
+
i0.ɵɵproperty("formGroup", ctx_r0.form);
|
|
52
|
+
i0.ɵɵadvance(3);
|
|
53
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 8, "igo.integration.advanced-map-tool.advanced-swipe.swipe-select"));
|
|
54
|
+
i0.ɵɵadvance(3);
|
|
55
|
+
i0.ɵɵproperty("value", 1);
|
|
56
|
+
i0.ɵɵadvance(2);
|
|
57
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.integration.advanced-map-tool.advanced-swipe.selectAll"), " ");
|
|
58
|
+
i0.ɵɵadvance(3);
|
|
59
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.userControlledLayerList);
|
|
60
|
+
i0.ɵɵadvance(1);
|
|
61
|
+
i0.ɵɵproperty("checked", ctx_r0.swipe)("labelPosition", "before");
|
|
62
|
+
i0.ɵɵadvance(1);
|
|
63
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 12, "igo.integration.advanced-map-tool.advanced-swipe.swipe"), " ");
|
|
64
|
+
} }
|
|
65
|
+
function AdvancedSwipeComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
67
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 9);
|
|
68
|
+
i0.ɵɵtext(2);
|
|
69
|
+
i0.ɵɵpipe(3, "translate");
|
|
70
|
+
i0.ɵɵelementEnd();
|
|
71
|
+
i0.ɵɵelementStart(4, "p", 9);
|
|
72
|
+
i0.ɵɵtext(5);
|
|
73
|
+
i0.ɵɵpipe(6, "translate");
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
i0.ɵɵelementStart(7, "mat-list-item");
|
|
76
|
+
i0.ɵɵelement(8, "mat-icon", 10);
|
|
77
|
+
i0.ɵɵelementStart(9, "h4", 11);
|
|
78
|
+
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_9_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.searchEmit()); });
|
|
79
|
+
i0.ɵɵtext(10);
|
|
80
|
+
i0.ɵɵpipe(11, "translate");
|
|
81
|
+
i0.ɵɵelementEnd()();
|
|
82
|
+
i0.ɵɵelementStart(12, "mat-list-item");
|
|
83
|
+
i0.ɵɵelement(13, "mat-icon", 12);
|
|
84
|
+
i0.ɵɵelementStart(14, "h4", 13);
|
|
85
|
+
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_14_listener() { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.catalogEmit()); });
|
|
86
|
+
i0.ɵɵtext(15);
|
|
87
|
+
i0.ɵɵpipe(16, "translate");
|
|
88
|
+
i0.ɵɵelementEnd()();
|
|
89
|
+
i0.ɵɵelementStart(17, "mat-list-item");
|
|
90
|
+
i0.ɵɵelement(18, "mat-icon", 14);
|
|
91
|
+
i0.ɵɵelementStart(19, "h4", 15);
|
|
92
|
+
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_19_listener() { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.contextEmit()); });
|
|
93
|
+
i0.ɵɵtext(20);
|
|
94
|
+
i0.ɵɵpipe(21, "translate");
|
|
95
|
+
i0.ɵɵelementEnd()()();
|
|
96
|
+
} if (rf & 2) {
|
|
97
|
+
i0.ɵɵadvance(2);
|
|
98
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "igo.integration.advanced-map-tool.advanced-swipe.empty"), "");
|
|
99
|
+
i0.ɵɵadvance(3);
|
|
100
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 7, "igo.integration.advanced-map-tool.advanced-swipe.customize"), "");
|
|
101
|
+
i0.ɵɵadvance(5);
|
|
102
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 9, "igo.integration.advanced-map-tool.advanced-swipe.search-tool"), " ");
|
|
103
|
+
i0.ɵɵadvance(5);
|
|
104
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 11, "igo.integration.advanced-map-tool.advanced-swipe.catalog-tool"), " ");
|
|
105
|
+
i0.ɵɵadvance(5);
|
|
106
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 13, "igo.integration.advanced-map-tool.advanced-swipe.context-tool"), " ");
|
|
107
|
+
} }
|
|
108
|
+
export class AdvancedSwipeComponent {
|
|
109
|
+
constructor(mapState, contextService, formBuilder, toolState) {
|
|
110
|
+
this.mapState = mapState;
|
|
111
|
+
this.contextService = contextService;
|
|
112
|
+
this.formBuilder = formBuilder;
|
|
113
|
+
this.toolState = toolState;
|
|
114
|
+
this.swipe = false;
|
|
115
|
+
this.buildForm();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get an active map state
|
|
119
|
+
*/
|
|
120
|
+
get map() {
|
|
121
|
+
return this.mapState.map;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get the list of layers for swipe
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
ngOnInit() {
|
|
128
|
+
this.map.layers$.subscribe(ll => this.userControlledLayerList = ll.filter(layer => (!layer.baseLayer && layer.showInLayerList && layer.displayed)));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Desactivate the swipe
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
ngOnDestroy() {
|
|
135
|
+
this.swipe = false;
|
|
136
|
+
this.map.swipeEnabled$.next(this.swipe);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Build a form for choise of the layers
|
|
140
|
+
*/
|
|
141
|
+
buildForm() {
|
|
142
|
+
this.form = this.formBuilder.group({
|
|
143
|
+
layers: ['', [Validators.required]]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Activate the swipe, send a list of layers for a swipe-tool
|
|
148
|
+
*/
|
|
149
|
+
startSwipe(toggle) {
|
|
150
|
+
this.swipe = toggle;
|
|
151
|
+
this.map.swipeEnabled$.next(toggle);
|
|
152
|
+
this.listForSwipe = [];
|
|
153
|
+
for (const layer of this.form.value.layers) {
|
|
154
|
+
this.listForSwipe.push(layer);
|
|
155
|
+
}
|
|
156
|
+
this.map.selectedFeatures$.next(this.listForSwipe);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Restart a swipe for a new layers-list
|
|
160
|
+
*/
|
|
161
|
+
applyNewLayers(e) {
|
|
162
|
+
this.startSwipe(false); // l'approche KISS
|
|
163
|
+
this.startSwipe(true);
|
|
164
|
+
if (e._selected) {
|
|
165
|
+
e._selected = false;
|
|
166
|
+
}
|
|
167
|
+
const allLayers = this.userControlledLayerList.length;
|
|
168
|
+
const selectedLayers = this.form.controls.layers.value.length;
|
|
169
|
+
if (selectedLayers === allLayers) {
|
|
170
|
+
e._selected = true;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Select all list of layers and restart a tool
|
|
175
|
+
*/
|
|
176
|
+
selectAll(e) {
|
|
177
|
+
if (e._selected) {
|
|
178
|
+
this.form.controls.layers.setValue(this.userControlledLayerList);
|
|
179
|
+
e._selected = true;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.form.controls.layers.setValue([]);
|
|
183
|
+
}
|
|
184
|
+
this.startSwipe(false);
|
|
185
|
+
this.startSwipe(true);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Open search tool
|
|
189
|
+
*/
|
|
190
|
+
searchEmit() {
|
|
191
|
+
this.toolState.toolbox.activateTool('searchResults');
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Open catalog
|
|
195
|
+
*/
|
|
196
|
+
catalogEmit() {
|
|
197
|
+
this.toolState.toolbox.activateTool('catalog');
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Open context manager
|
|
201
|
+
*/
|
|
202
|
+
contextEmit() {
|
|
203
|
+
this.toolState.toolbox.activateTool('contextManager');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.ContextService), i0.ɵɵdirectiveInject(i3.UntypedFormBuilder), i0.ɵɵdirectiveInject(i4.ToolState)); };
|
|
207
|
+
AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedSwipeComponent, selectors: [["igo-advanced-swipe"]], decls: 3, vars: 2, consts: [["class", "igo-swipe-select-container", 4, "ngIf", "ngIfElse"], ["noLayersBlock", ""], [1, "igo-swipe-select-container"], [1, "igo-form", 3, "formGroup"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", "click", 4, "ngFor", "ngForOf"], [1, "swipe-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "map-empty", "mat-typography"], ["mat-list-icon", "", "svgIcon", "magnify"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "layers-plus"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "star"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function AdvancedSwipeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
+
i0.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
|
|
209
|
+
i0.ɵɵtemplate(1, AdvancedSwipeComponent_ng_template_1_Template, 22, 15, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
210
|
+
} if (rf & 2) {
|
|
211
|
+
const _r1 = i0.ɵɵreference(2);
|
|
212
|
+
i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
213
|
+
} }, dependencies: [i3.ɵNgNoValidate, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i5.MatDivider, i6.MatFormField, i6.MatLabel, i7.MatSelect, i8.MatOption, i9.NgForOf, i9.NgIf, i10.MatList, i10.MatListItem, i8.MatLine, i10.MatListIconCssMatStyler, i11.MatIcon, i12.MatSlideToggle, i13.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:700}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
|
|
214
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
215
|
+
type: Component,
|
|
216
|
+
args: [{ selector: 'igo-advanced-swipe', template: "<div *ngIf=\"userControlledLayerList.length; else noLayersBlock\" class=\"igo-swipe-select-container\">\n <form class=\"igo-form\" [formGroup]=\"form\">\n <mat-form-field>\n <mat-label>{{'igo.integration.advanced-map-tool.advanced-swipe.swipe-select' | translate}}</mat-label>\n <mat-select formControlName=\"layers\" multiple>\n <mat-option [value]=\"1\" (click)=\"selectAll(e)\" #e>\n {{'igo.integration.advanced-map-tool.advanced-swipe.selectAll' | translate}}\n </mat-option>\n <mat-divider></mat-divider>\n <mat-option *ngFor=\"let layer of userControlledLayerList\" [value]=\"layer\" (click)=\"applyNewLayers(e)\">{{layer.title}}</mat-option>\n </mat-select>\n </mat-form-field>\n </form>\n\n <mat-slide-toggle class=\"swipe-toggle mat-typography\"\n [checked]=\"swipe\"\n [labelPosition]=\"'before'\"\n (change)=\"startSwipe($event.checked)\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.swipe' | translate}}\n </mat-slide-toggle> \n</div>\n\n<ng-template #noLayersBlock>\n <mat-list>\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.empty' | translate}}</p>\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.customize' | translate}}</p>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"magnify\"></mat-icon>\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.search-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"layers-plus\"></mat-icon>\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.catalog-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item>\n <mat-icon mat-list-icon svgIcon=\"star\"></mat-icon>\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\n {{'igo.integration.advanced-map-tool.advanced-swipe.context-tool' | translate}}\n </h4>\n </mat-list-item>\n </mat-list>\n</ng-template>\n", styles: [".nameOfTool{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.igo-swipe-select-container{padding:10px}.igo-swipe-select-container mat-form-field{width:100%}.igo-form{padding:1px 5px;width:100%}.swipe-toggle{padding:10px 5px 35px}.map-empty,.search-tool,.catalog-tool,.context-tool{margin:5px}.map-empty{padding:10px;text-align:justify}.search-tool,.catalog-tool,.context-tool{cursor:pointer}mat-list mat-list-item h4{font-weight:700}mat-list-item ::ng-deep .mat-list-text{font-size:smaller}mat-list.mat-list-base mat-list-item.mat-list-item ::ng-deep div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line{height:2px;background-color:gray}\n"] }]
|
|
217
|
+
}], function () { return [{ type: i1.MapState }, { type: i2.ContextService }, { type: i3.UntypedFormBuilder }, { type: i4.ToolState }]; }, null); })();
|
|
218
218
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWR2YW5jZWQtc3dpcGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvaW50ZWdyYXRpb24vc3JjL2xpYi9tYXAvYWR2YW5jZWQtbWFwLXRvb2wvYWR2YW5jZWQtc3dpcGUvYWR2YW5jZWQtc3dpcGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvaW50ZWdyYXRpb24vc3JjL2xpYi9tYXAvYWR2YW5jZWQtbWFwLXRvb2wvYWR2YW5jZWQtc3dpcGUvYWR2YW5jZWQtc3dpcGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxFQUF3QyxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7SUNRbEUscUNBQXNHO0lBQTVCLHdPQUFTLGVBQUEsMEJBQWlCLENBQUEsSUFBQztJQUFDLFlBQWU7SUFBQSxpQkFBYTs7O0lBQXhFLGdDQUFlO0lBQTZCLGVBQWU7SUFBZixvQ0FBZTs7OztJQVRySSw4QkFBbUcsY0FBQSxxQkFBQSxnQkFBQTtJQUc1RSxZQUErRTs7SUFBQSxpQkFBWTtJQUN0RyxxQ0FBOEMsdUJBQUE7SUFDbEIsc01BQVMsZUFBQSxxQkFBWSxDQUFBLElBQUM7SUFDMUMsWUFDSjs7SUFBQSxpQkF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saXN0LWl0ZW0+XG4gICAgPC9tYXQtbGlzdD5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './advanced-map-tool.component';
|
|
1
|
+
export * from './advanced-map-tool.component';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9pbnRlZ3JhdGlvbi9zcmMvbGliL21hcC9hZHZhbmNlZC1tYXAtdG9vbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hZHZhbmNlZC1tYXAtdG9vbC5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './advanced-map-tool';
|
|
2
|
-
export * from './map-proximity-tool';
|
|
3
|
-
export * from './map-details-tool';
|
|
4
|
-
export * from './map-legend';
|
|
5
|
-
export * from './map-tool';
|
|
6
|
-
export * from './map-tools';
|
|
7
|
-
export * from './map.state';
|
|
8
|
-
export * from './map-proximity.state';
|
|
1
|
+
export * from './advanced-map-tool';
|
|
2
|
+
export * from './map-proximity-tool';
|
|
3
|
+
export * from './map-details-tool';
|
|
4
|
+
export * from './map-legend';
|
|
5
|
+
export * from './map-tool';
|
|
6
|
+
export * from './map-tools';
|
|
7
|
+
export * from './map.state';
|
|
8
|
+
export * from './map-proximity.state';
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9pbnRlZ3JhdGlvbi9zcmMvbGliL21hcC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hZHZhbmNlZC1tYXAtdG9vbCc7XG5leHBvcnQgKiBmcm9tICcuL21hcC1wcm94aW1pdHktdG9vbCc7XG5leHBvcnQgKiBmcm9tICcuL21hcC1kZXRhaWxzLXRvb2wnO1xuZXhwb3J0ICogZnJvbSAnLi9tYXAtbGVnZW5kJztcbmV4cG9ydCAqIGZyb20gJy4vbWFwLXRvb2wnO1xuZXhwb3J0ICogZnJvbSAnLi9tYXAtdG9vbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9tYXAuc3RhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9tYXAtcHJveGltaXR5LnN0YXRlJztcbiJdfQ==
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service that holds the state of layer list tool values
|
|
6
|
-
*/
|
|
7
|
-
export class LayerListToolState {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.keyword$ = new BehaviorSubject('');
|
|
10
|
-
this.sortAlpha$ = new BehaviorSubject(undefined);
|
|
11
|
-
this.onlyVisible$ = new BehaviorSubject(undefined);
|
|
12
|
-
this.selectedTab$ = new BehaviorSubject(undefined);
|
|
13
|
-
}
|
|
14
|
-
setKeyword(keyword) {
|
|
15
|
-
this.keyword$.next(keyword);
|
|
16
|
-
}
|
|
17
|
-
setSortAlpha(sort) {
|
|
18
|
-
this.sortAlpha$.next(sort);
|
|
19
|
-
}
|
|
20
|
-
setOnlyVisible(onlyVisible) {
|
|
21
|
-
this.onlyVisible$.next(onlyVisible);
|
|
22
|
-
}
|
|
23
|
-
setSelectedTab(tab) {
|
|
24
|
-
this.selectedTab$.next(tab);
|
|
25
|
-
}
|
|
26
|
-
getLayerListControls() {
|
|
27
|
-
return {
|
|
28
|
-
keyword: this.keyword$.value,
|
|
29
|
-
onlyVisible: this.onlyVisible$.value,
|
|
30
|
-
sortAlpha: this.sortAlpha$.value
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
LayerListToolState.ɵfac = function LayerListToolState_Factory(t) { return new (t || LayerListToolState)(); };
|
|
35
|
-
LayerListToolState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LayerListToolState, factory: LayerListToolState.ɵfac, providedIn: 'root' });
|
|
36
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayerListToolState, [{
|
|
37
|
-
type: Injectable,
|
|
38
|
-
args: [{
|
|
39
|
-
providedIn: 'root'
|
|
40
|
-
}]
|
|
41
|
-
}], null, null); })();
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Service that holds the state of layer list tool values
|
|
6
|
+
*/
|
|
7
|
+
export class LayerListToolState {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.keyword$ = new BehaviorSubject('');
|
|
10
|
+
this.sortAlpha$ = new BehaviorSubject(undefined);
|
|
11
|
+
this.onlyVisible$ = new BehaviorSubject(undefined);
|
|
12
|
+
this.selectedTab$ = new BehaviorSubject(undefined);
|
|
13
|
+
}
|
|
14
|
+
setKeyword(keyword) {
|
|
15
|
+
this.keyword$.next(keyword);
|
|
16
|
+
}
|
|
17
|
+
setSortAlpha(sort) {
|
|
18
|
+
this.sortAlpha$.next(sort);
|
|
19
|
+
}
|
|
20
|
+
setOnlyVisible(onlyVisible) {
|
|
21
|
+
this.onlyVisible$.next(onlyVisible);
|
|
22
|
+
}
|
|
23
|
+
setSelectedTab(tab) {
|
|
24
|
+
this.selectedTab$.next(tab);
|
|
25
|
+
}
|
|
26
|
+
getLayerListControls() {
|
|
27
|
+
return {
|
|
28
|
+
keyword: this.keyword$.value,
|
|
29
|
+
onlyVisible: this.onlyVisible$.value,
|
|
30
|
+
sortAlpha: this.sortAlpha$.value
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
LayerListToolState.ɵfac = function LayerListToolState_Factory(t) { return new (t || LayerListToolState)(); };
|
|
35
|
+
LayerListToolState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LayerListToolState, factory: LayerListToolState.ɵfac, providedIn: 'root' });
|
|
36
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayerListToolState, [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{
|
|
39
|
+
providedIn: 'root'
|
|
40
|
+
}]
|
|
41
|
+
}], null, null); })();
|
|
42
42
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXItbGlzdC10b29sLnN0YXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvaW50ZWdyYXRpb24vc3JjL2xpYi9tYXAvbGF5ZXItbGlzdC10b29sLnN0YXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFHdkM7O0dBR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B7XG4gICAgICAgIHRoaXMuc29ydEFscGhhJC5uZXh0KHNvcnQpO1xuICAgICAgfVxuXG4gICAgc2V0T25seVZpc2libGUob25seVZpc2libGU6IGJvb2xlYW4pIHtcbiAgICAgICAgdGhpcy5vbmx5VmlzaWJsZSQubmV4dChvbmx5VmlzaWJsZSk7XG4gICAgICB9XG5cbiAgICBzZXRTZWxlY3RlZFRhYih0YWI6IG51bWJlcikge1xuICAgICAgdGhpcy5zZWxlY3RlZFRhYiQubmV4dCh0YWIpO1xuICAgIH1cblxuICAgIGdldExheWVyTGlzdENvbnRyb2xzKCk6IExheWVyTGlzdENvbnRyb2xzT3B0aW9ucyB7XG4gICAgICByZXR1cm4ge1xuICAgICAgICBrZXl3b3JkOiB0aGlzLmtleXdvcmQkLnZhbHVlLFxuICAgICAgICBvbmx5VmlzaWJsZTogdGhpcy5vbmx5VmlzaWJsZSQudmFsdWUsXG4gICAgICAgIHNvcnRBbHBoYTogdGhpcy5zb3J0QWxwaGEkLnZhbHVlXG4gICAgICB9O1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './map-details-tool.component';
|
|
1
|
+
export * from './map-details-tool.component';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9pbnRlZ3JhdGlvbi9zcmMvbGliL21hcC9tYXAtZGV0YWlscy10b29sL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsOEJBQThCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21hcC1kZXRhaWxzLXRvb2wuY29tcG9uZW50JztcbiJdfQ==
|