@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,275 +1,275 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, ReplaySubject, combineLatest } from 'rxjs';
|
|
4
|
-
import { map, debounceTime } from 'rxjs/operators';
|
|
5
|
-
import { ToolComponent } from '@igo2/common';
|
|
6
|
-
import { sourceCanSearch } from '@igo2/geo';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./../map.state";
|
|
9
|
-
import * as i2 from "./../../tool/tool.state";
|
|
10
|
-
import * as i3 from "@igo2/geo";
|
|
11
|
-
import * as i4 from "@angular/common";
|
|
12
|
-
import * as i5 from "@angular/material/list";
|
|
13
|
-
import * as i6 from "@angular/material/core";
|
|
14
|
-
import * as i7 from "@angular/material/icon";
|
|
15
|
-
import * as i8 from "@ngx-translate/core";
|
|
16
|
-
function MapLegendToolComponent_igo_layer_legend_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
18
|
-
i0.ɵɵelementStart(0, "igo-layer-legend-list", 4);
|
|
19
|
-
i0.ɵɵlistener("allLegendsShown", function MapLegendToolComponent_igo_layer_legend_list_0_Template_igo_layer_legend_list_allLegendsShown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onShowAllLegends($event)); });
|
|
20
|
-
i0.ɵɵpipe(1, "async");
|
|
21
|
-
i0.ɵɵelementEnd();
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
|
-
i0.ɵɵproperty("excludeBaseLayers", ctx_r0.excludeBaseLayers)("allowShowAllLegends", ctx_r0.allowShowAllLegends)("updateLegendOnResolutionChange", ctx_r0.updateLegendOnResolutionChange)("showAllLegendsValue", i0.ɵɵpipeBind1(1, 4, ctx_r0.showAllLegendsValue$));
|
|
25
|
-
} }
|
|
26
|
-
function MapLegendToolComponent_1_ng_template_0_Template(rf, ctx) { }
|
|
27
|
-
function MapLegendToolComponent_1_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵtemplate(0, MapLegendToolComponent_1_ng_template_0_Template, 0, 0, "ng-template");
|
|
29
|
-
} }
|
|
30
|
-
function MapLegendToolComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
32
|
-
i0.ɵɵtext(1);
|
|
33
|
-
i0.ɵɵpipe(2, "async");
|
|
34
|
-
i0.ɵɵpipe(3, "translate");
|
|
35
|
-
i0.ɵɵpipe(4, "translate");
|
|
36
|
-
i0.ɵɵelementEnd();
|
|
37
|
-
} if (rf & 2) {
|
|
38
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
39
|
-
i0.ɵɵadvance(1);
|
|
40
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r2.visibleLayers$).length ? i0.ɵɵpipeBind1(3, 3, "igo.integration.mapTool.noLayersInRange") : i0.ɵɵpipeBind1(4, 5, "igo.integration.mapTool.noLayersVisible"), "\n");
|
|
41
|
-
} }
|
|
42
|
-
function MapLegendToolComponent_ng_template_6_mat_list_0_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
44
|
-
i0.ɵɵtext(1);
|
|
45
|
-
i0.ɵɵpipe(2, "translate");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
47
|
-
} if (rf & 2) {
|
|
48
|
-
i0.ɵɵadvance(1);
|
|
49
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.integration.mapTool.customize"), "");
|
|
50
|
-
} }
|
|
51
|
-
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
53
|
-
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
54
|
-
i0.ɵɵnamespaceSVG();
|
|
55
|
-
i0.ɵɵelementStart(2, "svg", 8);
|
|
56
|
-
i0.ɵɵelement(3, "path", 9);
|
|
57
|
-
i0.ɵɵelementEnd()();
|
|
58
|
-
i0.ɵɵnamespaceHTML();
|
|
59
|
-
i0.ɵɵelementStart(4, "h4", 10);
|
|
60
|
-
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r13.searchEmit()); });
|
|
61
|
-
i0.ɵɵtext(5);
|
|
62
|
-
i0.ɵɵpipe(6, "translate");
|
|
63
|
-
i0.ɵɵelementEnd()();
|
|
64
|
-
} if (rf & 2) {
|
|
65
|
-
i0.ɵɵadvance(5);
|
|
66
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.search-tool"), " ");
|
|
67
|
-
} }
|
|
68
|
-
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
70
|
-
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
71
|
-
i0.ɵɵnamespaceSVG();
|
|
72
|
-
i0.ɵɵelementStart(2, "svg", 8);
|
|
73
|
-
i0.ɵɵelement(3, "path", 11);
|
|
74
|
-
i0.ɵɵelementEnd()();
|
|
75
|
-
i0.ɵɵnamespaceHTML();
|
|
76
|
-
i0.ɵɵelementStart(4, "h4", 12);
|
|
77
|
-
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r15.catalogEmit()); });
|
|
78
|
-
i0.ɵɵtext(5);
|
|
79
|
-
i0.ɵɵpipe(6, "translate");
|
|
80
|
-
i0.ɵɵelementEnd()();
|
|
81
|
-
} if (rf & 2) {
|
|
82
|
-
i0.ɵɵadvance(5);
|
|
83
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.catalog-tool"), " ");
|
|
84
|
-
} }
|
|
85
|
-
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
87
|
-
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
88
|
-
i0.ɵɵnamespaceSVG();
|
|
89
|
-
i0.ɵɵelementStart(2, "svg", 8);
|
|
90
|
-
i0.ɵɵelement(3, "path", 13);
|
|
91
|
-
i0.ɵɵelementEnd()();
|
|
92
|
-
i0.ɵɵnamespaceHTML();
|
|
93
|
-
i0.ɵɵelementStart(4, "h4", 14);
|
|
94
|
-
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r17.contextEmit()); });
|
|
95
|
-
i0.ɵɵtext(5);
|
|
96
|
-
i0.ɵɵpipe(6, "translate");
|
|
97
|
-
i0.ɵɵelementEnd()();
|
|
98
|
-
} if (rf & 2) {
|
|
99
|
-
i0.ɵɵadvance(5);
|
|
100
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.context-tool"), " ");
|
|
101
|
-
} }
|
|
102
|
-
function MapLegendToolComponent_ng_template_6_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
-
i0.ɵɵelementStart(0, "mat-list")(1, "p", 5);
|
|
104
|
-
i0.ɵɵtext(2);
|
|
105
|
-
i0.ɵɵpipe(3, "translate");
|
|
106
|
-
i0.ɵɵelementEnd();
|
|
107
|
-
i0.ɵɵtemplate(4, MapLegendToolComponent_ng_template_6_mat_list_0_p_4_Template, 3, 3, "p", 2);
|
|
108
|
-
i0.ɵɵtemplate(5, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template, 7, 3, "mat-list-item", 6);
|
|
109
|
-
i0.ɵɵtemplate(6, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template, 7, 3, "mat-list-item", 6);
|
|
110
|
-
i0.ɵɵtemplate(7, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template, 7, 3, "mat-list-item", 6);
|
|
111
|
-
i0.ɵɵelementEnd();
|
|
112
|
-
} if (rf & 2) {
|
|
113
|
-
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
114
|
-
i0.ɵɵadvance(2);
|
|
115
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "igo.integration.mapTool.empty"), "");
|
|
116
|
-
i0.ɵɵadvance(2);
|
|
117
|
-
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && (ctx_r8.searchToolInToolbar || ctx_r8.catalogToolInToolbar || ctx_r8.contextToolInToolbar));
|
|
118
|
-
i0.ɵɵadvance(1);
|
|
119
|
-
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.searchToolInToolbar);
|
|
120
|
-
i0.ɵɵadvance(1);
|
|
121
|
-
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.catalogToolInToolbar);
|
|
122
|
-
i0.ɵɵadvance(1);
|
|
123
|
-
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.contextToolInToolbar);
|
|
124
|
-
} }
|
|
125
|
-
function MapLegendToolComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
-
i0.ɵɵtemplate(0, MapLegendToolComponent_ng_template_6_mat_list_0_Template, 8, 7, "mat-list", 6);
|
|
127
|
-
} if (rf & 2) {
|
|
128
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
129
|
-
i0.ɵɵproperty("ngIf", ctx_r4.delayedShowEmptyMapContent);
|
|
130
|
-
} }
|
|
131
|
-
let MapLegendToolComponent = class MapLegendToolComponent {
|
|
132
|
-
constructor(mapState, toolState, searchSourceService, cdRef) {
|
|
133
|
-
this.mapState = mapState;
|
|
134
|
-
this.toolState = toolState;
|
|
135
|
-
this.searchSourceService = searchSourceService;
|
|
136
|
-
this.cdRef = cdRef;
|
|
137
|
-
this.delayedShowEmptyMapContent = false;
|
|
138
|
-
this.layers$ = new BehaviorSubject([]);
|
|
139
|
-
this.showAllLegendsValue$ = new BehaviorSubject(false);
|
|
140
|
-
this.change$ = new ReplaySubject(1);
|
|
141
|
-
this.updateLegendOnResolutionChange = false;
|
|
142
|
-
this.layerAdditionAllowed = true;
|
|
143
|
-
this.allowShowAllLegends = false;
|
|
144
|
-
this.showAllLegendsValue = false;
|
|
145
|
-
this.layerListControls = {};
|
|
146
|
-
}
|
|
147
|
-
get map() {
|
|
148
|
-
return this.mapState.map;
|
|
149
|
-
}
|
|
150
|
-
get visibleOrInRangeLayers$() {
|
|
151
|
-
return this.layers$.pipe(map(layers => layers.filter(layer => layer.visible$.value && layer.isInResolutionsRange$.value)));
|
|
152
|
-
}
|
|
153
|
-
get visibleLayers$() {
|
|
154
|
-
return this.layers$.pipe(map(layers => layers.filter(layer => layer.visible$.value)));
|
|
155
|
-
}
|
|
156
|
-
get excludeBaseLayers() {
|
|
157
|
-
return this.layerListControls.excludeBaseLayers || false;
|
|
158
|
-
}
|
|
159
|
-
get searchToolInToolbar() {
|
|
160
|
-
return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
|
|
161
|
-
this.searchSourceService
|
|
162
|
-
.getSources()
|
|
163
|
-
.filter(sourceCanSearch)
|
|
164
|
-
.filter(s => s.available && s.getType() === 'Layer').length > 0);
|
|
165
|
-
}
|
|
166
|
-
get catalogToolInToolbar() {
|
|
167
|
-
return this.toolState.toolbox.getToolbar().indexOf('catalog') !== -1;
|
|
168
|
-
}
|
|
169
|
-
get contextToolInToolbar() {
|
|
170
|
-
return this.toolState.toolbox.getToolbar().indexOf('contextManager') !== -1;
|
|
171
|
-
}
|
|
172
|
-
ngOnInit() {
|
|
173
|
-
this.resolution$$ = combineLatest([
|
|
174
|
-
this.map.layers$,
|
|
175
|
-
this.map.viewController.resolution$
|
|
176
|
-
])
|
|
177
|
-
.pipe(debounceTime(10))
|
|
178
|
-
.subscribe((bunch) => {
|
|
179
|
-
this.layers$.next(bunch[0].filter(layer => layer.showInLayerList !== false &&
|
|
180
|
-
(!this.excludeBaseLayers || !layer.baseLayer)));
|
|
181
|
-
});
|
|
182
|
-
if (this.allowShowAllLegends) {
|
|
183
|
-
this.mapState.showAllLegendsValue =
|
|
184
|
-
this.mapState.showAllLegendsValue !== undefined
|
|
185
|
-
? this.mapState.showAllLegendsValue
|
|
186
|
-
: this.showAllLegendsValue || false;
|
|
187
|
-
this.showAllLegendsValue$.next(this.mapState.showAllLegendsValue);
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
this.showAllLegendsValue$.next(false);
|
|
191
|
-
}
|
|
192
|
-
// prevent message to be shown too quickly. Waiting for layers
|
|
193
|
-
setTimeout(() => {
|
|
194
|
-
this.delayedShowEmptyMapContent = true;
|
|
195
|
-
this.cdRef.detectChanges();
|
|
196
|
-
}, 250);
|
|
197
|
-
}
|
|
198
|
-
onShowAllLegends(event) {
|
|
199
|
-
this.mapState.showAllLegendsValue = event;
|
|
200
|
-
this.showAllLegendsValue$.next(event);
|
|
201
|
-
}
|
|
202
|
-
showAllLegend() {
|
|
203
|
-
if (this.layers$.getValue().length === 0) {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
else if (this.layers$.getValue().length !== 0 &&
|
|
207
|
-
this.allowShowAllLegends === false) {
|
|
208
|
-
let visibleOrInRangeLayers;
|
|
209
|
-
this.visibleOrInRangeLayers$$ = this.visibleOrInRangeLayers$.subscribe(value => {
|
|
210
|
-
value.length === 0
|
|
211
|
-
? (visibleOrInRangeLayers = false)
|
|
212
|
-
: (visibleOrInRangeLayers = true);
|
|
213
|
-
});
|
|
214
|
-
if (visibleOrInRangeLayers === false) {
|
|
215
|
-
return false;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return true;
|
|
219
|
-
}
|
|
220
|
-
ngOnDestroy() {
|
|
221
|
-
this.resolution$$.unsubscribe();
|
|
222
|
-
if (this.visibleOrInRangeLayers$$) {
|
|
223
|
-
this.visibleOrInRangeLayers$$.unsubscribe();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
searchEmit() {
|
|
227
|
-
this.toolState.toolbox.activateTool('searchResults');
|
|
228
|
-
}
|
|
229
|
-
catalogEmit() {
|
|
230
|
-
this.toolState.toolbox.activateTool('catalog');
|
|
231
|
-
}
|
|
232
|
-
contextEmit() {
|
|
233
|
-
this.toolState.toolbox.activateTool('contextManager');
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.ToolState), i0.ɵɵdirectiveInject(i3.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
237
|
-
MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapLegendToolComponent, selectors: [["igo-map-legend-tool"]], inputs: { updateLegendOnResolutionChange: "updateLegendOnResolutionChange", layerAdditionAllowed: "layerAdditionAllowed", allowShowAllLegends: "allowShowAllLegends", showAllLegendsValue: "showAllLegendsValue", layerListControls: "layerListControls" }, decls: 8, vars: 10, consts: [["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["class", "map-empty mat-typography", 4, "ngIf"], ["emptyLayers", ""], ["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown"], [1, "map-empty", "mat-typography"], [4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapLegendToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
-
i0.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
|
|
239
|
-
i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0, null, 1);
|
|
240
|
-
i0.ɵɵpipe(2, "async");
|
|
241
|
-
i0.ɵɵtemplate(3, MapLegendToolComponent_p_3_Template, 5, 7, "p", 2);
|
|
242
|
-
i0.ɵɵpipe(4, "async");
|
|
243
|
-
i0.ɵɵpipe(5, "async");
|
|
244
|
-
i0.ɵɵtemplate(6, MapLegendToolComponent_ng_template_6_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
245
|
-
} if (rf & 2) {
|
|
246
|
-
const _r3 = i0.ɵɵreference(7);
|
|
247
|
-
i0.ɵɵproperty("ngIf", ctx.showAllLegend());
|
|
248
|
-
i0.ɵɵadvance(1);
|
|
249
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
|
|
250
|
-
i0.ɵɵadvance(2);
|
|
251
|
-
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
252
|
-
} }, dependencies: [i4.NgIf, i5.MatList, i5.MatListItem, i6.MatLine, i5.MatListIconCssMatStyler, i7.MatIcon, i3.LayerLegendListComponent, i3.LayerLegendListBindingDirective, i4.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{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:5px}"] });
|
|
253
|
-
MapLegendToolComponent = __decorate([
|
|
254
|
-
ToolComponent({
|
|
255
|
-
name: 'mapLegend',
|
|
256
|
-
title: 'igo.integration.tools.legend',
|
|
257
|
-
icon: 'format-list-bulleted-type'
|
|
258
|
-
})
|
|
259
|
-
], MapLegendToolComponent);
|
|
260
|
-
export { MapLegendToolComponent };
|
|
261
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapLegendToolComponent, [{
|
|
262
|
-
type: Component,
|
|
263
|
-
args: [{ selector: 'igo-map-legend-tool', template: "<igo-layer-legend-list *ngIf=\"showAllLegend()\"\n igoLayerLegendListBinding\n [excludeBaseLayers]=\"excludeBaseLayers\"\n [allowShowAllLegends]=\"allowShowAllLegends\"\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\n [showAllLegendsValue]=\"(showAllLegendsValue$ | async)\"\n (allLegendsShown)=\"onShowAllLegends($event)\">\n</igo-layer-legend-list>\n<ng-template *ngIf=\"(layers$ | async).length !== 0; else emptyLayers\"></ng-template>\n\n<p class=\"map-empty mat-typography\"\n *ngIf=\"!allowShowAllLegends && (layers$ | async).length !== 0 && (visibleOrInRangeLayers$ | async).length === 0\">\n {{ ((visibleLayers$ | async).length) ? ('igo.integration.mapTool.noLayersInRange' | translate) : ('igo.integration.mapTool.noLayersVisible' | translate) }}\n</p>\n\n\n<ng-template #emptyLayers>\n <mat-list *ngIf=\"delayedShowEmptyMapContent\">\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.mapTool.empty' | translate}}</p>\n <p *ngIf=\"layerAdditionAllowed && (searchToolInToolbar || catalogToolInToolbar || contextToolInToolbar)\" class=\"map-empty mat-typography\">\n {{'igo.integration.mapTool.customize' | translate}}</p>\n\n <mat-list-item *ngIf=\"layerAdditionAllowed && searchToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z'> </path> </svg></mat-icon>\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\n {{'igo.integration.mapTool.search-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item *ngIf=\"layerAdditionAllowed && catalogToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z'></path> </svg></mat-icon>\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\n {{'igo.integration.mapTool.catalog-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item *ngIf=\"layerAdditionAllowed && contextToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z'></path> </svg></mat-icon>\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\n {{'igo.integration.mapTool.context-tool' | translate}}\n </h4>\n </mat-list-item>\n </mat-list>\n</ng-template>\n", styles: [".map-empty,.search-tool,.catalog-tool,.context-tool{margin:10px}.map-empty{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:5px}\n"] }]
|
|
264
|
-
}], function () { return [{ type: i1.MapState }, { type: i2.ToolState }, { type: i3.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
265
|
-
type: Input
|
|
266
|
-
}], layerAdditionAllowed: [{
|
|
267
|
-
type: Input
|
|
268
|
-
}], allowShowAllLegends: [{
|
|
269
|
-
type: Input
|
|
270
|
-
}], showAllLegendsValue: [{
|
|
271
|
-
type: Input
|
|
272
|
-
}], layerListControls: [{
|
|
273
|
-
type: Input
|
|
274
|
-
}] }); })();
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, ReplaySubject, combineLatest } from 'rxjs';
|
|
4
|
+
import { map, debounceTime } from 'rxjs/operators';
|
|
5
|
+
import { ToolComponent } from '@igo2/common';
|
|
6
|
+
import { sourceCanSearch } from '@igo2/geo';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "./../map.state";
|
|
9
|
+
import * as i2 from "./../../tool/tool.state";
|
|
10
|
+
import * as i3 from "@igo2/geo";
|
|
11
|
+
import * as i4 from "@angular/common";
|
|
12
|
+
import * as i5 from "@angular/material/list";
|
|
13
|
+
import * as i6 from "@angular/material/core";
|
|
14
|
+
import * as i7 from "@angular/material/icon";
|
|
15
|
+
import * as i8 from "@ngx-translate/core";
|
|
16
|
+
function MapLegendToolComponent_igo_layer_legend_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "igo-layer-legend-list", 4);
|
|
19
|
+
i0.ɵɵlistener("allLegendsShown", function MapLegendToolComponent_igo_layer_legend_list_0_Template_igo_layer_legend_list_allLegendsShown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onShowAllLegends($event)); });
|
|
20
|
+
i0.ɵɵpipe(1, "async");
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
|
+
i0.ɵɵproperty("excludeBaseLayers", ctx_r0.excludeBaseLayers)("allowShowAllLegends", ctx_r0.allowShowAllLegends)("updateLegendOnResolutionChange", ctx_r0.updateLegendOnResolutionChange)("showAllLegendsValue", i0.ɵɵpipeBind1(1, 4, ctx_r0.showAllLegendsValue$));
|
|
25
|
+
} }
|
|
26
|
+
function MapLegendToolComponent_1_ng_template_0_Template(rf, ctx) { }
|
|
27
|
+
function MapLegendToolComponent_1_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵtemplate(0, MapLegendToolComponent_1_ng_template_0_Template, 0, 0, "ng-template");
|
|
29
|
+
} }
|
|
30
|
+
function MapLegendToolComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
+
i0.ɵɵelementStart(0, "p", 5);
|
|
32
|
+
i0.ɵɵtext(1);
|
|
33
|
+
i0.ɵɵpipe(2, "async");
|
|
34
|
+
i0.ɵɵpipe(3, "translate");
|
|
35
|
+
i0.ɵɵpipe(4, "translate");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
39
|
+
i0.ɵɵadvance(1);
|
|
40
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r2.visibleLayers$).length ? i0.ɵɵpipeBind1(3, 3, "igo.integration.mapTool.noLayersInRange") : i0.ɵɵpipeBind1(4, 5, "igo.integration.mapTool.noLayersVisible"), "\n");
|
|
41
|
+
} }
|
|
42
|
+
function MapLegendToolComponent_ng_template_6_mat_list_0_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵelementStart(0, "p", 5);
|
|
44
|
+
i0.ɵɵtext(1);
|
|
45
|
+
i0.ɵɵpipe(2, "translate");
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} if (rf & 2) {
|
|
48
|
+
i0.ɵɵadvance(1);
|
|
49
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.integration.mapTool.customize"), "");
|
|
50
|
+
} }
|
|
51
|
+
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
53
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
54
|
+
i0.ɵɵnamespaceSVG();
|
|
55
|
+
i0.ɵɵelementStart(2, "svg", 8);
|
|
56
|
+
i0.ɵɵelement(3, "path", 9);
|
|
57
|
+
i0.ɵɵelementEnd()();
|
|
58
|
+
i0.ɵɵnamespaceHTML();
|
|
59
|
+
i0.ɵɵelementStart(4, "h4", 10);
|
|
60
|
+
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r13.searchEmit()); });
|
|
61
|
+
i0.ɵɵtext(5);
|
|
62
|
+
i0.ɵɵpipe(6, "translate");
|
|
63
|
+
i0.ɵɵelementEnd()();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
i0.ɵɵadvance(5);
|
|
66
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.search-tool"), " ");
|
|
67
|
+
} }
|
|
68
|
+
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
70
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
71
|
+
i0.ɵɵnamespaceSVG();
|
|
72
|
+
i0.ɵɵelementStart(2, "svg", 8);
|
|
73
|
+
i0.ɵɵelement(3, "path", 11);
|
|
74
|
+
i0.ɵɵelementEnd()();
|
|
75
|
+
i0.ɵɵnamespaceHTML();
|
|
76
|
+
i0.ɵɵelementStart(4, "h4", 12);
|
|
77
|
+
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r15.catalogEmit()); });
|
|
78
|
+
i0.ɵɵtext(5);
|
|
79
|
+
i0.ɵɵpipe(6, "translate");
|
|
80
|
+
i0.ɵɵelementEnd()();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
i0.ɵɵadvance(5);
|
|
83
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.catalog-tool"), " ");
|
|
84
|
+
} }
|
|
85
|
+
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
87
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
88
|
+
i0.ɵɵnamespaceSVG();
|
|
89
|
+
i0.ɵɵelementStart(2, "svg", 8);
|
|
90
|
+
i0.ɵɵelement(3, "path", 13);
|
|
91
|
+
i0.ɵɵelementEnd()();
|
|
92
|
+
i0.ɵɵnamespaceHTML();
|
|
93
|
+
i0.ɵɵelementStart(4, "h4", 14);
|
|
94
|
+
i0.ɵɵlistener("click", function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r17.contextEmit()); });
|
|
95
|
+
i0.ɵɵtext(5);
|
|
96
|
+
i0.ɵɵpipe(6, "translate");
|
|
97
|
+
i0.ɵɵelementEnd()();
|
|
98
|
+
} if (rf & 2) {
|
|
99
|
+
i0.ɵɵadvance(5);
|
|
100
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.context-tool"), " ");
|
|
101
|
+
} }
|
|
102
|
+
function MapLegendToolComponent_ng_template_6_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 5);
|
|
104
|
+
i0.ɵɵtext(2);
|
|
105
|
+
i0.ɵɵpipe(3, "translate");
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
i0.ɵɵtemplate(4, MapLegendToolComponent_ng_template_6_mat_list_0_p_4_Template, 3, 3, "p", 2);
|
|
108
|
+
i0.ɵɵtemplate(5, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template, 7, 3, "mat-list-item", 6);
|
|
109
|
+
i0.ɵɵtemplate(6, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template, 7, 3, "mat-list-item", 6);
|
|
110
|
+
i0.ɵɵtemplate(7, MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template, 7, 3, "mat-list-item", 6);
|
|
111
|
+
i0.ɵɵelementEnd();
|
|
112
|
+
} if (rf & 2) {
|
|
113
|
+
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
114
|
+
i0.ɵɵadvance(2);
|
|
115
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "igo.integration.mapTool.empty"), "");
|
|
116
|
+
i0.ɵɵadvance(2);
|
|
117
|
+
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && (ctx_r8.searchToolInToolbar || ctx_r8.catalogToolInToolbar || ctx_r8.contextToolInToolbar));
|
|
118
|
+
i0.ɵɵadvance(1);
|
|
119
|
+
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.searchToolInToolbar);
|
|
120
|
+
i0.ɵɵadvance(1);
|
|
121
|
+
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.catalogToolInToolbar);
|
|
122
|
+
i0.ɵɵadvance(1);
|
|
123
|
+
i0.ɵɵproperty("ngIf", ctx_r8.layerAdditionAllowed && ctx_r8.contextToolInToolbar);
|
|
124
|
+
} }
|
|
125
|
+
function MapLegendToolComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
+
i0.ɵɵtemplate(0, MapLegendToolComponent_ng_template_6_mat_list_0_Template, 8, 7, "mat-list", 6);
|
|
127
|
+
} if (rf & 2) {
|
|
128
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
129
|
+
i0.ɵɵproperty("ngIf", ctx_r4.delayedShowEmptyMapContent);
|
|
130
|
+
} }
|
|
131
|
+
let MapLegendToolComponent = class MapLegendToolComponent {
|
|
132
|
+
constructor(mapState, toolState, searchSourceService, cdRef) {
|
|
133
|
+
this.mapState = mapState;
|
|
134
|
+
this.toolState = toolState;
|
|
135
|
+
this.searchSourceService = searchSourceService;
|
|
136
|
+
this.cdRef = cdRef;
|
|
137
|
+
this.delayedShowEmptyMapContent = false;
|
|
138
|
+
this.layers$ = new BehaviorSubject([]);
|
|
139
|
+
this.showAllLegendsValue$ = new BehaviorSubject(false);
|
|
140
|
+
this.change$ = new ReplaySubject(1);
|
|
141
|
+
this.updateLegendOnResolutionChange = false;
|
|
142
|
+
this.layerAdditionAllowed = true;
|
|
143
|
+
this.allowShowAllLegends = false;
|
|
144
|
+
this.showAllLegendsValue = false;
|
|
145
|
+
this.layerListControls = {};
|
|
146
|
+
}
|
|
147
|
+
get map() {
|
|
148
|
+
return this.mapState.map;
|
|
149
|
+
}
|
|
150
|
+
get visibleOrInRangeLayers$() {
|
|
151
|
+
return this.layers$.pipe(map(layers => layers.filter(layer => layer.visible$.value && layer.isInResolutionsRange$.value)));
|
|
152
|
+
}
|
|
153
|
+
get visibleLayers$() {
|
|
154
|
+
return this.layers$.pipe(map(layers => layers.filter(layer => layer.visible$.value)));
|
|
155
|
+
}
|
|
156
|
+
get excludeBaseLayers() {
|
|
157
|
+
return this.layerListControls.excludeBaseLayers || false;
|
|
158
|
+
}
|
|
159
|
+
get searchToolInToolbar() {
|
|
160
|
+
return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
|
|
161
|
+
this.searchSourceService
|
|
162
|
+
.getSources()
|
|
163
|
+
.filter(sourceCanSearch)
|
|
164
|
+
.filter(s => s.available && s.getType() === 'Layer').length > 0);
|
|
165
|
+
}
|
|
166
|
+
get catalogToolInToolbar() {
|
|
167
|
+
return this.toolState.toolbox.getToolbar().indexOf('catalog') !== -1;
|
|
168
|
+
}
|
|
169
|
+
get contextToolInToolbar() {
|
|
170
|
+
return this.toolState.toolbox.getToolbar().indexOf('contextManager') !== -1;
|
|
171
|
+
}
|
|
172
|
+
ngOnInit() {
|
|
173
|
+
this.resolution$$ = combineLatest([
|
|
174
|
+
this.map.layers$,
|
|
175
|
+
this.map.viewController.resolution$
|
|
176
|
+
])
|
|
177
|
+
.pipe(debounceTime(10))
|
|
178
|
+
.subscribe((bunch) => {
|
|
179
|
+
this.layers$.next(bunch[0].filter(layer => layer.showInLayerList !== false &&
|
|
180
|
+
(!this.excludeBaseLayers || !layer.baseLayer)));
|
|
181
|
+
});
|
|
182
|
+
if (this.allowShowAllLegends) {
|
|
183
|
+
this.mapState.showAllLegendsValue =
|
|
184
|
+
this.mapState.showAllLegendsValue !== undefined
|
|
185
|
+
? this.mapState.showAllLegendsValue
|
|
186
|
+
: this.showAllLegendsValue || false;
|
|
187
|
+
this.showAllLegendsValue$.next(this.mapState.showAllLegendsValue);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
this.showAllLegendsValue$.next(false);
|
|
191
|
+
}
|
|
192
|
+
// prevent message to be shown too quickly. Waiting for layers
|
|
193
|
+
setTimeout(() => {
|
|
194
|
+
this.delayedShowEmptyMapContent = true;
|
|
195
|
+
this.cdRef.detectChanges();
|
|
196
|
+
}, 250);
|
|
197
|
+
}
|
|
198
|
+
onShowAllLegends(event) {
|
|
199
|
+
this.mapState.showAllLegendsValue = event;
|
|
200
|
+
this.showAllLegendsValue$.next(event);
|
|
201
|
+
}
|
|
202
|
+
showAllLegend() {
|
|
203
|
+
if (this.layers$.getValue().length === 0) {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
else if (this.layers$.getValue().length !== 0 &&
|
|
207
|
+
this.allowShowAllLegends === false) {
|
|
208
|
+
let visibleOrInRangeLayers;
|
|
209
|
+
this.visibleOrInRangeLayers$$ = this.visibleOrInRangeLayers$.subscribe(value => {
|
|
210
|
+
value.length === 0
|
|
211
|
+
? (visibleOrInRangeLayers = false)
|
|
212
|
+
: (visibleOrInRangeLayers = true);
|
|
213
|
+
});
|
|
214
|
+
if (visibleOrInRangeLayers === false) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
ngOnDestroy() {
|
|
221
|
+
this.resolution$$.unsubscribe();
|
|
222
|
+
if (this.visibleOrInRangeLayers$$) {
|
|
223
|
+
this.visibleOrInRangeLayers$$.unsubscribe();
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
searchEmit() {
|
|
227
|
+
this.toolState.toolbox.activateTool('searchResults');
|
|
228
|
+
}
|
|
229
|
+
catalogEmit() {
|
|
230
|
+
this.toolState.toolbox.activateTool('catalog');
|
|
231
|
+
}
|
|
232
|
+
contextEmit() {
|
|
233
|
+
this.toolState.toolbox.activateTool('contextManager');
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(i1.MapState), i0.ɵɵdirectiveInject(i2.ToolState), i0.ɵɵdirectiveInject(i3.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
237
|
+
MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapLegendToolComponent, selectors: [["igo-map-legend-tool"]], inputs: { updateLegendOnResolutionChange: "updateLegendOnResolutionChange", layerAdditionAllowed: "layerAdditionAllowed", allowShowAllLegends: "allowShowAllLegends", showAllLegendsValue: "showAllLegendsValue", layerListControls: "layerListControls" }, decls: 8, vars: 10, consts: [["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["class", "map-empty mat-typography", 4, "ngIf"], ["emptyLayers", ""], ["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown"], [1, "map-empty", "mat-typography"], [4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapLegendToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
i0.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
|
|
239
|
+
i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0, null, 1);
|
|
240
|
+
i0.ɵɵpipe(2, "async");
|
|
241
|
+
i0.ɵɵtemplate(3, MapLegendToolComponent_p_3_Template, 5, 7, "p", 2);
|
|
242
|
+
i0.ɵɵpipe(4, "async");
|
|
243
|
+
i0.ɵɵpipe(5, "async");
|
|
244
|
+
i0.ɵɵtemplate(6, MapLegendToolComponent_ng_template_6_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
245
|
+
} if (rf & 2) {
|
|
246
|
+
const _r3 = i0.ɵɵreference(7);
|
|
247
|
+
i0.ɵɵproperty("ngIf", ctx.showAllLegend());
|
|
248
|
+
i0.ɵɵadvance(1);
|
|
249
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
|
|
250
|
+
i0.ɵɵadvance(2);
|
|
251
|
+
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
252
|
+
} }, dependencies: [i4.NgIf, i5.MatList, i5.MatListItem, i6.MatLine, i5.MatListIconCssMatStyler, i7.MatIcon, i3.LayerLegendListComponent, i3.LayerLegendListBindingDirective, i4.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{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:5px}"] });
|
|
253
|
+
MapLegendToolComponent = __decorate([
|
|
254
|
+
ToolComponent({
|
|
255
|
+
name: 'mapLegend',
|
|
256
|
+
title: 'igo.integration.tools.legend',
|
|
257
|
+
icon: 'format-list-bulleted-type'
|
|
258
|
+
})
|
|
259
|
+
], MapLegendToolComponent);
|
|
260
|
+
export { MapLegendToolComponent };
|
|
261
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapLegendToolComponent, [{
|
|
262
|
+
type: Component,
|
|
263
|
+
args: [{ selector: 'igo-map-legend-tool', template: "<igo-layer-legend-list *ngIf=\"showAllLegend()\"\n igoLayerLegendListBinding\n [excludeBaseLayers]=\"excludeBaseLayers\"\n [allowShowAllLegends]=\"allowShowAllLegends\"\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\n [showAllLegendsValue]=\"(showAllLegendsValue$ | async)\"\n (allLegendsShown)=\"onShowAllLegends($event)\">\n</igo-layer-legend-list>\n<ng-template *ngIf=\"(layers$ | async).length !== 0; else emptyLayers\"></ng-template>\n\n<p class=\"map-empty mat-typography\"\n *ngIf=\"!allowShowAllLegends && (layers$ | async).length !== 0 && (visibleOrInRangeLayers$ | async).length === 0\">\n {{ ((visibleLayers$ | async).length) ? ('igo.integration.mapTool.noLayersInRange' | translate) : ('igo.integration.mapTool.noLayersVisible' | translate) }}\n</p>\n\n\n<ng-template #emptyLayers>\n <mat-list *ngIf=\"delayedShowEmptyMapContent\">\n <p class=\"map-empty mat-typography\">\n {{'igo.integration.mapTool.empty' | translate}}</p>\n <p *ngIf=\"layerAdditionAllowed && (searchToolInToolbar || catalogToolInToolbar || contextToolInToolbar)\" class=\"map-empty mat-typography\">\n {{'igo.integration.mapTool.customize' | translate}}</p>\n\n <mat-list-item *ngIf=\"layerAdditionAllowed && searchToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z'> </path> </svg></mat-icon>\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\n {{'igo.integration.mapTool.search-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item *ngIf=\"layerAdditionAllowed && catalogToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z'></path> </svg></mat-icon>\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\n {{'igo.integration.mapTool.catalog-tool' | translate}}\n </h4>\n </mat-list-item>\n <mat-list-item *ngIf=\"layerAdditionAllowed && contextToolInToolbar\">\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%' preserveAspectRatio='xMidYMid meet' focusable='false'> <path d='M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z'></path> </svg></mat-icon>\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\n {{'igo.integration.mapTool.context-tool' | translate}}\n </h4>\n </mat-list-item>\n </mat-list>\n</ng-template>\n", styles: [".map-empty,.search-tool,.catalog-tool,.context-tool{margin:10px}.map-empty{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:5px}\n"] }]
|
|
264
|
+
}], function () { return [{ type: i1.MapState }, { type: i2.ToolState }, { type: i3.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
265
|
+
type: Input
|
|
266
|
+
}], layerAdditionAllowed: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], allowShowAllLegends: [{
|
|
269
|
+
type: Input
|
|
270
|
+
}], showAllLegendsValue: [{
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F0LWljb24+XG4gICAgICA8aDQgbWF0TGluZSBjbGFzcz1cImNvbnRleHQtdG9vbCBtYXQtdHlwb2dyYXBoeVwiIChjbGljayk9XCJjb250ZXh0RW1pdCgpXCI+XG4gICAgICAgIHt7J2lnby5pbnRlZ3JhdGlvbi5tYXBUb29sLmNvbnRleHQtdG9vbCcgfCB0cmFuc2xhdGV9fVxuICAgICAgPC9oND5cbiAgICA8L21hdC1saXN0LWl0ZW0+XG4gIDwvbWF0LWxpc3Q+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './map-proximity-tool.component';
|
|
1
|
+
export * from './map-proximity-tool.component';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9pbnRlZ3JhdGlvbi9zcmMvbGliL21hcC9tYXAtcHJveGltaXR5LXRvb2wvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbWFwLXByb3hpbWl0eS10b29sLmNvbXBvbmVudCc7XG4iXX0=
|