@igo2/integration 1.11.1 → 1.13.0-alpha.0
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/{esm2015/igo2-integration.js → esm2020/igo2-integration.mjs} +0 -0
- package/esm2020/lib/about/about-tool/about-tool.component.mjs +185 -0
- package/{esm2015/lib/about/about-tool/index.js → esm2020/lib/about/about-tool/index.mjs} +1 -1
- package/{esm2015/lib/about/about.module.js → esm2020/lib/about/about.module.mjs} +9 -11
- package/{esm2015/lib/about/index.js → esm2020/lib/about/index.mjs} +1 -1
- package/{esm2015/lib/analytics/analytics-listener.service.js → esm2020/lib/analytics/analytics-listener.service.mjs} +1 -1
- package/{esm2015/lib/analytics/analytics.module.js → esm2020/lib/analytics/analytics.module.mjs} +2 -2
- package/{esm2015/lib/analytics/index.js → esm2020/lib/analytics/index.mjs} +1 -1
- package/{esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.js → esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.mjs} +3 -7
- package/{esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.js → esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.mjs} +3 -5
- package/{esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.component.js → esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.component.mjs} +3 -7
- package/{esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.module.js → esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.module.mjs} +3 -5
- package/{esm2015/lib/catalog/catalog.module.js → esm2020/lib/catalog/catalog.module.mjs} +2 -2
- package/{esm2015/lib/catalog/catalog.state.js → esm2020/lib/catalog/catalog.state.mjs} +1 -1
- package/{esm2015/lib/catalog/index.js → esm2020/lib/catalog/index.mjs} +1 -1
- package/{esm2015/lib/context/context-editor-tool/context-editor-tool.component.js → esm2020/lib/context/context-editor-tool/context-editor-tool.component.mjs} +3 -6
- package/{esm2015/lib/context/context-manager-tool/context-manager-tool.component.js → esm2020/lib/context/context-manager-tool/context-manager-tool.component.mjs} +3 -6
- package/{esm2015/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.js → esm2020/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.mjs} +3 -6
- package/{esm2015/lib/context/context-share-tool/context-share-tool.component.js → esm2020/lib/context/context-share-tool/context-share-tool.component.mjs} +3 -6
- package/{esm2015/lib/context/context.module.js → esm2020/lib/context/context.module.mjs} +2 -2
- package/{esm2015/lib/context/context.state.js → esm2020/lib/context/context.state.mjs} +1 -1
- package/{esm2015/lib/context/index.js → esm2020/lib/context/index.mjs} +1 -1
- package/{esm2015/lib/directions/directions-tool/directions-tool.component.js → esm2020/lib/directions/directions-tool/directions-tool.component.mjs} +3 -6
- package/{esm2015/lib/directions/directions-tool/index.js → esm2020/lib/directions/directions-tool/index.mjs} +1 -1
- package/{esm2015/lib/directions/directions.module.js → esm2020/lib/directions/directions.module.mjs} +2 -2
- package/esm2020/lib/directions/directions.state.mjs +64 -0
- package/{esm2015/lib/directions/index.js → esm2020/lib/directions/index.mjs} +1 -1
- package/{esm2015/lib/draw/draw.module.js → esm2020/lib/draw/draw.module.mjs} +2 -2
- package/{esm2015/lib/draw/draw.state.js → esm2020/lib/draw/draw.state.mjs} +1 -1
- package/{esm2015/lib/draw/drawing-tool/drawing-tool.component.js → esm2020/lib/draw/drawing-tool/drawing-tool.component.mjs} +3 -7
- package/{esm2015/lib/draw/index.js → esm2020/lib/draw/index.mjs} +1 -1
- package/{esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.js → esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.mjs} +1 -1
- package/{esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.js → esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.mjs} +3 -7
- package/{esm2015/lib/filter/active-ogc-filter-tool/index.js → esm2020/lib/filter/active-ogc-filter-tool/index.mjs} +1 -1
- package/{esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.js → esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.mjs} +1 -1
- package/{esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.component.js → esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.component.mjs} +3 -7
- package/{esm2015/lib/filter/active-time-filter-tool/index.js → esm2020/lib/filter/active-time-filter-tool/index.mjs} +1 -1
- package/{esm2015/lib/filter/filter.module.js → esm2020/lib/filter/filter.module.mjs} +2 -2
- package/{esm2015/lib/filter/index.js → esm2020/lib/filter/index.mjs} +1 -1
- package/{esm2015/lib/filter/ogc-filter-tool/index.js → esm2020/lib/filter/ogc-filter-tool/index.mjs} +1 -1
- package/{esm2015/lib/filter/ogc-filter-tool/ogc-filter-tool.component.js → esm2020/lib/filter/ogc-filter-tool/ogc-filter-tool.component.mjs} +3 -6
- package/{esm2015/lib/filter/spatial-filter-tool/index.js → esm2020/lib/filter/spatial-filter-tool/index.mjs} +1 -1
- package/esm2020/lib/filter/spatial-filter-tool/spatial-filter-tool.component.mjs +535 -0
- package/{esm2015/lib/filter/time-filter-tool/index.js → esm2020/lib/filter/time-filter-tool/index.mjs} +1 -1
- package/{esm2015/lib/filter/time-filter-tool/time-filter-tool.component.js → esm2020/lib/filter/time-filter-tool/time-filter-tool.component.mjs} +3 -6
- package/esm2020/lib/import-export/import-export-tool/import-export-tool.component.mjs +137 -0
- package/{esm2015/lib/import-export/import-export-tool/index.js → esm2020/lib/import-export/import-export-tool/index.mjs} +1 -1
- package/{esm2015/lib/import-export/import-export.module.js → esm2020/lib/import-export/import-export.module.mjs} +7 -9
- package/{esm2015/lib/import-export/import-export.state.js → esm2020/lib/import-export/import-export.state.mjs} +1 -1
- package/{esm2015/lib/import-export/index.js → esm2020/lib/import-export/index.mjs} +1 -1
- package/{esm2015/lib/integration.module.js → esm2020/lib/integration.module.mjs} +2 -2
- package/esm2020/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.mjs +473 -0
- package/esm2020/lib/map/advanced-map-tool/advanced-map-tool.component.mjs +89 -0
- package/esm2020/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.mjs +218 -0
- package/{esm2015/lib/map/advanced-map-tool/index.js → esm2020/lib/map/advanced-map-tool/index.mjs} +1 -1
- package/esm2020/lib/map/index.mjs +9 -0
- package/{esm2015/lib/map/layer-list-tool.state.js → esm2020/lib/map/layer-list-tool.state.mjs} +1 -1
- package/{esm2015/lib/map/map-details-tool/index.js → esm2020/lib/map/map-details-tool/index.mjs} +1 -1
- package/esm2020/lib/map/map-details-tool/map-details-tool.component.mjs +256 -0
- package/{esm2015/lib/map/map-legend/index.js → esm2020/lib/map/map-legend/index.mjs} +1 -1
- package/esm2020/lib/map/map-legend/map-legend-tool.component.mjs +275 -0
- package/esm2020/lib/map/map-proximity-tool/index.mjs +2 -0
- package/esm2020/lib/map/map-proximity-tool/map-proximity-tool.component.mjs +206 -0
- package/esm2020/lib/map/map-proximity.state.mjs +163 -0
- package/{esm2015/lib/map/map-tool/index.js → esm2020/lib/map/map-tool/index.mjs} +1 -1
- package/esm2020/lib/map/map-tool/map-tool.component.mjs +130 -0
- package/{esm2015/lib/map/map-tools/index.js → esm2020/lib/map/map-tools/index.mjs} +1 -1
- package/esm2020/lib/map/map-tools/map-tools.component.mjs +478 -0
- package/esm2020/lib/map/map.module.mjs +141 -0
- package/esm2020/lib/map/map.state.mjs +47 -0
- package/{esm2015/lib/measure/index.js → esm2020/lib/measure/index.mjs} +1 -1
- package/{esm2015/lib/measure/measure.module.js → esm2020/lib/measure/measure.module.mjs} +2 -2
- package/{esm2015/lib/measure/measure.state.js → esm2020/lib/measure/measure.state.mjs} +1 -1
- package/{esm2015/lib/measure/measurer-tool/measurer-tool.component.js → esm2020/lib/measure/measurer-tool/measurer-tool.component.mjs} +3 -7
- package/{esm2015/lib/measure/measurer-tool/measurer-tool.module.js → esm2020/lib/measure/measurer-tool/measurer-tool.module.mjs} +2 -4
- package/{esm2015/lib/print/index.js → esm2020/lib/print/index.mjs} +1 -1
- package/{esm2015/lib/print/print-tool/index.js → esm2020/lib/print/print-tool/index.mjs} +1 -1
- package/{esm2015/lib/print/print-tool/print-tool.component.js → esm2020/lib/print/print-tool/print-tool.component.mjs} +3 -6
- package/{esm2015/lib/print/print.module.js → esm2020/lib/print/print.module.mjs} +2 -2
- package/{esm2015/lib/search/index.js → esm2020/lib/search/index.mjs} +1 -1
- package/{esm2015/lib/search/query.state.js → esm2020/lib/search/query.state.mjs} +1 -1
- package/{esm2015/lib/search/search-bar/search-bar-binding.directive.js → esm2020/lib/search/search-bar/search-bar-binding.directive.mjs} +1 -1
- package/{esm2015/lib/search/search-bar/search-bar.module.js → esm2020/lib/search/search-bar/search-bar.module.mjs} +2 -2
- package/esm2020/lib/search/search-results-tool/search-results-tool.component.mjs +577 -0
- package/{esm2015/lib/search/search-results-tool/search-results-tool.module.js → esm2020/lib/search/search-results-tool/search-results-tool.module.mjs} +13 -15
- package/{esm2015/lib/search/search.module.js → esm2020/lib/search/search.module.mjs} +2 -2
- package/{esm2015/lib/search/search.state.js → esm2020/lib/search/search.state.mjs} +1 -1
- package/{esm2015/lib/storage/index.js → esm2020/lib/storage/index.mjs} +1 -1
- package/{esm2015/lib/storage/storage.module.js → esm2020/lib/storage/storage.module.mjs} +2 -2
- package/{esm2015/lib/storage/storage.state.js → esm2020/lib/storage/storage.state.mjs} +1 -1
- package/{esm2015/lib/tool/index.js → esm2020/lib/tool/index.mjs} +1 -1
- package/{esm2015/lib/tool/tool.module.js → esm2020/lib/tool/tool.module.mjs} +2 -2
- package/{esm2015/lib/tool/tool.state.js → esm2020/lib/tool/tool.state.mjs} +1 -1
- package/{esm2015/lib/workspace/index.js → esm2020/lib/workspace/index.mjs} +1 -1
- package/esm2020/lib/workspace/shared/edition-actions.service.mjs +156 -0
- package/{esm2015/lib/workspace/shared/feature-actions.service.js → esm2020/lib/workspace/shared/feature-actions.service.mjs} +1 -1
- package/{esm2015/lib/workspace/shared/index.js → esm2020/lib/workspace/shared/index.mjs} +1 -1
- package/esm2020/lib/workspace/shared/wfs-actions.service.mjs +158 -0
- package/{esm2015/lib/workspace/shared/workspace.utils.js → esm2020/lib/workspace/shared/workspace.utils.mjs} +1 -1
- package/{esm2015/lib/workspace/workspace-button/index.js → esm2020/lib/workspace/workspace-button/index.mjs} +1 -1
- package/esm2020/lib/workspace/workspace-button/workspace-button.component.mjs +69 -0
- package/{esm2015/lib/workspace/workspace.module.js → esm2020/lib/workspace/workspace.module.mjs} +6 -8
- package/esm2020/lib/workspace/workspace.state.mjs +188 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
- package/fesm2015/igo2-integration.mjs +6606 -0
- package/fesm2015/igo2-integration.mjs.map +1 -0
- package/{fesm2015/igo2-integration.js → fesm2020/igo2-integration.mjs} +816 -589
- package/fesm2020/igo2-integration.mjs.map +1 -0
- package/{igo2-integration.d.ts → index.d.ts} +0 -0
- package/lib/about/about-tool/about-tool.component.d.ts +1 -1
- package/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.d.ts +1 -1
- package/lib/catalog/catalog-library-tool/catalog-library-tool.component.d.ts +1 -1
- package/lib/context/context-editor-tool/context-editor-tool.component.d.ts +1 -1
- package/lib/context/context-manager-tool/context-manager-tool.component.d.ts +1 -1
- package/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.d.ts +1 -1
- package/lib/context/context-share-tool/context-share-tool.component.d.ts +1 -1
- package/lib/directions/directions-tool/directions-tool.component.d.ts +1 -1
- package/lib/draw/drawing-tool/drawing-tool.component.d.ts +1 -1
- package/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.d.ts +1 -1
- package/lib/filter/active-time-filter-tool/active-time-filter-tool.component.d.ts +1 -1
- package/lib/filter/ogc-filter-tool/ogc-filter-tool.component.d.ts +1 -1
- package/lib/filter/spatial-filter-tool/spatial-filter-tool.component.d.ts +3 -1
- package/lib/filter/time-filter-tool/time-filter-tool.component.d.ts +1 -1
- package/lib/import-export/import-export-tool/import-export-tool.component.d.ts +1 -1
- package/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.d.ts +4 -4
- package/lib/map/advanced-map-tool/advanced-map-tool.component.d.ts +8 -1
- package/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.d.ts +4 -4
- package/lib/map/index.d.ts +2 -0
- package/lib/map/map-details-tool/map-details-tool.component.d.ts +1 -1
- package/lib/map/map-legend/map-legend-tool.component.d.ts +1 -1
- package/lib/map/map-proximity-tool/index.d.ts +1 -0
- package/lib/map/map-proximity-tool/map-proximity-tool.component.d.ts +36 -0
- package/lib/map/map-proximity.state.d.ts +28 -0
- package/lib/map/map-tool/map-tool.component.d.ts +1 -1
- package/lib/map/map-tools/map-tools.component.d.ts +1 -1
- package/lib/map/map.module.d.ts +30 -28
- package/lib/map/map.state.d.ts +5 -1
- package/lib/measure/measurer-tool/measurer-tool.component.d.ts +1 -1
- package/lib/print/print-tool/print-tool.component.d.ts +1 -1
- package/lib/search/search-bar/search-bar-binding.directive.d.ts +1 -1
- package/lib/search/search-results-tool/search-results-tool.component.d.ts +7 -1
- package/lib/workspace/workspace-button/workspace-button.component.d.ts +1 -1
- package/lib/workspace/workspace.state.d.ts +4 -2
- package/ngcc.config.js +3 -3
- package/package.json +24 -11
- package/bundles/igo2-integration.umd.js +0 -7357
- package/bundles/igo2-integration.umd.js.map +0 -1
- package/esm2015/lib/about/about-tool/about-tool.component.js +0 -190
- package/esm2015/lib/directions/directions.state.js +0 -66
- package/esm2015/lib/filter/spatial-filter-tool/spatial-filter-tool.component.js +0 -544
- package/esm2015/lib/import-export/import-export-tool/import-export-tool.component.js +0 -145
- package/esm2015/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.js +0 -481
- package/esm2015/lib/map/advanced-map-tool/advanced-map-tool.component.js +0 -50
- package/esm2015/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.js +0 -234
- package/esm2015/lib/map/index.js +0 -7
- package/esm2015/lib/map/map-details-tool/map-details-tool.component.js +0 -274
- package/esm2015/lib/map/map-legend/map-legend-tool.component.js +0 -289
- package/esm2015/lib/map/map-tool/map-tool.component.js +0 -142
- package/esm2015/lib/map/map-tools/map-tools.component.js +0 -496
- package/esm2015/lib/map/map.module.js +0 -133
- package/esm2015/lib/map/map.state.js +0 -44
- package/esm2015/lib/search/search-results-tool/search-results-tool.component.js +0 -574
- package/esm2015/lib/workspace/shared/edition-actions.service.js +0 -157
- package/esm2015/lib/workspace/shared/wfs-actions.service.js +0 -159
- package/esm2015/lib/workspace/workspace-button/workspace-button.component.js +0 -74
- package/esm2015/lib/workspace/workspace.state.js +0 -172
- package/fesm2015/igo2-integration.js.map +0 -1
|
@@ -4,62 +4,66 @@ import * as i1 from '@igo2/context';
|
|
|
4
4
|
import { IgoContextModule, IgoContextImportExportModule } from '@igo2/context';
|
|
5
5
|
import { __decorate } from 'tslib';
|
|
6
6
|
import * as i4 from '@igo2/common';
|
|
7
|
-
import { ToolComponent, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, WorkspaceStore, IgoSpinnerModule, getEntityTitle, FlexibleComponent, IgoFlexibleModule, IgoPanelModule, IgoCustomHtmlModule, IgoInteractiveTourModule } from '@igo2/common';
|
|
8
|
-
import { BehaviorSubject, Subject, combineLatest, ReplaySubject,
|
|
7
|
+
import { ToolComponent, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, WorkspaceStore, IgoSpinnerModule, IgoEntityTableModule, getEntityTitle, FlexibleComponent, IgoFlexibleModule, IgoPanelModule, IgoCustomHtmlModule, IgoInteractiveTourModule } from '@igo2/common';
|
|
8
|
+
import { BehaviorSubject, Subject, of, combineLatest, ReplaySubject, interval, forkJoin } from 'rxjs';
|
|
9
9
|
import * as i1$1 from '@igo2/geo';
|
|
10
|
-
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, EditionWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule,
|
|
11
|
-
import * as
|
|
10
|
+
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, EditionWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, roundCoordTo, featureFromOl, measureOlGeometryLength, FEATURE, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
|
|
11
|
+
import * as i2 from '@igo2/core';
|
|
12
|
+
import { StorageScope, StorageServiceEventEnum, IgoLanguageModule } from '@igo2/core';
|
|
13
|
+
import * as i6 from '@angular/common';
|
|
12
14
|
import { CommonModule } from '@angular/common';
|
|
13
15
|
import { take, skipWhile, map, debounceTime, takeUntil, tap, skip } from 'rxjs/operators';
|
|
14
|
-
import * as i2 from '@igo2/auth';
|
|
15
|
-
import * as
|
|
16
|
-
import {
|
|
17
|
-
import * as
|
|
16
|
+
import * as i2$1 from '@igo2/auth';
|
|
17
|
+
import * as i7 from '@angular/material/icon';
|
|
18
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
+
import * as i10 from '@angular/material/button';
|
|
18
20
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as
|
|
21
|
+
import * as i5 from '@angular/material/tooltip';
|
|
20
22
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
21
|
-
import * as i6 from '@angular/material/icon';
|
|
22
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
23
23
|
import * as i8 from '@ngx-translate/core';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i7$1 from '@angular/material/tabs';
|
|
25
25
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
26
26
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
27
|
-
import * as
|
|
27
|
+
import * as i6$1 from '@angular/material/list';
|
|
28
28
|
import { MatListModule } from '@angular/material/list';
|
|
29
|
-
import * as
|
|
29
|
+
import * as i12 from '@angular/material/slide-toggle';
|
|
30
30
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
31
|
-
import * as
|
|
31
|
+
import * as i8$3 from '@angular/material/menu';
|
|
32
32
|
import { MatMenuModule } from '@angular/material/menu';
|
|
33
33
|
import * as i8$1 from '@angular/material/core';
|
|
34
34
|
import { MatOptionModule } from '@angular/material/core';
|
|
35
|
-
import * as
|
|
35
|
+
import * as i5$1 from '@angular/material/divider';
|
|
36
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
37
|
+
import * as i3 from '@angular/forms';
|
|
36
38
|
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
37
|
-
import * as i6$
|
|
39
|
+
import * as i6$2 from '@angular/material/form-field';
|
|
38
40
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
39
|
-
import * as i7$
|
|
41
|
+
import * as i7$2 from '@angular/material/select';
|
|
40
42
|
import { MatSelectModule } from '@angular/material/select';
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import * as olproj from 'ol/proj';
|
|
45
|
-
import * as i10$1 from '@angular/material/input';
|
|
43
|
+
import { Clipboard, uuid, NumberUtils } from '@igo2/utils';
|
|
44
|
+
import * as olProj from 'ol/proj';
|
|
45
|
+
import * as i7$3 from '@angular/material/input';
|
|
46
46
|
import { MatInputModule } from '@angular/material/input';
|
|
47
47
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
48
|
-
import * as
|
|
49
|
-
import {
|
|
48
|
+
import * as i9 from '@angular/material/radio';
|
|
49
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
50
50
|
import olFormatGeoJSON from 'ol/format/GeoJSON';
|
|
51
|
+
import olLayerVector from 'ol/layer/Vector';
|
|
52
|
+
import olLineString from 'ol/geom/LineString';
|
|
53
|
+
import * as i8$2 from '@angular/material/badge';
|
|
54
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
51
55
|
import olFeature from 'ol/Feature';
|
|
52
56
|
import olPoint from 'ol/geom/Point';
|
|
53
57
|
import pointOnFeature from '@turf/point-on-feature';
|
|
54
58
|
import * as olstyle from 'ol/style';
|
|
55
59
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
56
|
-
import * as i3$
|
|
60
|
+
import * as i3$1 from '@angular/common/http';
|
|
57
61
|
|
|
58
62
|
class IgoAppAnalyticsModule {
|
|
59
63
|
}
|
|
60
64
|
IgoAppAnalyticsModule.ɵfac = function IgoAppAnalyticsModule_Factory(t) { return new (t || IgoAppAnalyticsModule)(); };
|
|
61
65
|
IgoAppAnalyticsModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppAnalyticsModule });
|
|
62
|
-
IgoAppAnalyticsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({
|
|
66
|
+
IgoAppAnalyticsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
63
67
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppAnalyticsModule, [{
|
|
64
68
|
type: NgModule,
|
|
65
69
|
args: [{
|
|
@@ -166,7 +170,7 @@ ContextEditorToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
166
170
|
i0.ɵɵelementStart(0, "igo-context-edit", 0);
|
|
167
171
|
i0.ɵɵlistener("submitSuccessed", function ContextEditorToolComponent_Template_igo_context_edit_submitSuccessed_0_listener() { return ctx.submitSuccessed(); });
|
|
168
172
|
i0.ɵɵelementEnd();
|
|
169
|
-
} },
|
|
173
|
+
} }, dependencies: [i1.ContextEditComponent, i1.ContextEditBindingDirective], encapsulation: 2 });
|
|
170
174
|
ContextEditorToolComponent = __decorate([
|
|
171
175
|
ToolComponent({
|
|
172
176
|
name: 'contextEditor',
|
|
@@ -177,10 +181,7 @@ ContextEditorToolComponent = __decorate([
|
|
|
177
181
|
], ContextEditorToolComponent);
|
|
178
182
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextEditorToolComponent, [{
|
|
179
183
|
type: Component,
|
|
180
|
-
args: [{
|
|
181
|
-
selector: 'igo-context-editor-tool',
|
|
182
|
-
templateUrl: './context-editor-tool.component.html'
|
|
183
|
-
}]
|
|
184
|
+
args: [{ selector: 'igo-context-editor-tool', template: "<igo-context-edit\r\n igoContextEditBinding\r\n (submitSuccessed)=\"submitSuccessed()\"\r\n></igo-context-edit>\r\n" }]
|
|
184
185
|
}], function () { return [{ type: ToolState }]; }, null); })();
|
|
185
186
|
|
|
186
187
|
// import { BehaviorSubject } from 'rxjs';
|
|
@@ -188,10 +189,12 @@ ContextEditorToolComponent = __decorate([
|
|
|
188
189
|
* Service that holds the state of the map module
|
|
189
190
|
*/
|
|
190
191
|
class MapState {
|
|
191
|
-
constructor(mapService, projectionService // Don't remove this or it'll never be injected
|
|
192
|
-
) {
|
|
192
|
+
constructor(mapService, projectionService, // Don't remove this or it'll never be injected,
|
|
193
|
+
storageService, configService) {
|
|
193
194
|
this.mapService = mapService;
|
|
194
195
|
this.projectionService = projectionService;
|
|
196
|
+
this.storageService = storageService;
|
|
197
|
+
this.configService = configService;
|
|
195
198
|
this._map = new IgoMap({
|
|
196
199
|
controls: {
|
|
197
200
|
scaleLine: true,
|
|
@@ -199,7 +202,7 @@ class MapState {
|
|
|
199
202
|
collapsed: true
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
|
-
});
|
|
205
|
+
}, this.storageService, this.configService);
|
|
203
206
|
this.mapService.setMap(this.map);
|
|
204
207
|
}
|
|
205
208
|
// public mapCenter$ = new BehaviorSubject<boolean>(false);
|
|
@@ -214,14 +217,14 @@ class MapState {
|
|
|
214
217
|
*/
|
|
215
218
|
get map() { return this._map; }
|
|
216
219
|
}
|
|
217
|
-
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1$1.MapService), i0.ɵɵinject(i1$1.ProjectionService)); };
|
|
220
|
+
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1$1.MapService), i0.ɵɵinject(i1$1.ProjectionService), i0.ɵɵinject(i2.StorageService), i0.ɵɵinject(i2.ConfigService)); };
|
|
218
221
|
MapState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MapState, factory: MapState.ɵfac, providedIn: 'root' });
|
|
219
222
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapState, [{
|
|
220
223
|
type: Injectable,
|
|
221
224
|
args: [{
|
|
222
225
|
providedIn: 'root'
|
|
223
226
|
}]
|
|
224
|
-
}], function () { return [{ type: i1$1.MapService }, { type: i1$1.ProjectionService }]; }, null); })();
|
|
227
|
+
}], function () { return [{ type: i1$1.MapService }, { type: i1$1.ProjectionService }, { type: i2.StorageService }, { type: i2.ConfigService }]; }, null); })();
|
|
225
228
|
|
|
226
229
|
let ContextManagerToolComponent = class ContextManagerToolComponent {
|
|
227
230
|
constructor(toolState, mapState) {
|
|
@@ -244,7 +247,7 @@ ContextManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
244
247
|
i0.ɵɵelementEnd();
|
|
245
248
|
} if (rf & 2) {
|
|
246
249
|
i0.ɵɵproperty("map", ctx.map);
|
|
247
|
-
} },
|
|
250
|
+
} }, dependencies: [i1.ContextListComponent, i1.ContextListBindingDirective], encapsulation: 2 });
|
|
248
251
|
ContextManagerToolComponent = __decorate([
|
|
249
252
|
ToolComponent({
|
|
250
253
|
name: 'contextManager',
|
|
@@ -254,10 +257,7 @@ ContextManagerToolComponent = __decorate([
|
|
|
254
257
|
], ContextManagerToolComponent);
|
|
255
258
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextManagerToolComponent, [{
|
|
256
259
|
type: Component,
|
|
257
|
-
args: [{
|
|
258
|
-
selector: 'igo-context-manager-tool',
|
|
259
|
-
templateUrl: './context-manager-tool.component.html'
|
|
260
|
-
}]
|
|
260
|
+
args: [{ selector: 'igo-context-manager-tool', template: "<igo-context-list\r\n igoContextListBinding\r\n [map]=\"map\"\r\n (edit)=\"editContext()\"\r\n (managePermissions)=\"managePermissions()\">\r\n</igo-context-list>\r\n" }]
|
|
261
261
|
}], function () { return [{ type: ToolState }, { type: MapState }]; }, { toolToOpenOnContextChange: [{
|
|
262
262
|
type: Input
|
|
263
263
|
}] }); })();
|
|
@@ -267,7 +267,7 @@ let ContextPermissionManagerToolComponent = class ContextPermissionManagerToolCo
|
|
|
267
267
|
ContextPermissionManagerToolComponent.ɵfac = function ContextPermissionManagerToolComponent_Factory(t) { return new (t || ContextPermissionManagerToolComponent)(); };
|
|
268
268
|
ContextPermissionManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextPermissionManagerToolComponent, selectors: [["igo-context-permission-manager-tool"]], decls: 1, vars: 0, consts: [["igoContextPermissionsBinding", ""]], template: function ContextPermissionManagerToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
269
269
|
i0.ɵɵelement(0, "igo-context-permissions", 0);
|
|
270
|
-
} },
|
|
270
|
+
} }, dependencies: [i1.ContextPermissionsComponent, i1.ContextPermissionsBindingDirective], encapsulation: 2 });
|
|
271
271
|
ContextPermissionManagerToolComponent = __decorate([
|
|
272
272
|
ToolComponent({
|
|
273
273
|
name: 'contextPermissionManager',
|
|
@@ -278,10 +278,7 @@ ContextPermissionManagerToolComponent = __decorate([
|
|
|
278
278
|
], ContextPermissionManagerToolComponent);
|
|
279
279
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextPermissionManagerToolComponent, [{
|
|
280
280
|
type: Component,
|
|
281
|
-
args: [{
|
|
282
|
-
selector: 'igo-context-permission-manager-tool',
|
|
283
|
-
templateUrl: './context-permission-manager-tool.component.html'
|
|
284
|
-
}]
|
|
281
|
+
args: [{ selector: 'igo-context-permission-manager-tool', template: "<igo-context-permissions igoContextPermissionsBinding></igo-context-permissions>\r\n" }]
|
|
285
282
|
}], null, null); })();
|
|
286
283
|
|
|
287
284
|
/**
|
|
@@ -336,7 +333,7 @@ ContextShareToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
|
|
|
336
333
|
i0.ɵɵelement(0, "igo-share-map", 0);
|
|
337
334
|
} if (rf & 2) {
|
|
338
335
|
i0.ɵɵproperty("map", ctx.map);
|
|
339
|
-
} },
|
|
336
|
+
} }, dependencies: [i1.ShareMapComponent], encapsulation: 2 });
|
|
340
337
|
ContextShareToolComponent = __decorate([
|
|
341
338
|
ToolComponent({
|
|
342
339
|
name: 'shareMap',
|
|
@@ -346,17 +343,14 @@ ContextShareToolComponent = __decorate([
|
|
|
346
343
|
], ContextShareToolComponent);
|
|
347
344
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextShareToolComponent, [{
|
|
348
345
|
type: Component,
|
|
349
|
-
args: [{
|
|
350
|
-
selector: 'igo-context-share-tool',
|
|
351
|
-
templateUrl: './context-share-tool.component.html'
|
|
352
|
-
}]
|
|
346
|
+
args: [{ selector: 'igo-context-share-tool', template: "<igo-share-map\r\n [map]=\"map\"></igo-share-map>\r\n" }]
|
|
353
347
|
}], function () { return [{ type: MapState }, { type: LayerListToolState }]; }, null); })();
|
|
354
348
|
|
|
355
349
|
class IgoAppContextModule {
|
|
356
350
|
}
|
|
357
351
|
IgoAppContextModule.ɵfac = function IgoAppContextModule_Factory(t) { return new (t || IgoAppContextModule)(); };
|
|
358
352
|
IgoAppContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppContextModule });
|
|
359
|
-
IgoAppContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
353
|
+
IgoAppContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoContextModule] });
|
|
360
354
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppContextModule, [{
|
|
361
355
|
type: NgModule,
|
|
362
356
|
args: [{
|
|
@@ -425,14 +419,14 @@ class CatalogState {
|
|
|
425
419
|
this.catalogItemsStores.clear();
|
|
426
420
|
}
|
|
427
421
|
}
|
|
428
|
-
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2.AuthService)); };
|
|
422
|
+
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2$1.AuthService)); };
|
|
429
423
|
CatalogState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CatalogState, factory: CatalogState.ɵfac, providedIn: 'root' });
|
|
430
424
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogState, [{
|
|
431
425
|
type: Injectable,
|
|
432
426
|
args: [{
|
|
433
427
|
providedIn: 'root'
|
|
434
428
|
}]
|
|
435
|
-
}], function () { return [{ type: i2.AuthService }]; }, null); })();
|
|
429
|
+
}], function () { return [{ type: i2$1.AuthService }]; }, null); })();
|
|
436
430
|
|
|
437
431
|
/**
|
|
438
432
|
* Tool to browse the list of available catalogs.
|
|
@@ -489,14 +483,14 @@ let CatalogLibraryToolComponent = class CatalogLibraryToolComponent {
|
|
|
489
483
|
});
|
|
490
484
|
}
|
|
491
485
|
};
|
|
492
|
-
CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2
|
|
486
|
+
CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2.StorageService)); };
|
|
493
487
|
CatalogLibraryToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogLibraryToolComponent, selectors: [["igo-catalog-library-tool"]], inputs: { addCatalogAllowed: "addCatalogAllowed", predefinedCatalogs: "predefinedCatalogs" }, decls: 1, vars: 3, consts: [[3, "predefinedCatalogs", "addCatalogAllowed", "store", "catalogSelectChange"]], template: function CatalogLibraryToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
494
488
|
i0.ɵɵelementStart(0, "igo-catalog-library", 0);
|
|
495
489
|
i0.ɵɵlistener("catalogSelectChange", function CatalogLibraryToolComponent_Template_igo_catalog_library_catalogSelectChange_0_listener($event) { return ctx.onCatalogSelectChange($event); });
|
|
496
490
|
i0.ɵɵelementEnd();
|
|
497
491
|
} if (rf & 2) {
|
|
498
492
|
i0.ɵɵproperty("predefinedCatalogs", ctx.predefinedCatalogs)("addCatalogAllowed", ctx.addCatalogAllowed)("store", ctx.store);
|
|
499
|
-
} },
|
|
493
|
+
} }, dependencies: [i1$1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
|
|
500
494
|
CatalogLibraryToolComponent = __decorate([
|
|
501
495
|
ToolComponent({
|
|
502
496
|
name: 'catalog',
|
|
@@ -506,12 +500,8 @@ CatalogLibraryToolComponent = __decorate([
|
|
|
506
500
|
], CatalogLibraryToolComponent);
|
|
507
501
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogLibraryToolComponent, [{
|
|
508
502
|
type: Component,
|
|
509
|
-
args: [{
|
|
510
|
-
|
|
511
|
-
templateUrl: './catalog-library-tool.component.html',
|
|
512
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
513
|
-
}]
|
|
514
|
-
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2$1.StorageService }]; }, { addCatalogAllowed: [{
|
|
503
|
+
args: [{ selector: 'igo-catalog-library-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-catalog-library\r\n [predefinedCatalogs]=\"predefinedCatalogs\"\r\n [addCatalogAllowed]=\"addCatalogAllowed\"\r\n [store]=\"store\"\r\n (catalogSelectChange)=\"onCatalogSelectChange($event)\">\r\n</igo-catalog-library>\r\n" }]
|
|
504
|
+
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2.StorageService }]; }, { addCatalogAllowed: [{
|
|
515
505
|
type: Input
|
|
516
506
|
}], predefinedCatalogs: [{
|
|
517
507
|
type: Input
|
|
@@ -524,10 +514,8 @@ class IgoAppCatalogLibraryToolModule {
|
|
|
524
514
|
}
|
|
525
515
|
IgoAppCatalogLibraryToolModule.ɵfac = function IgoAppCatalogLibraryToolModule_Factory(t) { return new (t || IgoAppCatalogLibraryToolModule)(); };
|
|
526
516
|
IgoAppCatalogLibraryToolModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppCatalogLibraryToolModule });
|
|
527
|
-
IgoAppCatalogLibraryToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
528
|
-
|
|
529
|
-
IgoCatalogLibraryModule
|
|
530
|
-
]] });
|
|
517
|
+
IgoAppCatalogLibraryToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
518
|
+
IgoCatalogLibraryModule] });
|
|
531
519
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppCatalogLibraryToolModule, [{
|
|
532
520
|
type: NgModule,
|
|
533
521
|
args: [{
|
|
@@ -622,13 +610,13 @@ let CatalogBrowserToolComponent = class CatalogBrowserToolComponent {
|
|
|
622
610
|
});
|
|
623
611
|
}
|
|
624
612
|
};
|
|
625
|
-
CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.AuthService)); };
|
|
613
|
+
CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.AuthService)); };
|
|
626
614
|
CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogBrowserToolComponent, selectors: [["igo-catalog-browser-tool"]], inputs: { toggleCollapsedGroup: "toggleCollapsedGroup" }, decls: 2, vars: 3, consts: [[3, "catalog", "store", "map", "toggleCollapsedGroup", 4, "ngIf"], [3, "catalog", "store", "map", "toggleCollapsedGroup"]], template: function CatalogBrowserToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
627
615
|
i0.ɵɵtemplate(0, CatalogBrowserToolComponent_igo_catalog_browser_0_Template, 1, 4, "igo-catalog-browser", 0);
|
|
628
616
|
i0.ɵɵpipe(1, "async");
|
|
629
617
|
} if (rf & 2) {
|
|
630
618
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.store$));
|
|
631
|
-
} },
|
|
619
|
+
} }, dependencies: [i6.NgIf, i1$1.CatalogBrowserComponent, i6.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
632
620
|
CatalogBrowserToolComponent = __decorate([
|
|
633
621
|
ToolComponent({
|
|
634
622
|
name: 'catalogBrowser',
|
|
@@ -639,12 +627,8 @@ CatalogBrowserToolComponent = __decorate([
|
|
|
639
627
|
], CatalogBrowserToolComponent);
|
|
640
628
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogBrowserToolComponent, [{
|
|
641
629
|
type: Component,
|
|
642
|
-
args: [{
|
|
643
|
-
|
|
644
|
-
templateUrl: './catalog-browser-tool.component.html',
|
|
645
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
646
|
-
}]
|
|
647
|
-
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2.AuthService }]; }, { toggleCollapsedGroup: [{
|
|
630
|
+
args: [{ selector: 'igo-catalog-browser-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-catalog-browser\r\n *ngIf=\"store$ | async as store\"\r\n [catalog]=\"catalog\"\r\n [store]=\"store\"\r\n [map]=\"map\"\r\n [toggleCollapsedGroup]=\"toggleCollapsedGroup\">\r\n</igo-catalog-browser>\r\n" }]
|
|
631
|
+
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2$1.AuthService }]; }, { toggleCollapsedGroup: [{
|
|
648
632
|
type: Input
|
|
649
633
|
}] }); })();
|
|
650
634
|
|
|
@@ -655,10 +639,8 @@ class IgoAppCatalogBrowserToolModule {
|
|
|
655
639
|
}
|
|
656
640
|
IgoAppCatalogBrowserToolModule.ɵfac = function IgoAppCatalogBrowserToolModule_Factory(t) { return new (t || IgoAppCatalogBrowserToolModule)(); };
|
|
657
641
|
IgoAppCatalogBrowserToolModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppCatalogBrowserToolModule });
|
|
658
|
-
IgoAppCatalogBrowserToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
659
|
-
|
|
660
|
-
IgoCatalogBrowserModule
|
|
661
|
-
]] });
|
|
642
|
+
IgoAppCatalogBrowserToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
643
|
+
IgoCatalogBrowserModule] });
|
|
662
644
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppCatalogBrowserToolModule, [{
|
|
663
645
|
type: NgModule,
|
|
664
646
|
args: [{
|
|
@@ -678,7 +660,7 @@ class IgoAppCatalogModule {
|
|
|
678
660
|
}
|
|
679
661
|
IgoAppCatalogModule.ɵfac = function IgoAppCatalogModule_Factory(t) { return new (t || IgoAppCatalogModule)(); };
|
|
680
662
|
IgoAppCatalogModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppCatalogModule });
|
|
681
|
-
IgoAppCatalogModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
663
|
+
IgoAppCatalogModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoAppCatalogLibraryToolModule,
|
|
682
664
|
IgoAppCatalogBrowserToolModule] });
|
|
683
665
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppCatalogModule, [{
|
|
684
666
|
type: NgModule,
|
|
@@ -723,14 +705,12 @@ class DirectionState {
|
|
|
723
705
|
this.debounceTime = 200;
|
|
724
706
|
this.mapState.map.ol.once('rendercomplete', () => {
|
|
725
707
|
this.stopsFeatureStore.empty$.subscribe((empty) => {
|
|
726
|
-
|
|
727
|
-
if ((_a = this.stopsFeatureStore.layer) === null || _a === void 0 ? void 0 : _a.options) {
|
|
708
|
+
if (this.stopsFeatureStore.layer?.options) {
|
|
728
709
|
this.stopsFeatureStore.layer.options.showInLayerList = !empty;
|
|
729
710
|
}
|
|
730
711
|
});
|
|
731
712
|
this.routesFeatureStore.empty$.subscribe((empty) => {
|
|
732
|
-
|
|
733
|
-
if ((_a = this.routesFeatureStore.layer) === null || _a === void 0 ? void 0 : _a.options) {
|
|
713
|
+
if (this.routesFeatureStore.layer?.options) {
|
|
734
714
|
this.routesFeatureStore.layer.options.showInLayerList = !empty;
|
|
735
715
|
}
|
|
736
716
|
});
|
|
@@ -827,14 +807,14 @@ class ContextState {
|
|
|
827
807
|
this.setContext(context);
|
|
828
808
|
}
|
|
829
809
|
}
|
|
830
|
-
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i1.ContextService), i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2
|
|
810
|
+
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i1.ContextService), i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2.LanguageService)); };
|
|
831
811
|
ContextState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
|
|
832
812
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextState, [{
|
|
833
813
|
type: Injectable,
|
|
834
814
|
args: [{
|
|
835
815
|
providedIn: 'root'
|
|
836
816
|
}]
|
|
837
|
-
}], function () { return [{ type: i1.ContextService }, { type: i4.ToolService }, { type: ToolState }, { type: i2
|
|
817
|
+
}], function () { return [{ type: i1.ContextService }, { type: i4.ToolService }, { type: ToolState }, { type: i2.LanguageService }]; }, null); })();
|
|
838
818
|
|
|
839
819
|
let DirectionsToolComponent = class DirectionsToolComponent {
|
|
840
820
|
constructor(directionState, mapState, languageService, messageService, storageService, contextState, authService) {
|
|
@@ -893,12 +873,12 @@ let DirectionsToolComponent = class DirectionsToolComponent {
|
|
|
893
873
|
});
|
|
894
874
|
}
|
|
895
875
|
};
|
|
896
|
-
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2
|
|
876
|
+
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.LanguageService), i0.ɵɵdirectiveInject(i2.MessageService), i0.ɵɵdirectiveInject(i2.StorageService), i0.ɵɵdirectiveInject(ContextState), i0.ɵɵdirectiveInject(i2$1.AuthService)); };
|
|
897
877
|
DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 7, consts: [[3, "contextUri", "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
898
878
|
i0.ɵɵelement(0, "igo-directions", 0);
|
|
899
879
|
} if (rf & 2) {
|
|
900
880
|
i0.ɵɵproperty("contextUri", ctx.currentContextUri)("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
901
|
-
} },
|
|
881
|
+
} }, dependencies: [i1$1.DirectionsComponent], encapsulation: 2 });
|
|
902
882
|
DirectionsToolComponent = __decorate([
|
|
903
883
|
ToolComponent({
|
|
904
884
|
name: 'directions',
|
|
@@ -908,11 +888,8 @@ DirectionsToolComponent = __decorate([
|
|
|
908
888
|
], DirectionsToolComponent);
|
|
909
889
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DirectionsToolComponent, [{
|
|
910
890
|
type: Component,
|
|
911
|
-
args: [{
|
|
912
|
-
|
|
913
|
-
templateUrl: './directions-tool.component.html'
|
|
914
|
-
}]
|
|
915
|
-
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i2$1.StorageService }, { type: ContextState }, { type: i2.AuthService }]; }, null); })();
|
|
891
|
+
args: [{ selector: 'igo-directions-tool', template: "<igo-directions\r\n [contextUri]=\"currentContextUri\"\r\n [debounceTime]=\"debounceTime\"\r\n [stopsStore]=\"stopsStore\"\r\n [stopsFeatureStore]=\"stopsFeatureStore\"\r\n [stepFeatureStore]=\"stepFeatureStore\"\r\n [routesFeatureStore]=\"routesFeatureStore\"\r\n [zoomToActiveRoute$]=\"zoomToActiveRoute$\"> \r\n</igo-directions>" }]
|
|
892
|
+
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2.LanguageService }, { type: i2.MessageService }, { type: i2.StorageService }, { type: ContextState }, { type: i2$1.AuthService }]; }, null); })();
|
|
916
893
|
|
|
917
894
|
class IgoAppDirectionsModule {
|
|
918
895
|
static forRoot() {
|
|
@@ -924,7 +901,7 @@ class IgoAppDirectionsModule {
|
|
|
924
901
|
}
|
|
925
902
|
IgoAppDirectionsModule.ɵfac = function IgoAppDirectionsModule_Factory(t) { return new (t || IgoAppDirectionsModule)(); };
|
|
926
903
|
IgoAppDirectionsModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppDirectionsModule });
|
|
927
|
-
IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
904
|
+
IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoDirectionsModule] });
|
|
928
905
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppDirectionsModule, [{
|
|
929
906
|
type: NgModule,
|
|
930
907
|
args: [{
|
|
@@ -988,7 +965,7 @@ DrawingToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Drawin
|
|
|
988
965
|
i0.ɵɵelement(0, "igo-draw", 0);
|
|
989
966
|
} if (rf & 2) {
|
|
990
967
|
i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
991
|
-
} },
|
|
968
|
+
} }, dependencies: [i1$1.DrawComponent], encapsulation: 2, changeDetection: 0 });
|
|
992
969
|
DrawingToolComponent = __decorate([
|
|
993
970
|
ToolComponent({
|
|
994
971
|
name: 'draw',
|
|
@@ -998,18 +975,14 @@ DrawingToolComponent = __decorate([
|
|
|
998
975
|
], DrawingToolComponent);
|
|
999
976
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawingToolComponent, [{
|
|
1000
977
|
type: Component,
|
|
1001
|
-
args: [{
|
|
1002
|
-
selector: 'igo-drawing-tool',
|
|
1003
|
-
templateUrl: './drawing-tool.component.html',
|
|
1004
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1005
|
-
}]
|
|
978
|
+
args: [{ selector: 'igo-drawing-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-draw [store]=\"store\" [map]=\"map\"></igo-draw>\r\n" }]
|
|
1006
979
|
}], function () { return [{ type: DrawState }, { type: MapState }]; }, null); })();
|
|
1007
980
|
|
|
1008
981
|
class IgoAppDrawModule {
|
|
1009
982
|
}
|
|
1010
983
|
IgoAppDrawModule.ɵfac = function IgoAppDrawModule_Factory(t) { return new (t || IgoAppDrawModule)(); };
|
|
1011
984
|
IgoAppDrawModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppDrawModule });
|
|
1012
|
-
IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
985
|
+
IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoDrawingToolModule] });
|
|
1013
986
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppDrawModule, [{
|
|
1014
987
|
type: NgModule,
|
|
1015
988
|
args: [{
|
|
@@ -1039,14 +1012,14 @@ class StorageState {
|
|
|
1039
1012
|
return this.igoStorageService;
|
|
1040
1013
|
}
|
|
1041
1014
|
}
|
|
1042
|
-
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2
|
|
1015
|
+
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2.StorageService)); };
|
|
1043
1016
|
StorageState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StorageState, factory: StorageState.ɵfac, providedIn: 'root' });
|
|
1044
1017
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StorageState, [{
|
|
1045
1018
|
type: Injectable,
|
|
1046
1019
|
args: [{
|
|
1047
1020
|
providedIn: 'root'
|
|
1048
1021
|
}]
|
|
1049
|
-
}], function () { return [{ type: i2
|
|
1022
|
+
}], function () { return [{ type: i2.StorageService }]; }, null); })();
|
|
1050
1023
|
|
|
1051
1024
|
class FeatureActionsService {
|
|
1052
1025
|
constructor(storageState, languageService, toolState, mediaService) {
|
|
@@ -1172,14 +1145,14 @@ class FeatureActionsService {
|
|
|
1172
1145
|
];
|
|
1173
1146
|
}
|
|
1174
1147
|
}
|
|
1175
|
-
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2
|
|
1148
|
+
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2.LanguageService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2.MediaService)); };
|
|
1176
1149
|
FeatureActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FeatureActionsService, factory: FeatureActionsService.ɵfac, providedIn: 'root' });
|
|
1177
1150
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FeatureActionsService, [{
|
|
1178
1151
|
type: Injectable,
|
|
1179
1152
|
args: [{
|
|
1180
1153
|
providedIn: 'root'
|
|
1181
1154
|
}]
|
|
1182
|
-
}], function () { return [{ type: StorageState }, { type: i2
|
|
1155
|
+
}], function () { return [{ type: StorageState }, { type: i2.LanguageService }, { type: ToolState }, { type: i2.MediaService }]; }, null); })();
|
|
1183
1156
|
|
|
1184
1157
|
class WfsActionsService {
|
|
1185
1158
|
constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
|
|
@@ -1209,10 +1182,9 @@ class WfsActionsService {
|
|
|
1209
1182
|
workspace.actionStore.load(actions);
|
|
1210
1183
|
}
|
|
1211
1184
|
buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1212
|
-
var _a, _b;
|
|
1213
1185
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1214
1186
|
this.storageChange$$ = this.storageService.storageChange$
|
|
1215
|
-
.pipe(skipWhile((storageChange) =>
|
|
1187
|
+
.pipe(skipWhile((storageChange) => storageChange?.key !== 'zoomAuto' || storageChange?.event === StorageServiceEventEnum.CLEARED))
|
|
1216
1188
|
.subscribe(() => {
|
|
1217
1189
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1218
1190
|
handleZoomAuto(workspace, this.storageService);
|
|
@@ -1312,11 +1284,11 @@ class WfsActionsService {
|
|
|
1312
1284
|
}
|
|
1313
1285
|
}
|
|
1314
1286
|
];
|
|
1315
|
-
return
|
|
1287
|
+
return workspace.layer.dataSource.ogcFilters$?.value?.enabled ?
|
|
1316
1288
|
actions : actions.filter(action => action.id !== 'ogcFilter');
|
|
1317
1289
|
}
|
|
1318
1290
|
}
|
|
1319
|
-
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2
|
|
1291
|
+
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2.LanguageService), i0.ɵɵinject(i2.MediaService), i0.ɵɵinject(ToolState)); };
|
|
1320
1292
|
WfsActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WfsActionsService, factory: WfsActionsService.ɵfac, providedIn: 'root' });
|
|
1321
1293
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WfsActionsService, [{
|
|
1322
1294
|
type: Injectable,
|
|
@@ -1326,7 +1298,7 @@ WfsActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WfsAct
|
|
|
1326
1298
|
}], function () { return [{ type: i4.Widget, decorators: [{
|
|
1327
1299
|
type: Inject,
|
|
1328
1300
|
args: [OgcFilterWidget]
|
|
1329
|
-
}] }, { type: StorageState }, { type: i2
|
|
1301
|
+
}] }, { type: StorageState }, { type: i2.LanguageService }, { type: i2.MediaService }, { type: ToolState }]; }, null); })();
|
|
1330
1302
|
|
|
1331
1303
|
class EditionActionsService {
|
|
1332
1304
|
constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
|
|
@@ -1354,10 +1326,9 @@ class EditionActionsService {
|
|
|
1354
1326
|
workspace.actionStore.load(actions);
|
|
1355
1327
|
}
|
|
1356
1328
|
buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1357
|
-
var _a, _b;
|
|
1358
1329
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1359
1330
|
this.storageChange$$ = this.storageService.storageChange$
|
|
1360
|
-
.pipe(skipWhile((storageChange) =>
|
|
1331
|
+
.pipe(skipWhile((storageChange) => storageChange?.key !== 'zoomAuto' || storageChange?.event === StorageServiceEventEnum.CLEARED))
|
|
1361
1332
|
.subscribe(() => {
|
|
1362
1333
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1363
1334
|
handleZoomAuto(workspace, this.storageService);
|
|
@@ -1457,11 +1428,11 @@ class EditionActionsService {
|
|
|
1457
1428
|
}
|
|
1458
1429
|
}
|
|
1459
1430
|
];
|
|
1460
|
-
return
|
|
1431
|
+
return workspace.layer.dataSource.ogcFilters$?.value?.enabled ?
|
|
1461
1432
|
actions : actions.filter(action => action.id !== 'ogcFilter');
|
|
1462
1433
|
}
|
|
1463
1434
|
}
|
|
1464
|
-
EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2
|
|
1435
|
+
EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2.LanguageService), i0.ɵɵinject(i2.MediaService), i0.ɵɵinject(ToolState)); };
|
|
1465
1436
|
EditionActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EditionActionsService, factory: EditionActionsService.ɵfac, providedIn: 'root' });
|
|
1466
1437
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditionActionsService, [{
|
|
1467
1438
|
type: Injectable,
|
|
@@ -1471,7 +1442,7 @@ EditionActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: Ed
|
|
|
1471
1442
|
}], function () { return [{ type: i4.Widget, decorators: [{
|
|
1472
1443
|
type: Inject,
|
|
1473
1444
|
args: [OgcFilterWidget]
|
|
1474
|
-
}] }, { type: StorageState }, { type: i2
|
|
1445
|
+
}] }, { type: StorageState }, { type: i2.LanguageService }, { type: i2.MediaService }, { type: ToolState }]; }, null); })();
|
|
1475
1446
|
|
|
1476
1447
|
/**
|
|
1477
1448
|
* Service that holds the state of the workspace module
|
|
@@ -1500,6 +1471,22 @@ class WorkspaceState {
|
|
|
1500
1471
|
* Store that holds all the available workspaces
|
|
1501
1472
|
*/
|
|
1502
1473
|
get store() { return this._store; }
|
|
1474
|
+
get workspaceSelection() {
|
|
1475
|
+
if (this.workspace$.value) {
|
|
1476
|
+
return this.workspace$.value?.entityStore.stateView.manyBy((r) => r.state.selected === true);
|
|
1477
|
+
}
|
|
1478
|
+
else {
|
|
1479
|
+
return [];
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
get workspaceSelection$() {
|
|
1483
|
+
if (this.workspace$.value) {
|
|
1484
|
+
return this.workspace$.value?.entityStore?.stateView.manyBy$((r) => r.state.selected === true);
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
return of([]);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1503
1490
|
/**
|
|
1504
1491
|
* Initialize the workspace store. Each time a workspace is activated,
|
|
1505
1492
|
* subscribe to it's active widget. Tracking the active widget is useful
|
|
@@ -1627,19 +1614,19 @@ class WorkspaceState {
|
|
|
1627
1614
|
}
|
|
1628
1615
|
}
|
|
1629
1616
|
}
|
|
1630
|
-
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(EditionActionsService), i0.ɵɵinject(i2
|
|
1617
|
+
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(EditionActionsService), i0.ɵɵinject(i2.StorageService)); };
|
|
1631
1618
|
WorkspaceState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WorkspaceState, factory: WorkspaceState.ɵfac, providedIn: 'root' });
|
|
1632
1619
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceState, [{
|
|
1633
1620
|
type: Injectable,
|
|
1634
1621
|
args: [{
|
|
1635
1622
|
providedIn: 'root'
|
|
1636
1623
|
}]
|
|
1637
|
-
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2
|
|
1624
|
+
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2.StorageService }]; }, null); })();
|
|
1638
1625
|
|
|
1639
1626
|
function WorkspaceButtonComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1640
1627
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
1641
1628
|
i0.ɵɵelementStart(0, "button", 1);
|
|
1642
|
-
i0.ɵɵlistener("click", function WorkspaceButtonComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.activateWorkspace(); });
|
|
1629
|
+
i0.ɵɵlistener("click", function WorkspaceButtonComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.activateWorkspace()); });
|
|
1643
1630
|
i0.ɵɵpipe(1, "translate");
|
|
1644
1631
|
i0.ɵɵelement(2, "mat-icon", 2);
|
|
1645
1632
|
i0.ɵɵelementEnd();
|
|
@@ -1663,7 +1650,7 @@ class WorkspaceButtonComponent {
|
|
|
1663
1650
|
}
|
|
1664
1651
|
ngOnInit() {
|
|
1665
1652
|
this.hasWorkspace$$ = combineLatest([this.workspaceState.workspaceEnabled$, this.layer$])
|
|
1666
|
-
.subscribe(bunch =>
|
|
1653
|
+
.subscribe(bunch => this.hasWorkspace$.next(bunch[0] && bunch[1]?.options.workspace?.enabled));
|
|
1667
1654
|
}
|
|
1668
1655
|
ngOnDestroy() {
|
|
1669
1656
|
this.hasWorkspace$$.unsubscribe();
|
|
@@ -1686,15 +1673,10 @@ WorkspaceButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wo
|
|
|
1686
1673
|
i0.ɵɵpipe(1, "async");
|
|
1687
1674
|
} if (rf & 2) {
|
|
1688
1675
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
|
|
1689
|
-
} },
|
|
1676
|
+
} }, dependencies: [i6.NgIf, i7.MatIcon, i10.MatButton, i5.MatTooltip, i6.AsyncPipe, i8.TranslatePipe], changeDetection: 0 });
|
|
1690
1677
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceButtonComponent, [{
|
|
1691
1678
|
type: Component,
|
|
1692
|
-
args: [{
|
|
1693
|
-
selector: 'igo-workspace-button',
|
|
1694
|
-
templateUrl: './workspace-button.component.html',
|
|
1695
|
-
styleUrls: ['./workspace-button.component.scss'],
|
|
1696
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1697
|
-
}]
|
|
1679
|
+
args: [{ selector: 'igo-workspace-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n *ngIf=\"hasWorkspace$ | async\"\r\n mat-icon-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.integration.workspace.toggleWorkspace' | translate\"\r\n [color]=\"color\"\r\n (click)=\"activateWorkspace()\"\r\n >\r\n <mat-icon svgIcon=\"table\"></mat-icon>\r\n</button>\r\n" }]
|
|
1698
1680
|
}], function () { return [{ type: WorkspaceState }]; }, { layer: [{
|
|
1699
1681
|
type: Input
|
|
1700
1682
|
}], color: [{
|
|
@@ -1705,13 +1687,11 @@ class IgoAppWorkspaceModule {
|
|
|
1705
1687
|
}
|
|
1706
1688
|
IgoAppWorkspaceModule.ɵfac = function IgoAppWorkspaceModule_Factory(t) { return new (t || IgoAppWorkspaceModule)(); };
|
|
1707
1689
|
IgoAppWorkspaceModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppWorkspaceModule });
|
|
1708
|
-
IgoAppWorkspaceModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
IgoLanguageModule
|
|
1714
|
-
]] });
|
|
1690
|
+
IgoAppWorkspaceModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
1691
|
+
MatIconModule,
|
|
1692
|
+
MatButtonModule,
|
|
1693
|
+
MatTooltipModule,
|
|
1694
|
+
IgoLanguageModule] });
|
|
1715
1695
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppWorkspaceModule, [{
|
|
1716
1696
|
type: NgModule,
|
|
1717
1697
|
args: [{
|
|
@@ -1734,19 +1714,16 @@ IgoAppWorkspaceModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
|
1734
1714
|
|
|
1735
1715
|
function ImportExportToolComponent_mat_tab_group_0_Template(rf, ctx) { if (rf & 1) {
|
|
1736
1716
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1737
|
-
i0.ɵɵelementStart(0, "mat-tab-group");
|
|
1738
|
-
i0.ɵɵelementStart(1, "mat-tab", 3);
|
|
1717
|
+
i0.ɵɵelementStart(0, "mat-tab-group")(1, "mat-tab", 3);
|
|
1739
1718
|
i0.ɵɵpipe(2, "translate");
|
|
1740
1719
|
i0.ɵɵelementStart(3, "igo-import-export", 4);
|
|
1741
|
-
i0.ɵɵlistener("selectMode", function ImportExportToolComponent_mat_tab_group_0_Template_igo_import_export_selectMode_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.modeChanged($event); })("exportOptionsChange", function ImportExportToolComponent_mat_tab_group_0_Template_igo_import_export_exportOptionsChange_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.exportOptionsChange($event); });
|
|
1720
|
+
i0.ɵɵlistener("selectMode", function ImportExportToolComponent_mat_tab_group_0_Template_igo_import_export_selectMode_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.modeChanged($event)); })("exportOptionsChange", function ImportExportToolComponent_mat_tab_group_0_Template_igo_import_export_exportOptionsChange_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.exportOptionsChange($event)); });
|
|
1742
1721
|
i0.ɵɵpipe(4, "async");
|
|
1743
|
-
i0.ɵɵelementEnd();
|
|
1744
|
-
i0.ɵɵelementEnd();
|
|
1722
|
+
i0.ɵɵelementEnd()();
|
|
1745
1723
|
i0.ɵɵelementStart(5, "mat-tab", 3);
|
|
1746
1724
|
i0.ɵɵpipe(6, "translate");
|
|
1747
1725
|
i0.ɵɵelement(7, "igo-context-import-export", 5);
|
|
1748
|
-
i0.ɵɵelementEnd();
|
|
1749
|
-
i0.ɵɵelementEnd();
|
|
1726
|
+
i0.ɵɵelementEnd()();
|
|
1750
1727
|
} if (rf & 2) {
|
|
1751
1728
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1752
1729
|
i0.ɵɵadvance(1);
|
|
@@ -1761,7 +1738,7 @@ function ImportExportToolComponent_mat_tab_group_0_Template(rf, ctx) { if (rf &
|
|
|
1761
1738
|
function ImportExportToolComponent_igo_import_export_1_Template(rf, ctx) { if (rf & 1) {
|
|
1762
1739
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
1763
1740
|
i0.ɵɵelementStart(0, "igo-import-export", 6);
|
|
1764
|
-
i0.ɵɵlistener("selectMode", function ImportExportToolComponent_igo_import_export_1_Template_igo_import_export_selectMode_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.modeChanged($event); })("exportOptionsChange", function ImportExportToolComponent_igo_import_export_1_Template_igo_import_export_exportOptionsChange_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.exportOptionsChange($event); });
|
|
1741
|
+
i0.ɵɵlistener("selectMode", function ImportExportToolComponent_igo_import_export_1_Template_igo_import_export_selectMode_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.modeChanged($event)); })("exportOptionsChange", function ImportExportToolComponent_igo_import_export_1_Template_igo_import_export_exportOptionsChange_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.exportOptionsChange($event)); });
|
|
1765
1742
|
i0.ɵɵpipe(1, "async");
|
|
1766
1743
|
i0.ɵɵelementEnd();
|
|
1767
1744
|
} if (rf & 2) {
|
|
@@ -1837,7 +1814,7 @@ ImportExportToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: I
|
|
|
1837
1814
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "layer");
|
|
1838
1815
|
i0.ɵɵadvance(1);
|
|
1839
1816
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
|
|
1840
|
-
} },
|
|
1817
|
+
} }, dependencies: [i1$1.ImportExportComponent, i1.ContextImportExportComponent, i6.NgIf, i7$1.MatTabGroup, i7$1.MatTab, i6.AsyncPipe, i8.TranslatePipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
1841
1818
|
ImportExportToolComponent = __decorate([
|
|
1842
1819
|
ToolComponent({
|
|
1843
1820
|
name: 'importExport',
|
|
@@ -1847,12 +1824,7 @@ ImportExportToolComponent = __decorate([
|
|
|
1847
1824
|
], ImportExportToolComponent);
|
|
1848
1825
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImportExportToolComponent, [{
|
|
1849
1826
|
type: Component,
|
|
1850
|
-
args: [{
|
|
1851
|
-
selector: 'igo-import-export-tool',
|
|
1852
|
-
templateUrl: './import-export-tool.component.html',
|
|
1853
|
-
styleUrls: ['./import-export-tool.component.scss'],
|
|
1854
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1855
|
-
}]
|
|
1827
|
+
args: [{ selector: 'igo-import-export-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-tab-group *ngIf=\"importExportShowBothType\" >\r\n <mat-tab [label]=\"'igo.integration.importExportTool.importExportData' | translate\">\r\n <igo-import-export \r\n [map]=\"map\"\r\n [selectFirstProj]=\"selectFirstProj\"\r\n [projectionsLimitations]=\"projectionsLimitations\"\r\n [store]=\"workspaceStore\"\r\n [selectedMode]=\"importExportState.selectedMode$ | async\"\r\n (selectMode)=\"modeChanged($event)\"\r\n [exportOptions$]=\"importExportState.exportOptions$\"\r\n (exportOptionsChange)=\"exportOptionsChange($event)\">\r\n </igo-import-export>\r\n </mat-tab>\r\n <mat-tab [label]=\"'igo.integration.importExportTool.importExportContext' | translate\">\r\n <igo-context-import-export [map]=\"map\"></igo-context-import-export>\r\n </mat-tab>\r\n</mat-tab-group>\r\n\r\n<igo-import-export \r\n *ngIf=\"!importExportShowBothType && importExportType === 'layer'\"\r\n [map]=\"map\"\r\n [store]=\"workspaceStore\"\r\n [selectedMode]=\"importExportState.selectedMode$ | async\"\r\n (selectMode)=\"modeChanged($event)\"\r\n [exportOptions$]=\"importExportState.exportOptions$\"\r\n (exportOptionsChange)=\"exportOptionsChange($event)\">\r\n</igo-import-export>\r\n\r\n<igo-context-import-export \r\n *ngIf=\"!importExportShowBothType && importExportType === 'context'\"\r\n [map]=\"map\">\r\n</igo-context-import-export>", styles: ["mat-form-field{width:100%}\n"] }]
|
|
1856
1828
|
}], function () { return [{ type: MapState }, { type: ImportExportState }, { type: WorkspaceState }]; }, { projectionsLimitations: [{
|
|
1857
1829
|
type: Input
|
|
1858
1830
|
}], selectFirstProj: [{
|
|
@@ -1873,14 +1845,12 @@ class IgoAppImportExportModule {
|
|
|
1873
1845
|
}
|
|
1874
1846
|
IgoAppImportExportModule.ɵfac = function IgoAppImportExportModule_Factory(t) { return new (t || IgoAppImportExportModule)(); };
|
|
1875
1847
|
IgoAppImportExportModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppImportExportModule });
|
|
1876
|
-
IgoAppImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
MatTabsModule
|
|
1883
|
-
]] });
|
|
1848
|
+
IgoAppImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoImportExportModule,
|
|
1849
|
+
IgoContextImportExportModule,
|
|
1850
|
+
CommonModule,
|
|
1851
|
+
IgoLanguageModule,
|
|
1852
|
+
MatButtonToggleModule,
|
|
1853
|
+
MatTabsModule] });
|
|
1884
1854
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppImportExportModule, [{
|
|
1885
1855
|
type: NgModule,
|
|
1886
1856
|
args: [{
|
|
@@ -1908,12 +1878,9 @@ function MapDetailsToolComponent_igo_layer_list_0_ng_template_1_Template(rf, ctx
|
|
|
1908
1878
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
1909
1879
|
i0.ɵɵelement(0, "igo-workspace-button", 4);
|
|
1910
1880
|
i0.ɵɵelementStart(1, "igo-export-button", 5);
|
|
1911
|
-
i0.ɵɵlistener("click", function MapDetailsToolComponent_igo_layer_list_0_ng_template_1_Template_igo_export_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const layer_r5 = restoredCtx.layer; const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.activateExport(layer_r5); });
|
|
1881
|
+
i0.ɵɵlistener("click", function MapDetailsToolComponent_igo_layer_list_0_ng_template_1_Template_igo_export_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const layer_r5 = restoredCtx.layer; const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.activateExport(layer_r5)); });
|
|
1912
1882
|
i0.ɵɵelementEnd();
|
|
1913
|
-
i0.ɵɵelement(2, "igo-ogc-filter-button", 6);
|
|
1914
|
-
i0.ɵɵelement(3, "igo-time-filter-button", 6);
|
|
1915
|
-
i0.ɵɵelement(4, "igo-track-feature-button", 7);
|
|
1916
|
-
i0.ɵɵelement(5, "igo-metadata-button", 4);
|
|
1883
|
+
i0.ɵɵelement(2, "igo-ogc-filter-button", 6)(3, "igo-time-filter-button", 6)(4, "igo-track-feature-button", 7)(5, "igo-metadata-button", 4);
|
|
1917
1884
|
} if (rf & 2) {
|
|
1918
1885
|
const layer_r5 = ctx.layer;
|
|
1919
1886
|
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
@@ -1948,67 +1915,57 @@ function MapDetailsToolComponent_ng_template_2_mat_list_0_p_4_Template(rf, ctx)
|
|
|
1948
1915
|
} }
|
|
1949
1916
|
function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_5_Template(rf, ctx) { if (rf & 1) {
|
|
1950
1917
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
1951
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
1952
|
-
i0.ɵɵelementStart(1, "mat-icon", 11);
|
|
1918
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 11);
|
|
1953
1919
|
i0.ɵɵnamespaceSVG();
|
|
1954
1920
|
i0.ɵɵelementStart(2, "svg", 12);
|
|
1955
1921
|
i0.ɵɵelement(3, "path", 13);
|
|
1956
|
-
i0.ɵɵelementEnd();
|
|
1957
|
-
i0.ɵɵelementEnd();
|
|
1922
|
+
i0.ɵɵelementEnd()();
|
|
1958
1923
|
i0.ɵɵnamespaceHTML();
|
|
1959
1924
|
i0.ɵɵelementStart(4, "h4", 14);
|
|
1960
|
-
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_5_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return ctx_r13.searchEmit(); });
|
|
1925
|
+
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_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()); });
|
|
1961
1926
|
i0.ɵɵtext(5);
|
|
1962
1927
|
i0.ɵɵpipe(6, "translate");
|
|
1963
|
-
i0.ɵɵelementEnd();
|
|
1964
|
-
i0.ɵɵelementEnd();
|
|
1928
|
+
i0.ɵɵelementEnd()();
|
|
1965
1929
|
} if (rf & 2) {
|
|
1966
1930
|
i0.ɵɵadvance(5);
|
|
1967
1931
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.search-tool"), " ");
|
|
1968
1932
|
} }
|
|
1969
1933
|
function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_6_Template(rf, ctx) { if (rf & 1) {
|
|
1970
1934
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
1971
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
1972
|
-
i0.ɵɵelementStart(1, "mat-icon", 11);
|
|
1935
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 11);
|
|
1973
1936
|
i0.ɵɵnamespaceSVG();
|
|
1974
1937
|
i0.ɵɵelementStart(2, "svg", 12);
|
|
1975
1938
|
i0.ɵɵelement(3, "path", 15);
|
|
1976
|
-
i0.ɵɵelementEnd();
|
|
1977
|
-
i0.ɵɵelementEnd();
|
|
1939
|
+
i0.ɵɵelementEnd()();
|
|
1978
1940
|
i0.ɵɵnamespaceHTML();
|
|
1979
1941
|
i0.ɵɵelementStart(4, "h4", 16);
|
|
1980
|
-
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_6_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.catalogEmit(); });
|
|
1942
|
+
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_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()); });
|
|
1981
1943
|
i0.ɵɵtext(5);
|
|
1982
1944
|
i0.ɵɵpipe(6, "translate");
|
|
1983
|
-
i0.ɵɵelementEnd();
|
|
1984
|
-
i0.ɵɵelementEnd();
|
|
1945
|
+
i0.ɵɵelementEnd()();
|
|
1985
1946
|
} if (rf & 2) {
|
|
1986
1947
|
i0.ɵɵadvance(5);
|
|
1987
1948
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.catalog-tool"), " ");
|
|
1988
1949
|
} }
|
|
1989
1950
|
function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_7_Template(rf, ctx) { if (rf & 1) {
|
|
1990
1951
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
1991
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
1992
|
-
i0.ɵɵelementStart(1, "mat-icon", 11);
|
|
1952
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 11);
|
|
1993
1953
|
i0.ɵɵnamespaceSVG();
|
|
1994
1954
|
i0.ɵɵelementStart(2, "svg", 12);
|
|
1995
1955
|
i0.ɵɵelement(3, "path", 17);
|
|
1996
|
-
i0.ɵɵelementEnd();
|
|
1997
|
-
i0.ɵɵelementEnd();
|
|
1956
|
+
i0.ɵɵelementEnd()();
|
|
1998
1957
|
i0.ɵɵnamespaceHTML();
|
|
1999
1958
|
i0.ɵɵelementStart(4, "h4", 18);
|
|
2000
|
-
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_mat_list_0_mat_list_item_7_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(3); return ctx_r17.contextEmit(); });
|
|
1959
|
+
i0.ɵɵlistener("click", function MapDetailsToolComponent_ng_template_2_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()); });
|
|
2001
1960
|
i0.ɵɵtext(5);
|
|
2002
1961
|
i0.ɵɵpipe(6, "translate");
|
|
2003
|
-
i0.ɵɵelementEnd();
|
|
2004
|
-
i0.ɵɵelementEnd();
|
|
1962
|
+
i0.ɵɵelementEnd()();
|
|
2005
1963
|
} if (rf & 2) {
|
|
2006
1964
|
i0.ɵɵadvance(5);
|
|
2007
1965
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.context-tool"), " ");
|
|
2008
1966
|
} }
|
|
2009
1967
|
function MapDetailsToolComponent_ng_template_2_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
2010
|
-
i0.ɵɵelementStart(0, "mat-list");
|
|
2011
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
1968
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 9);
|
|
2012
1969
|
i0.ɵɵtext(2);
|
|
2013
1970
|
i0.ɵɵpipe(3, "translate");
|
|
2014
1971
|
i0.ɵɵelementEnd();
|
|
@@ -2109,9 +2066,8 @@ let MapDetailsToolComponent = class MapDetailsToolComponent {
|
|
|
2109
2066
|
this.toolState.toolbox.activateTool('contextManager');
|
|
2110
2067
|
}
|
|
2111
2068
|
activateExport(layer) {
|
|
2112
|
-
var _a;
|
|
2113
2069
|
let id = layer.id;
|
|
2114
|
-
if (
|
|
2070
|
+
if (layer.options.workspace?.workspaceId) {
|
|
2115
2071
|
id = layer.options.workspace.workspaceId !== layer.id ? layer.options.workspace.workspaceId : layer.id;
|
|
2116
2072
|
}
|
|
2117
2073
|
this.importExportState.setsExportOptions({ layers: [id] });
|
|
@@ -2127,7 +2083,7 @@ MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Map
|
|
|
2127
2083
|
} if (rf & 2) {
|
|
2128
2084
|
const _r1 = i0.ɵɵreference(3);
|
|
2129
2085
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
|
|
2130
|
-
} },
|
|
2086
|
+
} }, dependencies: [i6.NgIf, i6$1.MatList, i6$1.MatListItem, i8$1.MatLine, i6$1.MatListIconCssMatStyler, i7.MatIcon, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent, i1$1.ExportButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.OgcFilterButtonComponent, WorkspaceButtonComponent, i6.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}.mapDetailsList[_ngcontent-%COMP%]{overflow:hidden}"] });
|
|
2131
2087
|
MapDetailsToolComponent = __decorate([
|
|
2132
2088
|
ToolComponent({
|
|
2133
2089
|
name: 'mapDetails',
|
|
@@ -2137,11 +2093,7 @@ MapDetailsToolComponent = __decorate([
|
|
|
2137
2093
|
], MapDetailsToolComponent);
|
|
2138
2094
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapDetailsToolComponent, [{
|
|
2139
2095
|
type: Component,
|
|
2140
|
-
args: [{
|
|
2141
|
-
selector: 'igo-map-details-tool',
|
|
2142
|
-
templateUrl: './map-details-tool.component.html',
|
|
2143
|
-
styleUrls: ['./map-details-tool.component.scss']
|
|
2144
|
-
}]
|
|
2096
|
+
args: [{ selector: 'igo-map-details-tool', template: "<igo-layer-list class=\"mapDetailsList\" *ngIf=\"(layers$ | async).length; else empty\"\r\n [map]=\"map\"\r\n igoLayerListBinding\r\n [excludeBaseLayers]=\"excludeBaseLayers\"\r\n [layerFilterAndSortOptions]=\"layerFilterAndSortOptions\"\r\n [expandLegendOfVisibleLayers]=\"expandLegendOfVisibleLayers\"\r\n [toggleLegendOnVisibilityChange]=\"toggleLegendOnVisibilityChange\"\r\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\r\n floatLabel=\"never\"\r\n [queryBadge]=\"queryBadge\">\r\n\r\n <ng-template #igoLayerItemToolbar let-layer=\"layer\">\r\n <!-- <igo-download-button [layer]=\"layer\"></igo-download-button> -->\r\n <igo-workspace-button [layer]=\"layer\"></igo-workspace-button>\r\n <igo-export-button [layer]=\"layer\" (click)=\"activateExport(layer)\"></igo-export-button>\r\n <igo-ogc-filter-button [header]=\"ogcButton\" [layer]=\"layer\"></igo-ogc-filter-button>\r\n <igo-time-filter-button [header]=\"timeButton\" [layer]=\"layer\"></igo-time-filter-button>\r\n <igo-track-feature-button [trackFeature]=\"true\" [layer]=\"layer\"></igo-track-feature-button>\r\n <igo-metadata-button [layer]=\"layer\"></igo-metadata-button>\r\n </ng-template>\r\n\r\n</igo-layer-list>\r\n\r\n<ng-template #empty>\r\n <mat-list *ngIf=\"delayedShowEmptyMapContent\">\r\n <p class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.empty' | translate}}</p>\r\n <p *ngIf=\"layerAdditionAllowed && (searchToolInToolbar || catalogToolInToolbar || contextToolInToolbar)\" class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.customize' | translate}}</p>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && searchToolInToolbar\">\r\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>\r\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\r\n {{'igo.integration.mapTool.search-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && catalogToolInToolbar\">\r\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>\r\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\r\n {{'igo.integration.mapTool.catalog-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && contextToolInToolbar\">\r\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>\r\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\r\n {{'igo.integration.mapTool.context-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n </mat-list>\r\n</ng-template>\r\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}.mapDetailsList{overflow:hidden}\n"] }]
|
|
2145
2097
|
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
2146
2098
|
type: Input
|
|
2147
2099
|
}], expandLegendOfVisibleLayers: [{
|
|
@@ -2164,12 +2116,9 @@ function MapToolComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
2164
2116
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
2165
2117
|
i0.ɵɵelement(0, "igo-workspace-button", 4);
|
|
2166
2118
|
i0.ɵɵelementStart(1, "igo-export-button", 5);
|
|
2167
|
-
i0.ɵɵlistener("click", function MapToolComponent_ng_template_4_Template_igo_export_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const layer_r2 = restoredCtx.layer; const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.activateExport(layer_r2); });
|
|
2119
|
+
i0.ɵɵlistener("click", function MapToolComponent_ng_template_4_Template_igo_export_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const layer_r2 = restoredCtx.layer; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.activateExport(layer_r2)); });
|
|
2168
2120
|
i0.ɵɵelementEnd();
|
|
2169
|
-
i0.ɵɵelement(2, "igo-ogc-filter-button", 6);
|
|
2170
|
-
i0.ɵɵelement(3, "igo-time-filter-button", 6);
|
|
2171
|
-
i0.ɵɵelement(4, "igo-track-feature-button", 7);
|
|
2172
|
-
i0.ɵɵelement(5, "igo-metadata-button", 4);
|
|
2121
|
+
i0.ɵɵelement(2, "igo-ogc-filter-button", 6)(3, "igo-time-filter-button", 6)(4, "igo-track-feature-button", 7)(5, "igo-metadata-button", 4);
|
|
2173
2122
|
} if (rf & 2) {
|
|
2174
2123
|
const layer_r2 = ctx.layer;
|
|
2175
2124
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -2224,9 +2173,8 @@ let MapToolComponent = class MapToolComponent {
|
|
|
2224
2173
|
return filterSortOptions;
|
|
2225
2174
|
}
|
|
2226
2175
|
activateExport(layer) {
|
|
2227
|
-
var _a;
|
|
2228
2176
|
let id = layer.id;
|
|
2229
|
-
if (
|
|
2177
|
+
if (layer.options.workspace?.workspaceId) {
|
|
2230
2178
|
id = layer.options.workspace.workspaceId !== layer.id ? layer.options.workspace.workspaceId : layer.id;
|
|
2231
2179
|
}
|
|
2232
2180
|
this.importExportState.setsExportOptions({ layers: [id] });
|
|
@@ -2236,18 +2184,15 @@ let MapToolComponent = class MapToolComponent {
|
|
|
2236
2184
|
};
|
|
2237
2185
|
MapToolComponent.ɵfac = function MapToolComponent_Factory(t) { return new (t || MapToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
2238
2186
|
MapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolComponent, selectors: [["igo-map-tool"]], inputs: { toggleLegendOnVisibilityChange: "toggleLegendOnVisibilityChange", expandLegendOfVisibleLayers: "expandLegendOfVisibleLayers", updateLegendOnResolutionChange: "updateLegendOnResolutionChange", ogcButton: "ogcButton", timeButton: "timeButton", layerListControls: "layerListControls", queryBadge: "queryBadge" }, decls: 9, vars: 14, consts: [[3, "label"], ["igoLayerListBinding", "", 3, "map", "excludeBaseLayers", "layerFilterAndSortOptions", "expandLegendOfVisibleLayers", "toggleLegendOnVisibilityChange", "updateLegendOnResolutionChange", "floatLabel", "queryBadge"], ["igoLayerItemToolbar", ""], ["igoContextListBinding", ""], [3, "layer"], [3, "layer", "click"], [3, "header", "layer"], [3, "trackFeature", "layer"]], template: function MapToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2239
|
-
i0.ɵɵelementStart(0, "mat-tab-group");
|
|
2240
|
-
i0.ɵɵelementStart(1, "mat-tab", 0);
|
|
2187
|
+
i0.ɵɵelementStart(0, "mat-tab-group")(1, "mat-tab", 0);
|
|
2241
2188
|
i0.ɵɵpipe(2, "translate");
|
|
2242
2189
|
i0.ɵɵelementStart(3, "igo-layer-list", 1);
|
|
2243
2190
|
i0.ɵɵtemplate(4, MapToolComponent_ng_template_4_Template, 6, 9, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
2244
|
-
i0.ɵɵelementEnd();
|
|
2245
|
-
i0.ɵɵelementEnd();
|
|
2191
|
+
i0.ɵɵelementEnd()();
|
|
2246
2192
|
i0.ɵɵelementStart(6, "mat-tab", 0);
|
|
2247
2193
|
i0.ɵɵpipe(7, "translate");
|
|
2248
2194
|
i0.ɵɵelement(8, "igo-context-list", 3);
|
|
2249
|
-
i0.ɵɵelementEnd();
|
|
2250
|
-
i0.ɵɵelementEnd();
|
|
2195
|
+
i0.ɵɵelementEnd()();
|
|
2251
2196
|
} if (rf & 2) {
|
|
2252
2197
|
i0.ɵɵadvance(1);
|
|
2253
2198
|
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(2, 10, "igo.integration.tools.map"));
|
|
@@ -2255,7 +2200,7 @@ MapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolCom
|
|
|
2255
2200
|
i0.ɵɵproperty("map", ctx.map)("excludeBaseLayers", ctx.excludeBaseLayers)("layerFilterAndSortOptions", ctx.layerFilterAndSortOptions)("expandLegendOfVisibleLayers", ctx.expandLegendOfVisibleLayers)("toggleLegendOnVisibilityChange", ctx.toggleLegendOnVisibilityChange)("updateLegendOnResolutionChange", ctx.updateLegendOnResolutionChange)("floatLabel", false)("queryBadge", ctx.queryBadge);
|
|
2256
2201
|
i0.ɵɵadvance(3);
|
|
2257
2202
|
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
|
|
2258
|
-
} },
|
|
2203
|
+
} }, dependencies: [i7$1.MatTabGroup, i7$1.MatTab, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent, i1$1.ExportButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.OgcFilterButtonComponent, i1.ContextListComponent, i1.ContextListBindingDirective, WorkspaceButtonComponent, i8.TranslatePipe], styles: ["mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
2259
2204
|
MapToolComponent = __decorate([
|
|
2260
2205
|
ToolComponent({
|
|
2261
2206
|
name: 'map',
|
|
@@ -2265,12 +2210,7 @@ MapToolComponent = __decorate([
|
|
|
2265
2210
|
], MapToolComponent);
|
|
2266
2211
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapToolComponent, [{
|
|
2267
2212
|
type: Component,
|
|
2268
|
-
args: [{
|
|
2269
|
-
selector: 'igo-map-tool',
|
|
2270
|
-
templateUrl: './map-tool.component.html',
|
|
2271
|
-
styleUrls: ['./map-tool.component.scss'],
|
|
2272
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2273
|
-
}]
|
|
2213
|
+
args: [{ selector: 'igo-map-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-tab-group>\r\n\r\n <mat-tab [label]=\"'igo.integration.tools.map' |\u00A0translate\">\r\n <igo-layer-list\r\n [map]=\"map\"\r\n igoLayerListBinding\r\n [excludeBaseLayers]=\"excludeBaseLayers\"\r\n [layerFilterAndSortOptions]=\"layerFilterAndSortOptions\"\r\n [expandLegendOfVisibleLayers]=\"expandLegendOfVisibleLayers\"\r\n [toggleLegendOnVisibilityChange]=\"toggleLegendOnVisibilityChange\"\r\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\r\n [floatLabel]=\"false\"\r\n [queryBadge]=\"queryBadge\">\r\n\r\n <ng-template #igoLayerItemToolbar let-layer=\"layer\">\r\n <!-- <igo-download-button [layer]=\"layer\"></igo-download-button> -->\r\n <igo-workspace-button [layer]=\"layer\"></igo-workspace-button>\r\n <igo-export-button [layer]=\"layer\" (click)=\"activateExport(layer)\"></igo-export-button>\r\n <igo-ogc-filter-button [header]=\"ogcButton\" [layer]=\"layer\"></igo-ogc-filter-button>\r\n <igo-time-filter-button [header]=\"timeButton\" [layer]=\"layer\"></igo-time-filter-button>\r\n <igo-track-feature-button [trackFeature]=\"true\" [layer]=\"layer\"></igo-track-feature-button>\r\n <igo-metadata-button [layer]=\"layer\"></igo-metadata-button>\r\n </ng-template>\r\n\r\n </igo-layer-list>\r\n </mat-tab>\r\n\r\n <mat-tab [label]=\"'igo.integration.tools.contexts' |\u00A0translate\">\r\n <igo-context-list igoContextListBinding></igo-context-list>\r\n </mat-tab>\r\n\r\n</mat-tab-group>\r\n", styles: ["mat-tab-group,mat-tab-group ::ng-deep .mat-tab-body-wrapper{height:100%;overflow:hidden}:host ::ng-deep .mat-tab-body-content{overflow:hidden}\n"] }]
|
|
2274
2214
|
}], function () { return [{ type: MapState }, { type: ToolState }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
2275
2215
|
type: Input
|
|
2276
2216
|
}], expandLegendOfVisibleLayers: [{
|
|
@@ -2287,11 +2227,11 @@ MapToolComponent = __decorate([
|
|
|
2287
2227
|
type: Input
|
|
2288
2228
|
}] }); })();
|
|
2289
2229
|
|
|
2290
|
-
const _c0$
|
|
2230
|
+
const _c0$2 = ["tabGroup"];
|
|
2291
2231
|
function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
2292
2232
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
2293
2233
|
i0.ɵɵelementStart(0, "igo-time-filter-button", 14);
|
|
2294
|
-
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button_2_Template_igo_time_filter_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return ctx_r13.activateTimeFilter(); });
|
|
2234
|
+
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button_2_Template_igo_time_filter_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r13.activateTimeFilter()); });
|
|
2295
2235
|
i0.ɵɵelementEnd();
|
|
2296
2236
|
} if (rf & 2) {
|
|
2297
2237
|
const layer_r9 = i0.ɵɵnextContext().layer;
|
|
@@ -2301,7 +2241,7 @@ function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button
|
|
|
2301
2241
|
function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_ogc_filter_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
2302
2242
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
2303
2243
|
i0.ɵɵelementStart(0, "igo-ogc-filter-button", 14);
|
|
2304
|
-
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_ogc_filter_button_3_Template_igo_ogc_filter_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(3); return ctx_r16.activateOgcFilter(); });
|
|
2244
|
+
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_ogc_filter_button_3_Template_igo_ogc_filter_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r16.activateOgcFilter()); });
|
|
2305
2245
|
i0.ɵɵelementEnd();
|
|
2306
2246
|
} if (rf & 2) {
|
|
2307
2247
|
const layer_r9 = i0.ɵɵnextContext().layer;
|
|
@@ -2311,15 +2251,14 @@ function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_ogc_filter_button_
|
|
|
2311
2251
|
function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_export_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
2312
2252
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
2313
2253
|
i0.ɵɵelementStart(0, "igo-export-button", 15);
|
|
2314
|
-
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_export_button_4_Template_igo_export_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const layer_r9 = i0.ɵɵnextContext().layer; const ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.activateExport(layer_r9); });
|
|
2254
|
+
i0.ɵɵlistener("click", function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_export_button_4_Template_igo_export_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const layer_r9 = i0.ɵɵnextContext().layer; const ctx_r19 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r19.activateExport(layer_r9)); });
|
|
2315
2255
|
i0.ɵɵelementEnd();
|
|
2316
2256
|
} if (rf & 2) {
|
|
2317
2257
|
const layer_r9 = i0.ɵɵnextContext().layer;
|
|
2318
2258
|
i0.ɵɵproperty("layer", layer_r9);
|
|
2319
2259
|
} }
|
|
2320
2260
|
function MapToolsComponent_igo_layer_list_5_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
2321
|
-
i0.ɵɵelement(0, "igo-metadata-button", 10);
|
|
2322
|
-
i0.ɵɵelement(1, "igo-track-feature-button", 11);
|
|
2261
|
+
i0.ɵɵelement(0, "igo-metadata-button", 10)(1, "igo-track-feature-button", 11);
|
|
2323
2262
|
i0.ɵɵtemplate(2, MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button_2_Template, 1, 2, "igo-time-filter-button", 12);
|
|
2324
2263
|
i0.ɵɵtemplate(3, MapToolsComponent_igo_layer_list_5_ng_template_1_igo_ogc_filter_button_3_Template, 1, 2, "igo-ogc-filter-button", 12);
|
|
2325
2264
|
i0.ɵɵtemplate(4, MapToolsComponent_igo_layer_list_5_ng_template_1_igo_export_button_4_Template, 1, 1, "igo-export-button", 13);
|
|
@@ -2342,7 +2281,7 @@ function MapToolsComponent_igo_layer_list_5_ng_template_1_Template(rf, ctx) { if
|
|
|
2342
2281
|
function MapToolsComponent_igo_layer_list_5_Template(rf, ctx) { if (rf & 1) {
|
|
2343
2282
|
const _r24 = i0.ɵɵgetCurrentView();
|
|
2344
2283
|
i0.ɵɵelementStart(0, "igo-layer-list", 8);
|
|
2345
|
-
i0.ɵɵlistener("appliedFilterAndSort", function MapToolsComponent_igo_layer_list_5_Template_igo_layer_list_appliedFilterAndSort_0_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.onLayerListChange($event); });
|
|
2284
|
+
i0.ɵɵlistener("appliedFilterAndSort", function MapToolsComponent_igo_layer_list_5_Template_igo_layer_list_appliedFilterAndSort_0_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r23.onLayerListChange($event)); });
|
|
2346
2285
|
i0.ɵɵtemplate(1, MapToolsComponent_igo_layer_list_5_ng_template_1_Template, 6, 7, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
2347
2286
|
i0.ɵɵelementEnd();
|
|
2348
2287
|
} if (rf & 2) {
|
|
@@ -2352,7 +2291,7 @@ function MapToolsComponent_igo_layer_list_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
2352
2291
|
function MapToolsComponent_igo_layer_legend_list_9_Template(rf, ctx) { if (rf & 1) {
|
|
2353
2292
|
const _r26 = i0.ɵɵgetCurrentView();
|
|
2354
2293
|
i0.ɵɵelementStart(0, "igo-layer-legend-list", 16);
|
|
2355
|
-
i0.ɵɵlistener("allLegendsShown", function MapToolsComponent_igo_layer_legend_list_9_Template_igo_layer_legend_list_allLegendsShown_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.onShowAllLegends($event); });
|
|
2294
|
+
i0.ɵɵlistener("allLegendsShown", function MapToolsComponent_igo_layer_legend_list_9_Template_igo_layer_legend_list_allLegendsShown_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r25.onShowAllLegends($event)); });
|
|
2356
2295
|
i0.ɵɵpipe(1, "async");
|
|
2357
2296
|
i0.ɵɵelementEnd();
|
|
2358
2297
|
} if (rf & 2) {
|
|
@@ -2386,67 +2325,57 @@ function MapToolsComponent_ng_template_15_mat_list_0_p_4_Template(rf, ctx) { if
|
|
|
2386
2325
|
} }
|
|
2387
2326
|
function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_5_Template(rf, ctx) { if (rf & 1) {
|
|
2388
2327
|
const _r34 = i0.ɵɵgetCurrentView();
|
|
2389
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2390
|
-
i0.ɵɵelementStart(1, "mat-icon", 19);
|
|
2328
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 19);
|
|
2391
2329
|
i0.ɵɵnamespaceSVG();
|
|
2392
2330
|
i0.ɵɵelementStart(2, "svg", 20);
|
|
2393
2331
|
i0.ɵɵelement(3, "path", 21);
|
|
2394
|
-
i0.ɵɵelementEnd();
|
|
2395
|
-
i0.ɵɵelementEnd();
|
|
2332
|
+
i0.ɵɵelementEnd()();
|
|
2396
2333
|
i0.ɵɵnamespaceHTML();
|
|
2397
2334
|
i0.ɵɵelementStart(4, "h4", 22);
|
|
2398
|
-
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_5_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(3); return ctx_r33.searchEmit(); });
|
|
2335
|
+
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_5_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r33.searchEmit()); });
|
|
2399
2336
|
i0.ɵɵtext(5);
|
|
2400
2337
|
i0.ɵɵpipe(6, "translate");
|
|
2401
|
-
i0.ɵɵelementEnd();
|
|
2402
|
-
i0.ɵɵelementEnd();
|
|
2338
|
+
i0.ɵɵelementEnd()();
|
|
2403
2339
|
} if (rf & 2) {
|
|
2404
2340
|
i0.ɵɵadvance(5);
|
|
2405
2341
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.search-tool"), " ");
|
|
2406
2342
|
} }
|
|
2407
2343
|
function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_6_Template(rf, ctx) { if (rf & 1) {
|
|
2408
2344
|
const _r36 = i0.ɵɵgetCurrentView();
|
|
2409
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2410
|
-
i0.ɵɵelementStart(1, "mat-icon", 19);
|
|
2345
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 19);
|
|
2411
2346
|
i0.ɵɵnamespaceSVG();
|
|
2412
2347
|
i0.ɵɵelementStart(2, "svg", 20);
|
|
2413
2348
|
i0.ɵɵelement(3, "path", 23);
|
|
2414
|
-
i0.ɵɵelementEnd();
|
|
2415
|
-
i0.ɵɵelementEnd();
|
|
2349
|
+
i0.ɵɵelementEnd()();
|
|
2416
2350
|
i0.ɵɵnamespaceHTML();
|
|
2417
2351
|
i0.ɵɵelementStart(4, "h4", 24);
|
|
2418
|
-
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_6_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(3); return ctx_r35.catalogEmit(); });
|
|
2352
|
+
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_6_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r35.catalogEmit()); });
|
|
2419
2353
|
i0.ɵɵtext(5);
|
|
2420
2354
|
i0.ɵɵpipe(6, "translate");
|
|
2421
|
-
i0.ɵɵelementEnd();
|
|
2422
|
-
i0.ɵɵelementEnd();
|
|
2355
|
+
i0.ɵɵelementEnd()();
|
|
2423
2356
|
} if (rf & 2) {
|
|
2424
2357
|
i0.ɵɵadvance(5);
|
|
2425
2358
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.catalog-tool"), " ");
|
|
2426
2359
|
} }
|
|
2427
2360
|
function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_7_Template(rf, ctx) { if (rf & 1) {
|
|
2428
2361
|
const _r38 = i0.ɵɵgetCurrentView();
|
|
2429
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2430
|
-
i0.ɵɵelementStart(1, "mat-icon", 19);
|
|
2362
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 19);
|
|
2431
2363
|
i0.ɵɵnamespaceSVG();
|
|
2432
2364
|
i0.ɵɵelementStart(2, "svg", 20);
|
|
2433
2365
|
i0.ɵɵelement(3, "path", 25);
|
|
2434
|
-
i0.ɵɵelementEnd();
|
|
2435
|
-
i0.ɵɵelementEnd();
|
|
2366
|
+
i0.ɵɵelementEnd()();
|
|
2436
2367
|
i0.ɵɵnamespaceHTML();
|
|
2437
2368
|
i0.ɵɵelementStart(4, "h4", 26);
|
|
2438
|
-
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_7_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.contextEmit(); });
|
|
2369
|
+
i0.ɵɵlistener("click", function MapToolsComponent_ng_template_15_mat_list_0_mat_list_item_7_Template_h4_click_4_listener() { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r37.contextEmit()); });
|
|
2439
2370
|
i0.ɵɵtext(5);
|
|
2440
2371
|
i0.ɵɵpipe(6, "translate");
|
|
2441
|
-
i0.ɵɵelementEnd();
|
|
2442
|
-
i0.ɵɵelementEnd();
|
|
2372
|
+
i0.ɵɵelementEnd()();
|
|
2443
2373
|
} if (rf & 2) {
|
|
2444
2374
|
i0.ɵɵadvance(5);
|
|
2445
2375
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.context-tool"), " ");
|
|
2446
2376
|
} }
|
|
2447
2377
|
function MapToolsComponent_ng_template_15_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
2448
|
-
i0.ɵɵelementStart(0, "mat-list");
|
|
2449
|
-
i0.ɵɵelementStart(1, "p", 17);
|
|
2378
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 17);
|
|
2450
2379
|
i0.ɵɵtext(2);
|
|
2451
2380
|
i0.ɵɵpipe(3, "translate");
|
|
2452
2381
|
i0.ɵɵelementEnd();
|
|
@@ -2634,9 +2563,8 @@ let MapToolsComponent = class MapToolsComponent {
|
|
|
2634
2563
|
return true;
|
|
2635
2564
|
}
|
|
2636
2565
|
activateExport(layer) {
|
|
2637
|
-
var _a;
|
|
2638
2566
|
let id = layer.id;
|
|
2639
|
-
if (
|
|
2567
|
+
if (layer.options.workspace?.workspaceId) {
|
|
2640
2568
|
id = layer.options.workspace.workspaceId !== layer.id ? layer.options.workspace.workspaceId : layer.id;
|
|
2641
2569
|
}
|
|
2642
2570
|
this.importExportState.setsExportOptions({ layers: [id] });
|
|
@@ -2666,13 +2594,12 @@ let MapToolsComponent = class MapToolsComponent {
|
|
|
2666
2594
|
const options = layer.dataSource.options;
|
|
2667
2595
|
return this.ogcButton && options.ogcFilters && options.ogcFilters.enabled &&
|
|
2668
2596
|
(options.ogcFilters.pushButtons || options.ogcFilters.checkboxes || options.ogcFilters.radioButtons
|
|
2669
|
-
|| options.ogcFilters.select || options.ogcFilters.editable);
|
|
2597
|
+
|| options.ogcFilters.select || options.ogcFilters.autocomplete || options.ogcFilters.editable);
|
|
2670
2598
|
}
|
|
2671
2599
|
isExportButton(layer) {
|
|
2672
|
-
var _a, _b;
|
|
2673
2600
|
if ((layer instanceof VectorLayer && layer.exportable === true) ||
|
|
2674
2601
|
(layer.dataSource.options.download && layer.dataSource.options.download.url) ||
|
|
2675
|
-
(
|
|
2602
|
+
(layer.options.workspace?.enabled && layer.options.workspace?.workspaceId !== layer.id)) {
|
|
2676
2603
|
return true;
|
|
2677
2604
|
}
|
|
2678
2605
|
return false;
|
|
@@ -2680,7 +2607,7 @@ let MapToolsComponent = class MapToolsComponent {
|
|
|
2680
2607
|
};
|
|
2681
2608
|
MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || MapToolsComponent)(i0.ɵɵdirectiveInject(LayerListToolState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
2682
2609
|
MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsComponent, selectors: [["igo-map-tools"]], viewQuery: function MapToolsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2683
|
-
i0.ɵɵviewQuery(_c0$
|
|
2610
|
+
i0.ɵɵviewQuery(_c0$2, 7);
|
|
2684
2611
|
} if (rf & 2) {
|
|
2685
2612
|
let _t;
|
|
2686
2613
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
@@ -2696,7 +2623,7 @@ MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsC
|
|
|
2696
2623
|
i0.ɵɵelementStart(7, "mat-tab", 2);
|
|
2697
2624
|
i0.ɵɵpipe(8, "translate");
|
|
2698
2625
|
i0.ɵɵtemplate(9, MapToolsComponent_igo_layer_legend_list_9_Template, 2, 6, "igo-layer-legend-list", 4);
|
|
2699
|
-
i0.ɵɵtemplate(10, MapToolsComponent_10_Template, 1, 0,
|
|
2626
|
+
i0.ɵɵtemplate(10, MapToolsComponent_10_Template, 1, 0, null, 5);
|
|
2700
2627
|
i0.ɵɵpipe(11, "async");
|
|
2701
2628
|
i0.ɵɵtemplate(12, MapToolsComponent_p_12_Template, 5, 7, "p", 6);
|
|
2702
2629
|
i0.ɵɵpipe(13, "async");
|
|
@@ -2719,7 +2646,7 @@ MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsC
|
|
|
2719
2646
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 17, ctx.layers$).length !== 0)("ngIfElse", _r5);
|
|
2720
2647
|
i0.ɵɵadvance(2);
|
|
2721
2648
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
|
|
2722
|
-
} },
|
|
2649
|
+
} }, dependencies: [i6.NgIf, i7$1.MatTabGroup, i7$1.MatTab, i6$1.MatList, i6$1.MatListItem, i8$1.MatLine, i6$1.MatListIconCssMatStyler, i7.MatIcon, i1$1.LayerListComponent, i1$1.LayerLegendListComponent, i1$1.LayerListBindingDirective, i1$1.LayerLegendListBindingDirective, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent, i1$1.ExportButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.OgcFilterButtonComponent, WorkspaceButtonComponent, i6.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}mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
2723
2650
|
MapToolsComponent = __decorate([
|
|
2724
2651
|
ToolComponent({
|
|
2725
2652
|
name: 'mapTools',
|
|
@@ -2729,12 +2656,7 @@ MapToolsComponent = __decorate([
|
|
|
2729
2656
|
], MapToolsComponent);
|
|
2730
2657
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapToolsComponent, [{
|
|
2731
2658
|
type: Component,
|
|
2732
|
-
args: [{
|
|
2733
|
-
selector: 'igo-map-tools',
|
|
2734
|
-
templateUrl: './map-tools.component.html',
|
|
2735
|
-
styleUrls: ['./map-tools.component.scss'],
|
|
2736
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2737
|
-
}]
|
|
2659
|
+
args: [{ selector: 'igo-map-tools', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-tab-group\r\n #tabGroup\r\n [selectedIndex]=\"layerListToolState.selectedTab$ | async\"\r\n (selectedTabChange)=\"tabChanged($event)\">\r\n\r\n <mat-tab [label]=\"'igo.integration.tools.layers' |\u00A0translate\">\r\n <igo-layer-list *ngIf=\"(layers$ | async).length !== 0; else emptyLayers\"\r\n igoLayerListBinding\r\n [excludeBaseLayers]=\"excludeBaseLayers\"\r\n [layerFilterAndSortOptions]=\"layerFilterAndSortOptions\"\r\n [expandLegendOfVisibleLayers]=\"expandLegendOfVisibleLayers\"\r\n [toggleLegendOnVisibilityChange]=\"toggleLegendOnVisibilityChange\"\r\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\r\n [floatLabel]=\"false\"\r\n [queryBadge]=\"queryBadge\"\r\n [map]=\"map\"\r\n (appliedFilterAndSort)= onLayerListChange($event)>\r\n\r\n <ng-template #igoLayerItemToolbar let-layer=\"layer\">\r\n <igo-metadata-button [layer]=\"layer\"></igo-metadata-button>\r\n <igo-track-feature-button [trackFeature]=\"true\" [layer]=\"layer\"></igo-track-feature-button>\r\n <igo-time-filter-button *ngIf=\"isTimeFilterButton(layer)\" [header]=\"timeButton\" [layer]=\"layer\"\r\n (click)=\"activateTimeFilter()\"></igo-time-filter-button>\r\n <igo-ogc-filter-button *ngIf=\"isOGCFilterButton(layer)\" [header]=\"ogcButton\" [layer]=\"layer\"\r\n (click)=\"activateOgcFilter()\"></igo-ogc-filter-button>\r\n <igo-export-button *ngIf=\"isExportButton(layer)\" [layer]=\"layer\" (click)=\"activateExport(layer)\"></igo-export-button>\r\n <igo-workspace-button [layer]=\"layer\"></igo-workspace-button>\r\n </ng-template>\r\n </igo-layer-list>\r\n </mat-tab>\r\n\r\n <mat-tab [label]=\"'igo.integration.tools.legend' |\u00A0translate\">\r\n <igo-layer-legend-list *ngIf=\"showAllLegend()\"\r\n igoLayerLegendListBinding\r\n [allowShowAllLegends]=\"allowShowAllLegends\"\r\n [showAllLegendsValue]=\"(showAllLegendsValue$ | async)\"\r\n (allLegendsShown)=\"onShowAllLegends($event)\"\r\n [excludeBaseLayers]=\"excludeBaseLayers\"\r\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\">\r\n </igo-layer-legend-list>\r\n <ng-template *ngIf=\"(layers$ | async).length !== 0; else emptyLayers\"></ng-template>\r\n\r\n <p class=\"map-empty mat-typography\"\r\n *ngIf=\"!allowShowAllLegends && (layers$ | async).length !== 0 && (visibleOrInRangeLayers$ | async).length === 0\">\r\n {{ ((visibleLayers$ | async).length) ? ('igo.integration.mapTool.noLayersInRange' | translate) : ('igo.integration.mapTool.noLayersVisible' | translate) }}\r\n </p>\r\n </mat-tab>\r\n\r\n <ng-template #emptyLayers>\r\n <mat-list *ngIf=\"delayedShowEmptyMapContent\">\r\n <p class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.empty' | translate}}</p>\r\n <p *ngIf=\"layerAdditionAllowed && (searchToolInToolbar || catalogToolInToolbar || contextToolInToolbar)\"\r\n class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.customize' | translate}}</p>\r\n\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && searchToolInToolbar\">\r\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%'\r\n preserveAspectRatio='xMidYMid meet' focusable='false'>\r\n <path\r\n 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'>\r\n </path>\r\n </svg></mat-icon>\r\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\r\n {{'igo.integration.mapTool.search-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && catalogToolInToolbar\">\r\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%'\r\n preserveAspectRatio='xMidYMid meet' focusable='false'>\r\n <path\r\n 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'>\r\n </path>\r\n </svg></mat-icon>\r\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\r\n {{'igo.integration.mapTool.catalog-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && contextToolInToolbar\">\r\n <mat-icon mat-list-icon> <svg viewBox='0 0 24 24' fit='' height='100%' width='100%'\r\n preserveAspectRatio='xMidYMid meet' focusable='false'>\r\n <path\r\n 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'>\r\n </path>\r\n </svg></mat-icon>\r\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\r\n {{'igo.integration.mapTool.context-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n </mat-list>\r\n </ng-template>\r\n</mat-tab-group>\r\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}mat-tab-group,mat-tab-group ::ng-deep .mat-tab-body-wrapper{height:100%;overflow:hidden}:host ::ng-deep .mat-tab-body-content{overflow:hidden}\n"] }]
|
|
2738
2660
|
}], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1$1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
|
|
2739
2661
|
type: Input
|
|
2740
2662
|
}], showAllLegendsValue: [{
|
|
@@ -2765,7 +2687,7 @@ MapToolsComponent = __decorate([
|
|
|
2765
2687
|
function MapLegendToolComponent_igo_layer_legend_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
2766
2688
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
2767
2689
|
i0.ɵɵelementStart(0, "igo-layer-legend-list", 4);
|
|
2768
|
-
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 ctx_r5.onShowAllLegends($event); });
|
|
2690
|
+
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)); });
|
|
2769
2691
|
i0.ɵɵpipe(1, "async");
|
|
2770
2692
|
i0.ɵɵelementEnd();
|
|
2771
2693
|
} if (rf & 2) {
|
|
@@ -2799,67 +2721,57 @@ function MapLegendToolComponent_ng_template_6_mat_list_0_p_4_Template(rf, ctx) {
|
|
|
2799
2721
|
} }
|
|
2800
2722
|
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_5_Template(rf, ctx) { if (rf & 1) {
|
|
2801
2723
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
2802
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2803
|
-
i0.ɵɵelementStart(1, "mat-icon", 7);
|
|
2724
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
2804
2725
|
i0.ɵɵnamespaceSVG();
|
|
2805
2726
|
i0.ɵɵelementStart(2, "svg", 8);
|
|
2806
2727
|
i0.ɵɵelement(3, "path", 9);
|
|
2807
|
-
i0.ɵɵelementEnd();
|
|
2808
|
-
i0.ɵɵelementEnd();
|
|
2728
|
+
i0.ɵɵelementEnd()();
|
|
2809
2729
|
i0.ɵɵnamespaceHTML();
|
|
2810
2730
|
i0.ɵɵelementStart(4, "h4", 10);
|
|
2811
|
-
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 ctx_r13.searchEmit(); });
|
|
2731
|
+
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()); });
|
|
2812
2732
|
i0.ɵɵtext(5);
|
|
2813
2733
|
i0.ɵɵpipe(6, "translate");
|
|
2814
|
-
i0.ɵɵelementEnd();
|
|
2815
|
-
i0.ɵɵelementEnd();
|
|
2734
|
+
i0.ɵɵelementEnd()();
|
|
2816
2735
|
} if (rf & 2) {
|
|
2817
2736
|
i0.ɵɵadvance(5);
|
|
2818
2737
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.search-tool"), " ");
|
|
2819
2738
|
} }
|
|
2820
2739
|
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_6_Template(rf, ctx) { if (rf & 1) {
|
|
2821
2740
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
2822
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2823
|
-
i0.ɵɵelementStart(1, "mat-icon", 7);
|
|
2741
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
2824
2742
|
i0.ɵɵnamespaceSVG();
|
|
2825
2743
|
i0.ɵɵelementStart(2, "svg", 8);
|
|
2826
2744
|
i0.ɵɵelement(3, "path", 11);
|
|
2827
|
-
i0.ɵɵelementEnd();
|
|
2828
|
-
i0.ɵɵelementEnd();
|
|
2745
|
+
i0.ɵɵelementEnd()();
|
|
2829
2746
|
i0.ɵɵnamespaceHTML();
|
|
2830
2747
|
i0.ɵɵelementStart(4, "h4", 12);
|
|
2831
|
-
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 ctx_r15.catalogEmit(); });
|
|
2748
|
+
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()); });
|
|
2832
2749
|
i0.ɵɵtext(5);
|
|
2833
2750
|
i0.ɵɵpipe(6, "translate");
|
|
2834
|
-
i0.ɵɵelementEnd();
|
|
2835
|
-
i0.ɵɵelementEnd();
|
|
2751
|
+
i0.ɵɵelementEnd()();
|
|
2836
2752
|
} if (rf & 2) {
|
|
2837
2753
|
i0.ɵɵadvance(5);
|
|
2838
2754
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.catalog-tool"), " ");
|
|
2839
2755
|
} }
|
|
2840
2756
|
function MapLegendToolComponent_ng_template_6_mat_list_0_mat_list_item_7_Template(rf, ctx) { if (rf & 1) {
|
|
2841
2757
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
2842
|
-
i0.ɵɵelementStart(0, "mat-list-item");
|
|
2843
|
-
i0.ɵɵelementStart(1, "mat-icon", 7);
|
|
2758
|
+
i0.ɵɵelementStart(0, "mat-list-item")(1, "mat-icon", 7);
|
|
2844
2759
|
i0.ɵɵnamespaceSVG();
|
|
2845
2760
|
i0.ɵɵelementStart(2, "svg", 8);
|
|
2846
2761
|
i0.ɵɵelement(3, "path", 13);
|
|
2847
|
-
i0.ɵɵelementEnd();
|
|
2848
|
-
i0.ɵɵelementEnd();
|
|
2762
|
+
i0.ɵɵelementEnd()();
|
|
2849
2763
|
i0.ɵɵnamespaceHTML();
|
|
2850
2764
|
i0.ɵɵelementStart(4, "h4", 14);
|
|
2851
|
-
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 ctx_r17.contextEmit(); });
|
|
2765
|
+
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()); });
|
|
2852
2766
|
i0.ɵɵtext(5);
|
|
2853
2767
|
i0.ɵɵpipe(6, "translate");
|
|
2854
|
-
i0.ɵɵelementEnd();
|
|
2855
|
-
i0.ɵɵelementEnd();
|
|
2768
|
+
i0.ɵɵelementEnd()();
|
|
2856
2769
|
} if (rf & 2) {
|
|
2857
2770
|
i0.ɵɵadvance(5);
|
|
2858
2771
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "igo.integration.mapTool.context-tool"), " ");
|
|
2859
2772
|
} }
|
|
2860
2773
|
function MapLegendToolComponent_ng_template_6_mat_list_0_Template(rf, ctx) { if (rf & 1) {
|
|
2861
|
-
i0.ɵɵelementStart(0, "mat-list");
|
|
2862
|
-
i0.ɵɵelementStart(1, "p", 5);
|
|
2774
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 5);
|
|
2863
2775
|
i0.ɵɵtext(2);
|
|
2864
2776
|
i0.ɵɵpipe(3, "translate");
|
|
2865
2777
|
i0.ɵɵelementEnd();
|
|
@@ -2995,7 +2907,7 @@ let MapLegendToolComponent = class MapLegendToolComponent {
|
|
|
2995
2907
|
MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
2996
2908
|
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) {
|
|
2997
2909
|
i0.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
|
|
2998
|
-
i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0,
|
|
2910
|
+
i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0, null, 1);
|
|
2999
2911
|
i0.ɵɵpipe(2, "async");
|
|
3000
2912
|
i0.ɵɵtemplate(3, MapLegendToolComponent_p_3_Template, 5, 7, "p", 2);
|
|
3001
2913
|
i0.ɵɵpipe(4, "async");
|
|
@@ -3008,7 +2920,7 @@ MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapL
|
|
|
3008
2920
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
|
|
3009
2921
|
i0.ɵɵadvance(2);
|
|
3010
2922
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
3011
|
-
} },
|
|
2923
|
+
} }, dependencies: [i6.NgIf, i6$1.MatList, i6$1.MatListItem, i8$1.MatLine, i6$1.MatListIconCssMatStyler, i7.MatIcon, i1$1.LayerLegendListComponent, i1$1.LayerLegendListBindingDirective, i6.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}"] });
|
|
3012
2924
|
MapLegendToolComponent = __decorate([
|
|
3013
2925
|
ToolComponent({
|
|
3014
2926
|
name: 'mapLegend',
|
|
@@ -3018,11 +2930,7 @@ MapLegendToolComponent = __decorate([
|
|
|
3018
2930
|
], MapLegendToolComponent);
|
|
3019
2931
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapLegendToolComponent, [{
|
|
3020
2932
|
type: Component,
|
|
3021
|
-
args: [{
|
|
3022
|
-
selector: 'igo-map-legend-tool',
|
|
3023
|
-
templateUrl: './map-legend-tool.component.html',
|
|
3024
|
-
styleUrls: ['./map-legend-tool.component.scss']
|
|
3025
|
-
}]
|
|
2933
|
+
args: [{ selector: 'igo-map-legend-tool', template: "<igo-layer-legend-list *ngIf=\"showAllLegend()\"\r\n igoLayerLegendListBinding\r\n [excludeBaseLayers]=\"excludeBaseLayers\"\r\n [allowShowAllLegends]=\"allowShowAllLegends\"\r\n [updateLegendOnResolutionChange]=\"updateLegendOnResolutionChange\"\r\n [showAllLegendsValue]=\"(showAllLegendsValue$ | async)\"\r\n (allLegendsShown)=\"onShowAllLegends($event)\">\r\n</igo-layer-legend-list>\r\n<ng-template *ngIf=\"(layers$ | async).length !== 0; else emptyLayers\"></ng-template>\r\n\r\n<p class=\"map-empty mat-typography\"\r\n *ngIf=\"!allowShowAllLegends && (layers$ | async).length !== 0 && (visibleOrInRangeLayers$ | async).length === 0\">\r\n {{ ((visibleLayers$ | async).length) ? ('igo.integration.mapTool.noLayersInRange' | translate) : ('igo.integration.mapTool.noLayersVisible' | translate) }}\r\n</p>\r\n\r\n\r\n<ng-template #emptyLayers>\r\n <mat-list *ngIf=\"delayedShowEmptyMapContent\">\r\n <p class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.empty' | translate}}</p>\r\n <p *ngIf=\"layerAdditionAllowed && (searchToolInToolbar || catalogToolInToolbar || contextToolInToolbar)\" class=\"map-empty mat-typography\">\r\n {{'igo.integration.mapTool.customize' | translate}}</p>\r\n\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && searchToolInToolbar\">\r\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>\r\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\r\n {{'igo.integration.mapTool.search-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && catalogToolInToolbar\">\r\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>\r\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\r\n {{'igo.integration.mapTool.catalog-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item *ngIf=\"layerAdditionAllowed && contextToolInToolbar\">\r\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>\r\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\r\n {{'igo.integration.mapTool.context-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n </mat-list>\r\n</ng-template>\r\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"] }]
|
|
3026
2934
|
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
3027
2935
|
type: Input
|
|
3028
2936
|
}], layerAdditionAllowed: [{
|
|
@@ -3038,7 +2946,7 @@ MapLegendToolComponent = __decorate([
|
|
|
3038
2946
|
function AdvancedSwipeComponent_div_0_mat_option_12_Template(rf, ctx) { if (rf & 1) {
|
|
3039
2947
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
3040
2948
|
i0.ɵɵelementStart(0, "mat-option", 5);
|
|
3041
|
-
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 ctx_r6.applyNewLayers(_r3); });
|
|
2949
|
+
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)); });
|
|
3042
2950
|
i0.ɵɵtext(1);
|
|
3043
2951
|
i0.ɵɵelementEnd();
|
|
3044
2952
|
} if (rf & 2) {
|
|
@@ -3049,30 +2957,23 @@ function AdvancedSwipeComponent_div_0_mat_option_12_Template(rf, ctx) { if (rf &
|
|
|
3049
2957
|
} }
|
|
3050
2958
|
function AdvancedSwipeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
3051
2959
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
3052
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
3053
|
-
i0.ɵɵelementStart(1, "form", 3);
|
|
3054
|
-
i0.ɵɵelementStart(2, "mat-form-field");
|
|
3055
|
-
i0.ɵɵelementStart(3, "mat-label");
|
|
2960
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "form", 3)(2, "mat-form-field")(3, "mat-label");
|
|
3056
2961
|
i0.ɵɵtext(4);
|
|
3057
2962
|
i0.ɵɵpipe(5, "translate");
|
|
3058
2963
|
i0.ɵɵelementEnd();
|
|
3059
|
-
i0.ɵɵelementStart(6, "mat-select", 4);
|
|
3060
|
-
i0.ɵɵ
|
|
3061
|
-
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 ctx_r8.selectAll(_r3); });
|
|
2964
|
+
i0.ɵɵelementStart(6, "mat-select", 4)(7, "mat-option", 5, 6);
|
|
2965
|
+
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)); });
|
|
3062
2966
|
i0.ɵɵtext(9);
|
|
3063
2967
|
i0.ɵɵpipe(10, "translate");
|
|
3064
2968
|
i0.ɵɵelementEnd();
|
|
3065
2969
|
i0.ɵɵelement(11, "mat-divider");
|
|
3066
2970
|
i0.ɵɵtemplate(12, AdvancedSwipeComponent_div_0_mat_option_12_Template, 2, 2, "mat-option", 7);
|
|
3067
|
-
i0.ɵɵelementEnd();
|
|
3068
|
-
i0.ɵɵelementEnd();
|
|
3069
|
-
i0.ɵɵelementEnd();
|
|
2971
|
+
i0.ɵɵelementEnd()()();
|
|
3070
2972
|
i0.ɵɵelementStart(13, "mat-slide-toggle", 8);
|
|
3071
|
-
i0.ɵɵlistener("change", function AdvancedSwipeComponent_div_0_Template_mat_slide_toggle_change_13_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.startSwipe($event.checked); });
|
|
2973
|
+
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)); });
|
|
3072
2974
|
i0.ɵɵtext(14);
|
|
3073
2975
|
i0.ɵɵpipe(15, "translate");
|
|
3074
|
-
i0.ɵɵelementEnd();
|
|
3075
|
-
i0.ɵɵelementEnd();
|
|
2976
|
+
i0.ɵɵelementEnd()();
|
|
3076
2977
|
} if (rf & 2) {
|
|
3077
2978
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3078
2979
|
i0.ɵɵadvance(1);
|
|
@@ -3092,8 +2993,7 @@ function AdvancedSwipeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
3092
2993
|
} }
|
|
3093
2994
|
function AdvancedSwipeComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
3094
2995
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
3095
|
-
i0.ɵɵelementStart(0, "mat-list");
|
|
3096
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
2996
|
+
i0.ɵɵelementStart(0, "mat-list")(1, "p", 9);
|
|
3097
2997
|
i0.ɵɵtext(2);
|
|
3098
2998
|
i0.ɵɵpipe(3, "translate");
|
|
3099
2999
|
i0.ɵɵelementEnd();
|
|
@@ -3104,28 +3004,24 @@ function AdvancedSwipeComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
3104
3004
|
i0.ɵɵelementStart(7, "mat-list-item");
|
|
3105
3005
|
i0.ɵɵelement(8, "mat-icon", 10);
|
|
3106
3006
|
i0.ɵɵelementStart(9, "h4", 11);
|
|
3107
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_9_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.searchEmit(); });
|
|
3007
|
+
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()); });
|
|
3108
3008
|
i0.ɵɵtext(10);
|
|
3109
3009
|
i0.ɵɵpipe(11, "translate");
|
|
3110
|
-
i0.ɵɵelementEnd();
|
|
3111
|
-
i0.ɵɵelementEnd();
|
|
3010
|
+
i0.ɵɵelementEnd()();
|
|
3112
3011
|
i0.ɵɵelementStart(12, "mat-list-item");
|
|
3113
3012
|
i0.ɵɵelement(13, "mat-icon", 12);
|
|
3114
3013
|
i0.ɵɵelementStart(14, "h4", 13);
|
|
3115
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_14_listener() { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.catalogEmit(); });
|
|
3014
|
+
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()); });
|
|
3116
3015
|
i0.ɵɵtext(15);
|
|
3117
3016
|
i0.ɵɵpipe(16, "translate");
|
|
3118
|
-
i0.ɵɵelementEnd();
|
|
3119
|
-
i0.ɵɵelementEnd();
|
|
3017
|
+
i0.ɵɵelementEnd()();
|
|
3120
3018
|
i0.ɵɵelementStart(17, "mat-list-item");
|
|
3121
3019
|
i0.ɵɵelement(18, "mat-icon", 14);
|
|
3122
3020
|
i0.ɵɵelementStart(19, "h4", 15);
|
|
3123
|
-
i0.ɵɵlistener("click", function AdvancedSwipeComponent_ng_template_1_Template_h4_click_19_listener() { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.contextEmit(); });
|
|
3021
|
+
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()); });
|
|
3124
3022
|
i0.ɵɵtext(20);
|
|
3125
3023
|
i0.ɵɵpipe(21, "translate");
|
|
3126
|
-
i0.ɵɵelementEnd();
|
|
3127
|
-
i0.ɵɵelementEnd();
|
|
3128
|
-
i0.ɵɵelementEnd();
|
|
3024
|
+
i0.ɵɵelementEnd()()();
|
|
3129
3025
|
} if (rf & 2) {
|
|
3130
3026
|
i0.ɵɵadvance(2);
|
|
3131
3027
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "igo.integration.advanced-map-tool.advanced-swipe.empty"), "");
|
|
@@ -3236,22 +3132,18 @@ class AdvancedSwipeComponent {
|
|
|
3236
3132
|
this.toolState.toolbox.activateTool('contextManager');
|
|
3237
3133
|
}
|
|
3238
3134
|
}
|
|
3239
|
-
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i3
|
|
3135
|
+
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i3.UntypedFormBuilder), i0.ɵɵdirectiveInject(ToolState)); };
|
|
3240
3136
|
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) {
|
|
3241
3137
|
i0.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
|
|
3242
3138
|
i0.ɵɵtemplate(1, AdvancedSwipeComponent_ng_template_1_Template, 22, 15, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
3243
3139
|
} if (rf & 2) {
|
|
3244
3140
|
const _r1 = i0.ɵɵreference(2);
|
|
3245
3141
|
i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
3246
|
-
} },
|
|
3142
|
+
} }, dependencies: [i3.ɵNgNoValidate, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i5$1.MatDivider, i6$2.MatFormField, i6$2.MatLabel, i7$2.MatSelect, i8$1.MatOption, i6.NgForOf, i6.NgIf, i6$1.MatList, i6$1.MatListItem, i8$1.MatLine, i6$1.MatListIconCssMatStyler, i7.MatIcon, i12.MatSlideToggle, i8.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}"] });
|
|
3247
3143
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
3248
3144
|
type: Component,
|
|
3249
|
-
args: [{
|
|
3250
|
-
|
|
3251
|
-
templateUrl: './advanced-swipe.component.html',
|
|
3252
|
-
styleUrls: ['./advanced-swipe.component.scss']
|
|
3253
|
-
}]
|
|
3254
|
-
}], function () { return [{ type: MapState }, { type: i1.ContextService }, { type: i3$1.FormBuilder }, { type: ToolState }]; }, null); })();
|
|
3145
|
+
args: [{ selector: 'igo-advanced-swipe', template: "<div *ngIf=\"userControlledLayerList.length; else noLayersBlock\" class=\"igo-swipe-select-container\">\r\n <form class=\"igo-form\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'igo.integration.advanced-map-tool.advanced-swipe.swipe-select' | translate}}</mat-label>\r\n <mat-select formControlName=\"layers\" multiple>\r\n <mat-option [value]=\"1\" (click)=\"selectAll(e)\" #e>\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.selectAll' | translate}}\r\n </mat-option>\r\n <mat-divider></mat-divider>\r\n <mat-option *ngFor=\"let layer of userControlledLayerList\" [value]=\"layer\" (click)=\"applyNewLayers(e)\">{{layer.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n\r\n <mat-slide-toggle class=\"swipe-toggle mat-typography\"\r\n [checked]=\"swipe\"\r\n [labelPosition]=\"'before'\"\r\n (change)=\"startSwipe($event.checked)\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.swipe' | translate}}\r\n </mat-slide-toggle> \r\n</div>\r\n\r\n<ng-template #noLayersBlock>\r\n <mat-list>\r\n <p class=\"map-empty mat-typography\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.empty' | translate}}</p>\r\n <p class=\"map-empty mat-typography\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.customize' | translate}}</p>\r\n <mat-list-item>\r\n <mat-icon mat-list-icon svgIcon=\"magnify\"></mat-icon>\r\n <h4 matLine class=\"search-tool mat-typography\" (click)=\"searchEmit()\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.search-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item>\r\n <mat-icon mat-list-icon svgIcon=\"layers-plus\"></mat-icon>\r\n <h4 matLine class=\"catalog-tool mat-typography\" (click)=\"catalogEmit()\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.catalog-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n <mat-list-item>\r\n <mat-icon mat-list-icon svgIcon=\"star\"></mat-icon>\r\n <h4 matLine class=\"context-tool mat-typography\" (click)=\"contextEmit()\">\r\n {{'igo.integration.advanced-map-tool.advanced-swipe.context-tool' | translate}}\r\n </h4>\r\n </mat-list-item>\r\n </mat-list>\r\n</ng-template>\r\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"] }]
|
|
3146
|
+
}], function () { return [{ type: MapState }, { type: i1.ContextService }, { type: i3.UntypedFormBuilder }, { type: ToolState }]; }, null); })();
|
|
3255
3147
|
|
|
3256
3148
|
function AdvancedCoordinatesComponent_mat_form_field_0_Template(rf, ctx) { if (rf & 1) {
|
|
3257
3149
|
i0.ɵɵelementStart(0, "mat-form-field", 12);
|
|
@@ -3611,7 +3503,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3611
3503
|
let modifiedProj = this.projections$.value;
|
|
3612
3504
|
const extent = projection.extent;
|
|
3613
3505
|
const code = projection.code.match(/\d+/);
|
|
3614
|
-
const currentExtentWGS =
|
|
3506
|
+
const currentExtentWGS = olProj.transformExtent(extent, projection.code, this.defaultProj.code);
|
|
3615
3507
|
if (coordinates[0] < currentExtentWGS[0] || coordinates[0] > currentExtentWGS[2] ||
|
|
3616
3508
|
coordinates[1] < currentExtentWGS[1] || coordinates[1] > currentExtentWGS[3]) {
|
|
3617
3509
|
this.inLambert2[code] = false;
|
|
@@ -3630,7 +3522,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3630
3522
|
});
|
|
3631
3523
|
}
|
|
3632
3524
|
}
|
|
3633
|
-
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2
|
|
3525
|
+
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.LanguageService), i0.ɵɵdirectiveInject(i2.MessageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2.StorageService), i0.ɵɵdirectiveInject(i2.ConfigService), i0.ɵɵdirectiveInject(i3.UntypedFormBuilder)); };
|
|
3634
3526
|
AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls: 32, vars: 37, consts: [["class", "coordinates", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["class", "coordinates2", 4, "ngIf", "ngIfElse"], ["elseBlock2", ""], ["mat-raised-button", "", 1, "igo-form-button-group", 3, "click"], ["svgIcon", "content-copy"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], ["matTooltipShowDelay", "500", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "center-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "igo-zoom", "mat-typography"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["matTooltipShowDelay", "500", 3, "value", "click"]], template: function AdvancedCoordinatesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3635
3527
|
i0.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
|
|
3636
3528
|
i0.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -3642,9 +3534,7 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3642
3534
|
i0.ɵɵtext(8);
|
|
3643
3535
|
i0.ɵɵpipe(9, "translate");
|
|
3644
3536
|
i0.ɵɵelementEnd();
|
|
3645
|
-
i0.ɵɵelementStart(10, "form", 6);
|
|
3646
|
-
i0.ɵɵelementStart(11, "mat-form-field", 7);
|
|
3647
|
-
i0.ɵɵelementStart(12, "mat-label");
|
|
3537
|
+
i0.ɵɵelementStart(10, "form", 6)(11, "mat-form-field", 7)(12, "mat-label");
|
|
3648
3538
|
i0.ɵɵtext(13);
|
|
3649
3539
|
i0.ɵɵpipe(14, "translate");
|
|
3650
3540
|
i0.ɵɵelementEnd();
|
|
@@ -3652,14 +3542,12 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3652
3542
|
i0.ɵɵlistener("valueChange", function AdvancedCoordinatesComponent_Template_mat_select_valueChange_15_listener($event) { return ctx.inputProj = $event; });
|
|
3653
3543
|
i0.ɵɵtemplate(16, AdvancedCoordinatesComponent_mat_option_16_Template, 2, 2, "mat-option", 9);
|
|
3654
3544
|
i0.ɵɵpipe(17, "async");
|
|
3655
|
-
i0.ɵɵelementEnd();
|
|
3656
|
-
i0.ɵɵelementEnd();
|
|
3545
|
+
i0.ɵɵelementEnd()();
|
|
3657
3546
|
i0.ɵɵelementStart(18, "mat-slide-toggle", 10);
|
|
3658
3547
|
i0.ɵɵlistener("change", function AdvancedCoordinatesComponent_Template_mat_slide_toggle_change_18_listener($event) { return ctx.displayCenter($event.checked); });
|
|
3659
3548
|
i0.ɵɵtext(19);
|
|
3660
3549
|
i0.ɵɵpipe(20, "translate");
|
|
3661
|
-
i0.ɵɵelementEnd();
|
|
3662
|
-
i0.ɵɵelementEnd();
|
|
3550
|
+
i0.ɵɵelementEnd()();
|
|
3663
3551
|
i0.ɵɵelementStart(21, "p", 11);
|
|
3664
3552
|
i0.ɵɵtext(22);
|
|
3665
3553
|
i0.ɵɵpipe(23, "translate");
|
|
@@ -3700,40 +3588,76 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3700
3588
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
|
|
3701
3589
|
i0.ɵɵadvance(4);
|
|
3702
3590
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
|
|
3703
|
-
} },
|
|
3591
|
+
} }, dependencies: [i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, i6$2.MatFormField, i6$2.MatLabel, i7$2.MatSelect, i8$1.MatOption, i7$3.MatInput, i6.NgForOf, i6.NgIf, i7.MatIcon, i12.MatSlideToggle, i10.MatButton, i6.AsyncPipe, i6.DecimalPipe, i8.TranslatePipe], styles: ["textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:120px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:120px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.igo-form-button-group[_ngcontent-%COMP%]{padding:0 10px;margin:0 10px}.center-toggle[_ngcontent-%COMP%]{padding:10px 15px 35px}mat-slide-toggle[_ngcontent-%COMP%]{font-size:small}.igo-zoom[_ngcontent-%COMP%]{padding:0 15px}"] });
|
|
3704
3592
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
|
|
3705
3593
|
type: Component,
|
|
3706
|
-
args: [{
|
|
3707
|
-
|
|
3708
|
-
templateUrl: './advanced-coordinates.component.html',
|
|
3709
|
-
styleUrls: ['./advanced-coordinates.component.scss']
|
|
3710
|
-
}]
|
|
3711
|
-
}], function () { return [{ type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i0.ChangeDetectorRef }, { type: i2$1.StorageService }, { type: i2$1.ConfigService }, { type: i3$1.FormBuilder }]; }, { projectionsLimitations: [{
|
|
3594
|
+
args: [{ selector: 'igo-advanced-coordinates', template: "<mat-form-field *ngIf=\"units; else elseBlock\" class=\"coordinates\">\r\n <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.advanced-map-tool.advanced-coordinates.lon' | translate\"\r\n [value]=\"coordinates[0]\"></textarea>\r\n</mat-form-field>\r\n<ng-template #elseBlock >\r\n <mat-form-field class=\"coordinates\">\r\n <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.advanced-map-tool.advanced-coordinates.est' | translate\"\r\n [value]=\"coordinates[0]\"></textarea></mat-form-field>\r\n</ng-template>\r\n\r\n<mat-form-field *ngIf=\"units; else elseBlock2\" class=\"coordinates2\">\r\n <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.advanced-map-tool.advanced-coordinates.lat' | translate\"\r\n [value]=\"coordinates[1]\"></textarea>\r\n</mat-form-field>\r\n<ng-template #elseBlock2 >\r\n <mat-form-field class=\"coordinates2\"> <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.advanced-map-tool.advanced-coordinates.nord' | translate\"\r\n [value]=\"coordinates[1]\"></textarea></mat-form-field>\r\n</ng-template>\r\n\r\n<button class=\"igo-form-button-group\"\r\n mat-raised-button\r\n (click)=\"copyTextToClipboard()\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n {{ 'igo.integration.advanced-map-tool.advanced-coordinates.copy' | translate }}\r\n</button>\r\n\r\n<form class=\"igo-form\" [formGroup]=\"form\">\r\n <mat-form-field class=\"igo-input-container\">\r\n <mat-label>{{'igo.integration.advanced-map-tool.advanced-coordinates.coordSystem' | translate}}</mat-label>\r\n <mat-select [(value)]=\"inputProj\">\r\n <mat-option matTooltipShowDelay=\"500\"\r\n *ngFor=\"let projection of (projections$ | async)\"\r\n [value]=\"projection\"\r\n (click)=\"$event.stopPropagation()\">\r\n {{projection.translatedValue || projection.alias }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <mat-slide-toggle class=\"center-toggle mat-typography\"\r\n [checked]=\"center\"\r\n [labelPosition]=\"'before'\"\r\n (change)=\"displayCenter($event.checked)\">\r\n {{'igo.integration.advanced-map-tool.advanced-coordinates.center' | translate}}\r\n </mat-slide-toggle> \r\n</form>\r\n\r\n<p class=\"igo-zoom mat-typography\">{{'igo.integration.advanced-map-tool.advanced-coordinates.zoom' | translate}} {{map.viewController.getZoom() }}</p>\r\n<p class=\"igo-zoom mat-typography\">{{'igo.integration.advanced-map-tool.advanced-coordinates.scale' | translate}} {{ formattedScale$ | async }}</p>\r\n<p class=\"igo-zoom mat-typography\">{{'igo.integration.advanced-map-tool.advanced-coordinates.resolution' | translate}} {{map.viewController.getResolution() | number: '1.0-0' }}</p>", styles: ["textarea{resize:none}mat-form-field{padding:10px 15px}mat-form-field.coordinates{width:120px}mat-form-field.coordinates2{width:120px;padding:0 10px 0 3px}mat-form-field.igo-input-container{width:60%;padding:0 15px}.igo-form-button-group{padding:0 10px;margin:0 10px}.center-toggle{padding:10px 15px 35px}mat-slide-toggle{font-size:small}.igo-zoom{padding:0 15px}\n"] }]
|
|
3595
|
+
}], function () { return [{ type: MapState }, { type: i2.LanguageService }, { type: i2.MessageService }, { type: i0.ChangeDetectorRef }, { type: i2.StorageService }, { type: i2.ConfigService }, { type: i3.UntypedFormBuilder }]; }, { projectionsLimitations: [{
|
|
3712
3596
|
type: Input
|
|
3713
3597
|
}] }); })();
|
|
3714
3598
|
|
|
3715
3599
|
let AdvancedMapToolComponent = class AdvancedMapToolComponent {
|
|
3600
|
+
constructor(mapState) {
|
|
3601
|
+
this.mapState = mapState;
|
|
3602
|
+
}
|
|
3603
|
+
get tracking$() {
|
|
3604
|
+
return this.mapState.map.geolocationController.tracking$;
|
|
3605
|
+
}
|
|
3606
|
+
get followPosition$() {
|
|
3607
|
+
return this.mapState.map.geolocationController.followPosition$;
|
|
3608
|
+
}
|
|
3609
|
+
toggleTracking(value) {
|
|
3610
|
+
this.mapState.map.geolocationController.tracking = value;
|
|
3611
|
+
}
|
|
3612
|
+
toggleFollow(value) {
|
|
3613
|
+
this.mapState.map.geolocationController.followPosition = value;
|
|
3614
|
+
}
|
|
3716
3615
|
};
|
|
3717
|
-
AdvancedMapToolComponent.ɵfac = function AdvancedMapToolComponent_Factory(t) { return new (t || AdvancedMapToolComponent)(); };
|
|
3718
|
-
AdvancedMapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedMapToolComponent, selectors: [["igo-advanced-map-tool"]], decls:
|
|
3616
|
+
AdvancedMapToolComponent.ɵfac = function AdvancedMapToolComponent_Factory(t) { return new (t || AdvancedMapToolComponent)(i0.ɵɵdirectiveInject(MapState)); };
|
|
3617
|
+
AdvancedMapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedMapToolComponent, selectors: [["igo-advanced-map-tool"]], decls: 24, vars: 26, consts: [[1, "nameOfTool"], [1, "advanced-tool-line"], [1, "igo-input-container"], [1, "geolocation-slide-toggle-container", "mat-typography"], [1, "geolocation-option", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "geolocation-option", "mat-typography", 3, "disabled", "checked", "labelPosition", "change"]], template: function AdvancedMapToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3719
3618
|
i0.ɵɵelementStart(0, "h4", 0);
|
|
3720
3619
|
i0.ɵɵtext(1);
|
|
3721
3620
|
i0.ɵɵpipe(2, "translate");
|
|
3722
3621
|
i0.ɵɵelementEnd();
|
|
3723
|
-
i0.ɵɵelement(3, "igo-advanced-swipe");
|
|
3724
|
-
i0.ɵɵelement(4, "mat-divider", 1);
|
|
3622
|
+
i0.ɵɵelement(3, "igo-advanced-swipe")(4, "mat-divider", 1);
|
|
3725
3623
|
i0.ɵɵelementStart(5, "h4", 0);
|
|
3726
3624
|
i0.ɵɵtext(6);
|
|
3727
3625
|
i0.ɵɵpipe(7, "translate");
|
|
3728
3626
|
i0.ɵɵelementEnd();
|
|
3729
|
-
i0.ɵɵelement(8, "igo-advanced-coordinates");
|
|
3730
|
-
i0.ɵɵ
|
|
3627
|
+
i0.ɵɵelement(8, "igo-advanced-coordinates")(9, "mat-divider", 1);
|
|
3628
|
+
i0.ɵɵelementStart(10, "h4", 0);
|
|
3629
|
+
i0.ɵɵtext(11);
|
|
3630
|
+
i0.ɵɵpipe(12, "translate");
|
|
3631
|
+
i0.ɵɵelementEnd();
|
|
3632
|
+
i0.ɵɵelementStart(13, "div", 2)(14, "div", 3)(15, "mat-slide-toggle", 4);
|
|
3633
|
+
i0.ɵɵlistener("change", function AdvancedMapToolComponent_Template_mat_slide_toggle_change_15_listener($event) { return ctx.toggleTracking($event.checked); });
|
|
3634
|
+
i0.ɵɵpipe(16, "async");
|
|
3635
|
+
i0.ɵɵtext(17);
|
|
3636
|
+
i0.ɵɵpipe(18, "translate");
|
|
3637
|
+
i0.ɵɵelementEnd();
|
|
3638
|
+
i0.ɵɵelementStart(19, "mat-slide-toggle", 5);
|
|
3639
|
+
i0.ɵɵlistener("change", function AdvancedMapToolComponent_Template_mat_slide_toggle_change_19_listener($event) { return ctx.toggleFollow($event.checked); });
|
|
3640
|
+
i0.ɵɵpipe(20, "async");
|
|
3641
|
+
i0.ɵɵpipe(21, "async");
|
|
3642
|
+
i0.ɵɵtext(22);
|
|
3643
|
+
i0.ɵɵpipe(23, "translate");
|
|
3644
|
+
i0.ɵɵelementEnd()()();
|
|
3731
3645
|
} if (rf & 2) {
|
|
3732
3646
|
i0.ɵɵadvance(1);
|
|
3733
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
3647
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 10, "igo.integration.advanced-map-tool.advanced-swipe.swipe-tool"));
|
|
3648
|
+
i0.ɵɵadvance(5);
|
|
3649
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 12, "igo.integration.advanced-map-tool.advanced-coordinates.coordinates"));
|
|
3734
3650
|
i0.ɵɵadvance(5);
|
|
3735
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
3736
|
-
|
|
3651
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 14, "igo.integration.advanced-map-tool.geolocation.title"));
|
|
3652
|
+
i0.ɵɵadvance(4);
|
|
3653
|
+
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(16, 16, ctx.tracking$))("labelPosition", "before");
|
|
3654
|
+
i0.ɵɵadvance(2);
|
|
3655
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 18, "igo.integration.advanced-map-tool.geolocation.tracking"), " ");
|
|
3656
|
+
i0.ɵɵadvance(2);
|
|
3657
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpipeBind1(20, 20, ctx.tracking$) !== true)("checked", i0.ɵɵpipeBind1(21, 22, ctx.followPosition$))("labelPosition", "before");
|
|
3658
|
+
i0.ɵɵadvance(3);
|
|
3659
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 24, "igo.integration.advanced-map-tool.geolocation.follow"), " ");
|
|
3660
|
+
} }, dependencies: [i5$1.MatDivider, i12.MatSlideToggle, AdvancedSwipeComponent, AdvancedCoordinatesComponent, i6.AsyncPipe, i8.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}.geolocation-slide-toggle-container[_ngcontent-%COMP%]{overflow-x:hidden}.geolocation-slide-toggle-container[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%]{width:100%;margin:10px}.geolocation-slide-toggle-container[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 60px)}.geolocation-option[_ngcontent-%COMP%]{display:block;margin-right:10px;margin-bottom:15px}"] });
|
|
3737
3661
|
AdvancedMapToolComponent = __decorate([
|
|
3738
3662
|
ToolComponent({
|
|
3739
3663
|
name: 'advancedMap',
|
|
@@ -3746,12 +3670,348 @@ AdvancedMapToolComponent = __decorate([
|
|
|
3746
3670
|
], AdvancedMapToolComponent);
|
|
3747
3671
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedMapToolComponent, [{
|
|
3748
3672
|
type: Component,
|
|
3673
|
+
args: [{ selector: 'igo-advanced-map-tool', template: "<h4 class=\"nameOfTool\">{{'igo.integration.advanced-map-tool.advanced-swipe.swipe-tool' | translate}}</h4>\r\n<igo-advanced-swipe></igo-advanced-swipe>\r\n<mat-divider class=\"advanced-tool-line\"></mat-divider>\r\n\r\n<h4 class=\"nameOfTool\">{{'igo.integration.advanced-map-tool.advanced-coordinates.coordinates' | translate}}</h4>\r\n<igo-advanced-coordinates></igo-advanced-coordinates>\r\n<mat-divider class=\"advanced-tool-line\"></mat-divider>\r\n\r\n<h4 class=\"nameOfTool\">{{'igo.integration.advanced-map-tool.geolocation.title' | translate}}</h4>\r\n\r\n<div class=\"igo-input-container\">\r\n <div class=\"geolocation-slide-toggle-container mat-typography\">\r\n <mat-slide-toggle \r\n class=\"geolocation-option mat-typography\"\r\n [checked]=\"tracking$ | async\"\r\n [labelPosition]=\"'before'\"\r\n (change)=\"toggleTracking($event.checked)\">\r\n {{'igo.integration.advanced-map-tool.geolocation.tracking' | translate}}\r\n </mat-slide-toggle>\r\n\r\n <mat-slide-toggle\r\n class=\"geolocation-option mat-typography\"\r\n [disabled]=\"(tracking$ | async) !== true\"\r\n [checked]=\"followPosition$ | async\"\r\n [labelPosition]=\"'before'\"\r\n (change)=\"toggleFollow($event.checked)\">\r\n {{'igo.integration.advanced-map-tool.geolocation.follow' | translate}}\r\n </mat-slide-toggle>\r\n </div>\r\n</div>", styles: [".nameOfTool{text-align:center;font-weight:700;font-size:small;margin:15px 10px 0}.advanced-tool-line{height:2px;background-color:gray}.geolocation-slide-toggle-container{overflow-x:hidden}.geolocation-slide-toggle-container mat-slide-toggle{width:100%;margin:10px}.geolocation-slide-toggle-container mat-slide-toggle ::ng-deep .mat-slide-toggle-content{width:calc(100% - 60px)}.geolocation-option{display:block;margin-right:10px;margin-bottom:15px}\n"] }]
|
|
3674
|
+
}], function () { return [{ type: MapState }]; }, null); })();
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* Service that holds the state of the direction module
|
|
3678
|
+
*/
|
|
3679
|
+
class MapProximityState {
|
|
3680
|
+
constructor(mapState) {
|
|
3681
|
+
this.mapState = mapState;
|
|
3682
|
+
this.enabled$ = new BehaviorSubject(false);
|
|
3683
|
+
this.proximityRadiusValue$ = new BehaviorSubject(30);
|
|
3684
|
+
this.proximitylocationType$ = new BehaviorSubject('geolocation');
|
|
3685
|
+
this.proximityFeatureStore = new FeatureStore([], { map: this.mapState.map });
|
|
3686
|
+
this.subs$$ = [];
|
|
3687
|
+
this.currentPositionCoordinate$ = new BehaviorSubject(undefined);
|
|
3688
|
+
this.mapState.map.ol.once('rendercomplete', () => {
|
|
3689
|
+
this.subscribeProximityMonitor();
|
|
3690
|
+
});
|
|
3691
|
+
}
|
|
3692
|
+
get map() {
|
|
3693
|
+
return this.mapState.map;
|
|
3694
|
+
}
|
|
3695
|
+
subscribeProximityMonitor() {
|
|
3696
|
+
this.subs$$.push(combineLatest([
|
|
3697
|
+
this.enabled$,
|
|
3698
|
+
this.proximitylocationType$,
|
|
3699
|
+
this.proximityRadiusValue$,
|
|
3700
|
+
interval(5000),
|
|
3701
|
+
this.map.geolocationController.position$
|
|
3702
|
+
])
|
|
3703
|
+
.pipe(debounceTime(750))
|
|
3704
|
+
.subscribe((bunch) => {
|
|
3705
|
+
this.proximityFeatureStore.clear();
|
|
3706
|
+
const enabled = bunch[0];
|
|
3707
|
+
const layers = this.map.layers;
|
|
3708
|
+
const currentPos = this.map.geolocationController.position$.value;
|
|
3709
|
+
const locationType = bunch[1];
|
|
3710
|
+
const proximityRadiusValue = bunch[2];
|
|
3711
|
+
if (!enabled) {
|
|
3712
|
+
return;
|
|
3713
|
+
}
|
|
3714
|
+
let coord;
|
|
3715
|
+
if (locationType === 'geolocation') {
|
|
3716
|
+
if (!currentPos || !currentPos.position) {
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
coord = olProj.transform(currentPos.position, currentPos.projection, this.map.projection);
|
|
3720
|
+
this.map.mapCenter$.next(false);
|
|
3721
|
+
}
|
|
3722
|
+
else {
|
|
3723
|
+
coord = this.map.viewController.getCenter();
|
|
3724
|
+
;
|
|
3725
|
+
this.map.mapCenter$.next(true);
|
|
3726
|
+
}
|
|
3727
|
+
const coordLonLat = olProj.transform(coord, this.map.projection, 'EPSG:4269');
|
|
3728
|
+
const roundedCoordLonLat = roundCoordTo(coordLonLat, 6);
|
|
3729
|
+
this.currentPositionCoordinate$.next(roundedCoordLonLat);
|
|
3730
|
+
const layersToMonitor = layers
|
|
3731
|
+
.filter(layer => layer.ol instanceof olLayerVector &&
|
|
3732
|
+
layer.dataSource.options.queryable &&
|
|
3733
|
+
layer.visible &&
|
|
3734
|
+
layer.isInResolutionsRange);
|
|
3735
|
+
layersToMonitor.map(layerToMonitor => {
|
|
3736
|
+
const layerSource = layerToMonitor.ol.getSource();
|
|
3737
|
+
// Mostly for polygon features.
|
|
3738
|
+
const olFeaturesAtCoordinate = layerSource.getFeaturesAtCoordinate(coord);
|
|
3739
|
+
if (olFeaturesAtCoordinate && olFeaturesAtCoordinate.length) {
|
|
3740
|
+
olFeaturesAtCoordinate.map(olFeatureAtCoordinate => {
|
|
3741
|
+
const featureAtThisPosition = featureFromOl(olFeatureAtCoordinate, this.map.projection);
|
|
3742
|
+
let title = this.getQueryTitle(featureAtThisPosition, layerToMonitor);
|
|
3743
|
+
// todo handle imported layers without querytitle? prompt title or detect first column?
|
|
3744
|
+
this.addFeatureToStore(layerToMonitor, coord, featureAtThisPosition, title, 0);
|
|
3745
|
+
});
|
|
3746
|
+
}
|
|
3747
|
+
else {
|
|
3748
|
+
// compute proximity for remaining sources
|
|
3749
|
+
const closestOlFeature = layerSource.getClosestFeatureToCoordinate(coord);
|
|
3750
|
+
if (closestOlFeature) {
|
|
3751
|
+
const closestOlGeom = closestOlFeature.getGeometry();
|
|
3752
|
+
const closestFeature = featureFromOl(closestOlFeature, this.map.projection);
|
|
3753
|
+
const geometryClosestPoint = closestOlGeom.getClosestPoint(coord);
|
|
3754
|
+
const linebetween = new olLineString([coord, geometryClosestPoint]);
|
|
3755
|
+
const lineLength = measureOlGeometryLength(linebetween, 'EPSG:3857');
|
|
3756
|
+
if (lineLength <= proximityRadiusValue) {
|
|
3757
|
+
let title = this.getQueryTitle(closestFeature, layerToMonitor);
|
|
3758
|
+
// todo handle imported layers without querytitle? prompt title or detect first column?
|
|
3759
|
+
this.addFeatureToStore(layerToMonitor, coord, closestFeature, title, lineLength);
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
});
|
|
3764
|
+
}));
|
|
3765
|
+
}
|
|
3766
|
+
/**
|
|
3767
|
+
* Add a feature with proximity properties to the store
|
|
3768
|
+
* @internal
|
|
3769
|
+
*/
|
|
3770
|
+
addFeatureToStore(layer, coordFromCalculatedDistance, feature, title, distance) {
|
|
3771
|
+
const featureId = uuid();
|
|
3772
|
+
const projection = this.map.ol.getView().getProjection();
|
|
3773
|
+
const olGeometry = feature.ol.getGeometry();
|
|
3774
|
+
const geometry = new olFormatGeoJSON().writeGeometryObject(olGeometry, {
|
|
3775
|
+
featureProjection: projection,
|
|
3776
|
+
dataProjection: projection
|
|
3777
|
+
});
|
|
3778
|
+
this.proximityFeatureStore.update({
|
|
3779
|
+
type: FEATURE,
|
|
3780
|
+
geometry,
|
|
3781
|
+
projection: projection.getCode(),
|
|
3782
|
+
properties: { ...feature.properties, ...{
|
|
3783
|
+
id: featureId,
|
|
3784
|
+
element: title,
|
|
3785
|
+
distance,
|
|
3786
|
+
coordFromCalculatedDistance,
|
|
3787
|
+
layerSrcId: layer.id,
|
|
3788
|
+
layerSrcTitle: layer.title
|
|
3789
|
+
} },
|
|
3790
|
+
meta: {
|
|
3791
|
+
id: featureId
|
|
3792
|
+
}
|
|
3793
|
+
});
|
|
3794
|
+
}
|
|
3795
|
+
getQueryTitle(feature, layer) {
|
|
3796
|
+
let title;
|
|
3797
|
+
if (layer.options?.source?.options) {
|
|
3798
|
+
const dataSourceOptions = layer.options.source
|
|
3799
|
+
.options;
|
|
3800
|
+
if (dataSourceOptions.queryTitle) {
|
|
3801
|
+
title = this.getLabelMatch(feature, dataSourceOptions.queryTitle);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
return title;
|
|
3805
|
+
}
|
|
3806
|
+
getLabelMatch(feature, labelMatch) {
|
|
3807
|
+
let label = labelMatch;
|
|
3808
|
+
const labelToGet = Array.from(labelMatch.matchAll(/\$\{([^\{\}]+)\}/g));
|
|
3809
|
+
labelToGet.forEach(v => {
|
|
3810
|
+
label = label.replace(v[0], feature.properties[v[1]]);
|
|
3811
|
+
});
|
|
3812
|
+
// Nothing done? check feature's attribute
|
|
3813
|
+
if (labelToGet.length === 0 && label === labelMatch) {
|
|
3814
|
+
label = feature.properties[labelMatch] || labelMatch;
|
|
3815
|
+
}
|
|
3816
|
+
return label;
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
MapProximityState.ɵfac = function MapProximityState_Factory(t) { return new (t || MapProximityState)(i0.ɵɵinject(MapState)); };
|
|
3820
|
+
MapProximityState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MapProximityState, factory: MapProximityState.ɵfac, providedIn: 'root' });
|
|
3821
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapProximityState, [{
|
|
3822
|
+
type: Injectable,
|
|
3749
3823
|
args: [{
|
|
3750
|
-
|
|
3751
|
-
templateUrl: './advanced-map-tool.component.html',
|
|
3752
|
-
styleUrls: ['./advanced-map-tool.component.scss']
|
|
3824
|
+
providedIn: 'root'
|
|
3753
3825
|
}]
|
|
3754
|
-
}],
|
|
3826
|
+
}], function () { return [{ type: MapState }]; }, null); })();
|
|
3827
|
+
|
|
3828
|
+
const _c0$1 = ["table"];
|
|
3829
|
+
function MapProximityToolComponent_mat_form_field_3_Template(rf, ctx) { if (rf & 1) {
|
|
3830
|
+
i0.ɵɵelementStart(0, "mat-form-field", 14);
|
|
3831
|
+
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
3832
|
+
i0.ɵɵpipe(3, "translate");
|
|
3833
|
+
i0.ɵɵelementEnd();
|
|
3834
|
+
} if (rf & 2) {
|
|
3835
|
+
const coord_r4 = ctx.ngIf;
|
|
3836
|
+
i0.ɵɵadvance(1);
|
|
3837
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lon"))("value", coord_r4[0]);
|
|
3838
|
+
} }
|
|
3839
|
+
function MapProximityToolComponent_mat_form_field_5_Template(rf, ctx) { if (rf & 1) {
|
|
3840
|
+
i0.ɵɵelementStart(0, "mat-form-field", 17);
|
|
3841
|
+
i0.ɵɵelement(1, "textarea", 15, 16);
|
|
3842
|
+
i0.ɵɵpipe(3, "translate");
|
|
3843
|
+
i0.ɵɵelementEnd();
|
|
3844
|
+
} if (rf & 2) {
|
|
3845
|
+
const coord2_r6 = ctx.ngIf;
|
|
3846
|
+
i0.ɵɵadvance(1);
|
|
3847
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lat"))("value", coord2_r6[1]);
|
|
3848
|
+
} }
|
|
3849
|
+
function MapProximityToolComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
3850
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
3851
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
3852
|
+
i0.ɵɵlistener("click", function MapProximityToolComponent_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.copyTextToClipboard()); });
|
|
3853
|
+
i0.ɵɵelement(1, "mat-icon", 19);
|
|
3854
|
+
i0.ɵɵelementEnd();
|
|
3855
|
+
} }
|
|
3856
|
+
let MapProximityToolComponent = class MapProximityToolComponent {
|
|
3857
|
+
constructor(mapState, mapProximityState, languageService, messageService) {
|
|
3858
|
+
this.mapState = mapState;
|
|
3859
|
+
this.mapProximityState = mapProximityState;
|
|
3860
|
+
this.languageService = languageService;
|
|
3861
|
+
this.messageService = messageService;
|
|
3862
|
+
this.subs$$ = [];
|
|
3863
|
+
/**
|
|
3864
|
+
* Table template
|
|
3865
|
+
* @internal
|
|
3866
|
+
*/
|
|
3867
|
+
this.tableTemplate = {
|
|
3868
|
+
selection: true,
|
|
3869
|
+
selectMany: false,
|
|
3870
|
+
selectionCheckbox: false,
|
|
3871
|
+
sort: true,
|
|
3872
|
+
columns: [
|
|
3873
|
+
{
|
|
3874
|
+
name: 'element',
|
|
3875
|
+
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.feature'),
|
|
3876
|
+
valueAccessor: (localFeature) => {
|
|
3877
|
+
return localFeature.properties.element;
|
|
3878
|
+
}
|
|
3879
|
+
},
|
|
3880
|
+
{
|
|
3881
|
+
name: 'distance',
|
|
3882
|
+
title: this.languageService.translate.instant('igo.integration.map-proximity-tool.distance'),
|
|
3883
|
+
valueAccessor: (localFeature) => {
|
|
3884
|
+
return `${NumberUtils.roundToNDecimal(localFeature.properties.distance, 1)}m`;
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
]
|
|
3888
|
+
};
|
|
3889
|
+
}
|
|
3890
|
+
get maxDistance() {
|
|
3891
|
+
return this.mapProximityState.proximityRadiusValue$.value;
|
|
3892
|
+
}
|
|
3893
|
+
set maxDistance(value) {
|
|
3894
|
+
this.mapProximityState.proximityRadiusValue$.next(value);
|
|
3895
|
+
}
|
|
3896
|
+
get map() {
|
|
3897
|
+
return this.mapState.map;
|
|
3898
|
+
}
|
|
3899
|
+
ngOnInit() {
|
|
3900
|
+
this.mapProximityState.enabled$.next(true);
|
|
3901
|
+
this.userDefinedFollowPosition = this.map.geolocationController.followPosition === true;
|
|
3902
|
+
this.userDefinedMapCenter = this.map.mapCenter$.value === true;
|
|
3903
|
+
this.subs$$.push(this.mapProximityState.proximitylocationType$.subscribe(v => {
|
|
3904
|
+
this.map.mapCenter$.next(v !== 'geolocation');
|
|
3905
|
+
if (v === 'geolocation') {
|
|
3906
|
+
this.map.geolocationController.followPosition = true;
|
|
3907
|
+
}
|
|
3908
|
+
else {
|
|
3909
|
+
this.map.geolocationController.followPosition = false;
|
|
3910
|
+
}
|
|
3911
|
+
}));
|
|
3912
|
+
}
|
|
3913
|
+
ngOnDestroy() {
|
|
3914
|
+
this.mapProximityState.enabled$.next(false);
|
|
3915
|
+
this.map.mapCenter$.next(this.userDefinedMapCenter);
|
|
3916
|
+
this.subs$$.map(s => s.unsubscribe());
|
|
3917
|
+
this.map.geolocationController.followPosition = this.userDefinedFollowPosition;
|
|
3918
|
+
}
|
|
3919
|
+
onLocationTypeChange(e) {
|
|
3920
|
+
this.mapProximityState.proximitylocationType$.next(e.value);
|
|
3921
|
+
}
|
|
3922
|
+
/**
|
|
3923
|
+
* Copy the coordinates to a clipboard
|
|
3924
|
+
*/
|
|
3925
|
+
copyTextToClipboard() {
|
|
3926
|
+
const successful = Clipboard.copy(this.mapProximityState.currentPositionCoordinate$?.value.toString());
|
|
3927
|
+
if (successful) {
|
|
3928
|
+
const translate = this.languageService.translate;
|
|
3929
|
+
const title = translate.instant('igo.integration.map-proximity-tool.copyTitle');
|
|
3930
|
+
const msg = translate.instant('igo.integration.map-proximity-tool.copyMsg');
|
|
3931
|
+
this.messageService.success(msg, title);
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
};
|
|
3935
|
+
MapProximityToolComponent.ɵfac = function MapProximityToolComponent_Factory(t) { return new (t || MapProximityToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(MapProximityState), i0.ɵɵdirectiveInject(i2.LanguageService), i0.ɵɵdirectiveInject(i2.MessageService)); };
|
|
3936
|
+
MapProximityToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapProximityToolComponent, selectors: [["igo-map-proximity-tool"]], viewQuery: function MapProximityToolComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3937
|
+
i0.ɵɵviewQuery(_c0$1, 7);
|
|
3938
|
+
} if (rf & 2) {
|
|
3939
|
+
let _t;
|
|
3940
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.table = _t.first);
|
|
3941
|
+
} }, decls: 31, vars: 35, consts: [[1, "table-compact", 3, "store", "template"], ["table", ""], ["class", "coordinates", 4, "ngIf"], ["class", "coordinates2", 4, "ngIf"], ["mat-icon-button", "", 3, "click", 4, "ngIf"], [1, "title-container"], [1, "title", "mat-typography"], [1, "igo-input-container", "mat-typography"], [3, "change"], ["value", "geolocation", 3, "checked"], ["value", "mapCenter", 3, "checked"], [1, "radius-unit"], ["appearance", "outline", "floatLabel", "always", 1, "measure-field"], ["type", "number", "pattern", "[0-9]*", "matInput", "", 3, "ngModel", "placeholder", "ngModelChange"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["mat-icon-button", "", 3, "click"], ["svgIcon", "content-copy"]], template: function MapProximityToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3942
|
+
i0.ɵɵelement(0, "igo-entity-table", 0, 1)(2, "br");
|
|
3943
|
+
i0.ɵɵtemplate(3, MapProximityToolComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
|
|
3944
|
+
i0.ɵɵpipe(4, "async");
|
|
3945
|
+
i0.ɵɵtemplate(5, MapProximityToolComponent_mat_form_field_5_Template, 4, 4, "mat-form-field", 3);
|
|
3946
|
+
i0.ɵɵpipe(6, "async");
|
|
3947
|
+
i0.ɵɵtemplate(7, MapProximityToolComponent_button_7_Template, 2, 0, "button", 4);
|
|
3948
|
+
i0.ɵɵpipe(8, "async");
|
|
3949
|
+
i0.ɵɵpipe(9, "async");
|
|
3950
|
+
i0.ɵɵelementStart(10, "div", 5)(11, "mat-label", 6);
|
|
3951
|
+
i0.ɵɵtext(12);
|
|
3952
|
+
i0.ɵɵpipe(13, "translate");
|
|
3953
|
+
i0.ɵɵelementEnd()();
|
|
3954
|
+
i0.ɵɵelementStart(14, "div", 7)(15, "mat-radio-group", 8);
|
|
3955
|
+
i0.ɵɵlistener("change", function MapProximityToolComponent_Template_mat_radio_group_change_15_listener($event) { return ctx.onLocationTypeChange($event); });
|
|
3956
|
+
i0.ɵɵelementStart(16, "mat-radio-button", 9);
|
|
3957
|
+
i0.ɵɵpipe(17, "async");
|
|
3958
|
+
i0.ɵɵtext(18);
|
|
3959
|
+
i0.ɵɵpipe(19, "translate");
|
|
3960
|
+
i0.ɵɵelementEnd();
|
|
3961
|
+
i0.ɵɵelementStart(20, "mat-radio-button", 10);
|
|
3962
|
+
i0.ɵɵpipe(21, "async");
|
|
3963
|
+
i0.ɵɵtext(22);
|
|
3964
|
+
i0.ɵɵpipe(23, "translate");
|
|
3965
|
+
i0.ɵɵelementEnd()()();
|
|
3966
|
+
i0.ɵɵelementStart(24, "div", 11)(25, "mat-form-field", 12)(26, "mat-label");
|
|
3967
|
+
i0.ɵɵtext(27);
|
|
3968
|
+
i0.ɵɵpipe(28, "translate");
|
|
3969
|
+
i0.ɵɵelementEnd();
|
|
3970
|
+
i0.ɵɵelementStart(29, "input", 13);
|
|
3971
|
+
i0.ɵɵlistener("ngModelChange", function MapProximityToolComponent_Template_input_ngModelChange_29_listener($event) { return ctx.maxDistance = $event; });
|
|
3972
|
+
i0.ɵɵpipe(30, "translate");
|
|
3973
|
+
i0.ɵɵelementEnd()()();
|
|
3974
|
+
} if (rf & 2) {
|
|
3975
|
+
i0.ɵɵproperty("store", ctx.mapProximityState.proximityFeatureStore)("template", ctx.tableTemplate);
|
|
3976
|
+
i0.ɵɵadvance(3);
|
|
3977
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.mapProximityState.currentPositionCoordinate$));
|
|
3978
|
+
i0.ɵɵadvance(2);
|
|
3979
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(6, 15, ctx.mapProximityState.currentPositionCoordinate$));
|
|
3980
|
+
i0.ɵɵadvance(2);
|
|
3981
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(8, 17, ctx.mapProximityState.currentPositionCoordinate$) && i0.ɵɵpipeBind1(9, 19, ctx.mapProximityState.currentPositionCoordinate$).length);
|
|
3982
|
+
i0.ɵɵadvance(5);
|
|
3983
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 21, "igo.integration.map-proximity-tool.method"));
|
|
3984
|
+
i0.ɵɵadvance(4);
|
|
3985
|
+
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(17, 23, ctx.mapProximityState.proximitylocationType$) === "geolocation");
|
|
3986
|
+
i0.ɵɵadvance(2);
|
|
3987
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 25, "igo.integration.map-proximity-tool.geolocation"));
|
|
3988
|
+
i0.ɵɵadvance(2);
|
|
3989
|
+
i0.ɵɵproperty("checked", i0.ɵɵpipeBind1(21, 27, ctx.mapProximityState.proximitylocationType$) === "mapCenter");
|
|
3990
|
+
i0.ɵɵadvance(2);
|
|
3991
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, "igo.integration.map-proximity-tool.mapCenter"));
|
|
3992
|
+
i0.ɵɵadvance(5);
|
|
3993
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 31, "igo.integration.map-proximity-tool.radiusM"));
|
|
3994
|
+
i0.ɵɵadvance(2);
|
|
3995
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(30, 33, "igo.integration.map-proximity-tool.radiusM"));
|
|
3996
|
+
i0.ɵɵproperty("ngModel", ctx.maxDistance);
|
|
3997
|
+
} }, dependencies: [i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.PatternValidator, i3.NgModel, i6$2.MatFormField, i6$2.MatLabel, i7$3.MatInput, i6.NgIf, i7.MatIcon, i9.MatRadioGroup, i9.MatRadioButton, i10.MatButton, i4.EntityTableComponent, i6.AsyncPipe, i8.TranslatePipe], styles: [".table-compact[_ngcontent-%COMP%]{height:auto}.table-compact[_ngcontent-%COMP%] .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:110px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.radius-unit[_ngcontent-%COMP%]{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;width:60%}.title-container[_ngcontent-%COMP%]{padding:10px}.title[_ngcontent-%COMP%]{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button[_ngcontent-%COMP%]{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}"] });
|
|
3998
|
+
MapProximityToolComponent = __decorate([
|
|
3999
|
+
ToolComponent({
|
|
4000
|
+
name: 'map-proximity',
|
|
4001
|
+
title: 'igo.integration.tools.closestFeature',
|
|
4002
|
+
icon: 'radius'
|
|
4003
|
+
})
|
|
4004
|
+
/**
|
|
4005
|
+
* Tool to handle the advanced map tools
|
|
4006
|
+
*/
|
|
4007
|
+
], MapProximityToolComponent);
|
|
4008
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapProximityToolComponent, [{
|
|
4009
|
+
type: Component,
|
|
4010
|
+
args: [{ selector: 'igo-map-proximity-tool', template: "<igo-entity-table #table class=\"table-compact\" [store]=\"mapProximityState.proximityFeatureStore\" [template]=\"tableTemplate\"></igo-entity-table>\r\n<br>\r\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord\" class=\"coordinates\">\r\n <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.map-proximity-tool.lon' | translate\"\r\n [value]=\"coord[0]\"></textarea>\r\n</mat-form-field>\r\n<mat-form-field *ngIf=\"mapProximityState.currentPositionCoordinate$ | async as coord2\" class=\"coordinates2\">\r\n <textarea #textArea matInput readonly rows=\"1\"\r\n [placeholder]=\"'igo.integration.map-proximity-tool.lat' | translate\"\r\n [value]=\"coord2[1]\"></textarea>\r\n</mat-form-field>\r\n\r\n<button *ngIf=\"(mapProximityState.currentPositionCoordinate$ | async) && (mapProximityState.currentPositionCoordinate$ | async).length\" mat-icon-button\r\n (click)=\"copyTextToClipboard()\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n</button>\r\n<div class=\"title-container\">\r\n <mat-label class=\"title mat-typography\">{{'igo.integration.map-proximity-tool.method' | translate}}</mat-label>\r\n</div>\r\n<div class=\"igo-input-container mat-typography\">\r\n <mat-radio-group (change)=\"onLocationTypeChange($event)\">\r\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='geolocation'\" value=\"geolocation\">{{'igo.integration.map-proximity-tool.geolocation' | translate}}</mat-radio-button>\r\n <mat-radio-button [checked]=\"(mapProximityState.proximitylocationType$|async)==='mapCenter'\" value=\"mapCenter\">{{'igo.integration.map-proximity-tool.mapCenter' | translate}}</mat-radio-button>\r\n </mat-radio-group>\r\n</div>\r\n\r\n<div class=\"radius-unit\"> \r\n \r\n <mat-form-field appearance=\"outline\" class=\"measure-field\" floatLabel=\"always\">\r\n <mat-label>{{'igo.integration.map-proximity-tool.radiusM' | translate}}</mat-label>\r\n <input type=\"number\" pattern=\"[0-9]*\" [(ngModel)]=\"maxDistance\" matInput placeholder=\"{{'igo.integration.map-proximity-tool.radiusM' | translate}}\">\r\n </mat-form-field>\r\n\r\n \r\n</div>", styles: [".table-compact{height:auto}.table-compact ::ng-deep .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea{resize:none}mat-form-field{padding:10px 15px}mat-form-field.coordinates{width:110px}mat-form-field.coordinates2{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container{width:60%;padding:0 15px}.radius-unit{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field{display:flex;flex-flow:column nowrap;width:60%}.title-container{padding:10px}.title{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}\n"] }]
|
|
4011
|
+
}], function () { return [{ type: MapState }, { type: MapProximityState }, { type: i2.LanguageService }, { type: i2.MessageService }]; }, { table: [{
|
|
4012
|
+
type: ViewChild,
|
|
4013
|
+
args: ['table', { static: true }]
|
|
4014
|
+
}] }); })();
|
|
3755
4015
|
|
|
3756
4016
|
class IgoAppMapModule {
|
|
3757
4017
|
static forRoot() {
|
|
@@ -3763,34 +4023,34 @@ class IgoAppMapModule {
|
|
|
3763
4023
|
}
|
|
3764
4024
|
IgoAppMapModule.ɵfac = function IgoAppMapModule_Factory(t) { return new (t || IgoAppMapModule)(); };
|
|
3765
4025
|
IgoAppMapModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppMapModule });
|
|
3766
|
-
IgoAppMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
]
|
|
4026
|
+
IgoAppMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FormsModule,
|
|
4027
|
+
ReactiveFormsModule,
|
|
4028
|
+
MatButtonToggleModule,
|
|
4029
|
+
MatDividerModule,
|
|
4030
|
+
MatSelectModule,
|
|
4031
|
+
MatOptionModule,
|
|
4032
|
+
MatFormFieldModule,
|
|
4033
|
+
MatInputModule,
|
|
4034
|
+
MatCheckboxModule,
|
|
4035
|
+
IgoSpinnerModule,
|
|
4036
|
+
CommonModule,
|
|
4037
|
+
MatTabsModule,
|
|
4038
|
+
MatListModule,
|
|
4039
|
+
MatIconModule,
|
|
4040
|
+
IgoLanguageModule,
|
|
4041
|
+
IgoLayerModule,
|
|
4042
|
+
IgoMetadataModule,
|
|
4043
|
+
IgoDownloadModule,
|
|
4044
|
+
IgoImportExportModule,
|
|
4045
|
+
IgoFilterModule,
|
|
4046
|
+
MatRadioModule,
|
|
4047
|
+
IgoContextModule,
|
|
4048
|
+
IgoAppWorkspaceModule,
|
|
4049
|
+
MatSlideToggleModule,
|
|
4050
|
+
MatMenuModule,
|
|
4051
|
+
MatButtonModule,
|
|
4052
|
+
MatTooltipModule,
|
|
4053
|
+
IgoEntityTableModule] });
|
|
3794
4054
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppMapModule, [{
|
|
3795
4055
|
type: NgModule,
|
|
3796
4056
|
args: [{
|
|
@@ -3815,20 +4075,23 @@ IgoAppMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
|
3815
4075
|
IgoDownloadModule,
|
|
3816
4076
|
IgoImportExportModule,
|
|
3817
4077
|
IgoFilterModule,
|
|
4078
|
+
MatRadioModule,
|
|
3818
4079
|
IgoContextModule,
|
|
3819
4080
|
IgoAppWorkspaceModule,
|
|
3820
4081
|
MatSlideToggleModule,
|
|
3821
4082
|
MatMenuModule,
|
|
3822
4083
|
MatButtonModule,
|
|
3823
|
-
MatTooltipModule
|
|
4084
|
+
MatTooltipModule,
|
|
4085
|
+
IgoEntityTableModule
|
|
3824
4086
|
],
|
|
3825
|
-
declarations: [AdvancedMapToolComponent, MapToolComponent,
|
|
4087
|
+
declarations: [AdvancedMapToolComponent, MapProximityToolComponent, MapToolComponent,
|
|
3826
4088
|
MapToolsComponent, MapDetailsToolComponent, MapLegendToolComponent, AdvancedSwipeComponent, AdvancedCoordinatesComponent],
|
|
3827
|
-
exports: [AdvancedMapToolComponent,
|
|
4089
|
+
exports: [AdvancedMapToolComponent, MapProximityToolComponent, MapToolComponent,
|
|
4090
|
+
MapToolsComponent, MapDetailsToolComponent, MapLegendToolComponent],
|
|
3828
4091
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
3829
4092
|
}]
|
|
3830
4093
|
}], null, null); })();
|
|
3831
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoAppMapModule, { declarations: [AdvancedMapToolComponent, MapToolComponent,
|
|
4094
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoAppMapModule, { declarations: [AdvancedMapToolComponent, MapProximityToolComponent, MapToolComponent,
|
|
3832
4095
|
MapToolsComponent, MapDetailsToolComponent, MapLegendToolComponent, AdvancedSwipeComponent, AdvancedCoordinatesComponent], imports: [FormsModule,
|
|
3833
4096
|
ReactiveFormsModule,
|
|
3834
4097
|
MatButtonToggleModule,
|
|
@@ -3849,12 +4112,15 @@ IgoAppMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
|
3849
4112
|
IgoDownloadModule,
|
|
3850
4113
|
IgoImportExportModule,
|
|
3851
4114
|
IgoFilterModule,
|
|
4115
|
+
MatRadioModule,
|
|
3852
4116
|
IgoContextModule,
|
|
3853
4117
|
IgoAppWorkspaceModule,
|
|
3854
4118
|
MatSlideToggleModule,
|
|
3855
4119
|
MatMenuModule,
|
|
3856
4120
|
MatButtonModule,
|
|
3857
|
-
MatTooltipModule
|
|
4121
|
+
MatTooltipModule,
|
|
4122
|
+
IgoEntityTableModule], exports: [AdvancedMapToolComponent, MapProximityToolComponent, MapToolComponent,
|
|
4123
|
+
MapToolsComponent, MapDetailsToolComponent, MapLegendToolComponent] }); })();
|
|
3858
4124
|
|
|
3859
4125
|
/**
|
|
3860
4126
|
* Service that holds the state of the measure module
|
|
@@ -3911,7 +4177,7 @@ MeasurerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Measu
|
|
|
3911
4177
|
i0.ɵɵelement(0, "igo-measurer", 0);
|
|
3912
4178
|
} if (rf & 2) {
|
|
3913
4179
|
i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
3914
|
-
} },
|
|
4180
|
+
} }, dependencies: [i1$1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
|
|
3915
4181
|
MeasurerToolComponent = __decorate([
|
|
3916
4182
|
ToolComponent({
|
|
3917
4183
|
name: 'measurer',
|
|
@@ -3921,11 +4187,7 @@ MeasurerToolComponent = __decorate([
|
|
|
3921
4187
|
], MeasurerToolComponent);
|
|
3922
4188
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MeasurerToolComponent, [{
|
|
3923
4189
|
type: Component,
|
|
3924
|
-
args: [{
|
|
3925
|
-
selector: 'igo-measurer-tool',
|
|
3926
|
-
templateUrl: './measurer-tool.component.html',
|
|
3927
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3928
|
-
}]
|
|
4190
|
+
args: [{ selector: 'igo-measurer-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-measurer [store]=\"store\" [map]=\"map\"></igo-measurer>\r\n" }]
|
|
3929
4191
|
}], function () { return [{ type: MeasureState }, { type: MapState }]; }, null); })();
|
|
3930
4192
|
|
|
3931
4193
|
/**
|
|
@@ -3935,9 +4197,7 @@ class IgoAppMeasurerToolModule {
|
|
|
3935
4197
|
}
|
|
3936
4198
|
IgoAppMeasurerToolModule.ɵfac = function IgoAppMeasurerToolModule_Factory(t) { return new (t || IgoAppMeasurerToolModule)(); };
|
|
3937
4199
|
IgoAppMeasurerToolModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppMeasurerToolModule });
|
|
3938
|
-
IgoAppMeasurerToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
3939
|
-
IgoMeasurerModule
|
|
3940
|
-
]] });
|
|
4200
|
+
IgoAppMeasurerToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoMeasurerModule] });
|
|
3941
4201
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppMeasurerToolModule, [{
|
|
3942
4202
|
type: NgModule,
|
|
3943
4203
|
args: [{
|
|
@@ -3955,7 +4215,7 @@ class IgoAppMeasureModule {
|
|
|
3955
4215
|
}
|
|
3956
4216
|
IgoAppMeasureModule.ɵfac = function IgoAppMeasureModule_Factory(t) { return new (t || IgoAppMeasureModule)(); };
|
|
3957
4217
|
IgoAppMeasureModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppMeasureModule });
|
|
3958
|
-
IgoAppMeasureModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4218
|
+
IgoAppMeasureModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoAppMeasurerToolModule] });
|
|
3959
4219
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppMeasureModule, [{
|
|
3960
4220
|
type: NgModule,
|
|
3961
4221
|
args: [{
|
|
@@ -3981,7 +4241,7 @@ PrintToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PrintToo
|
|
|
3981
4241
|
i0.ɵɵelement(0, "igo-print", 0);
|
|
3982
4242
|
} if (rf & 2) {
|
|
3983
4243
|
i0.ɵɵproperty("map", ctx.map);
|
|
3984
|
-
} },
|
|
4244
|
+
} }, dependencies: [i1$1.PrintComponent], encapsulation: 2 });
|
|
3985
4245
|
PrintToolComponent = __decorate([
|
|
3986
4246
|
ToolComponent({
|
|
3987
4247
|
name: 'print',
|
|
@@ -3991,10 +4251,7 @@ PrintToolComponent = __decorate([
|
|
|
3991
4251
|
], PrintToolComponent);
|
|
3992
4252
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PrintToolComponent, [{
|
|
3993
4253
|
type: Component,
|
|
3994
|
-
args: [{
|
|
3995
|
-
selector: 'igo-print-tool',
|
|
3996
|
-
templateUrl: './print-tool.component.html'
|
|
3997
|
-
}]
|
|
4254
|
+
args: [{ selector: 'igo-print-tool', template: "<igo-print [map]=\"map\"></igo-print>\r\n" }]
|
|
3998
4255
|
}], function () { return [{ type: MapState }]; }, null); })();
|
|
3999
4256
|
|
|
4000
4257
|
class IgoAppPrintModule {
|
|
@@ -4007,7 +4264,7 @@ class IgoAppPrintModule {
|
|
|
4007
4264
|
}
|
|
4008
4265
|
IgoAppPrintModule.ɵfac = function IgoAppPrintModule_Factory(t) { return new (t || IgoAppPrintModule)(); };
|
|
4009
4266
|
IgoAppPrintModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppPrintModule });
|
|
4010
|
-
IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4267
|
+
IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoPrintModule] });
|
|
4011
4268
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppPrintModule, [{
|
|
4012
4269
|
type: NgModule,
|
|
4013
4270
|
args: [{
|
|
@@ -4111,14 +4368,14 @@ class SearchState {
|
|
|
4111
4368
|
this.searchResultsGeometryEnabled$.next(value);
|
|
4112
4369
|
}
|
|
4113
4370
|
}
|
|
4114
|
-
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1$1.SearchSourceService), i0.ɵɵinject(i2
|
|
4371
|
+
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1$1.SearchSourceService), i0.ɵɵinject(i2.StorageService), i0.ɵɵinject(i2.ConfigService)); };
|
|
4115
4372
|
SearchState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SearchState, factory: SearchState.ɵfac, providedIn: 'root' });
|
|
4116
4373
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchState, [{
|
|
4117
4374
|
type: Injectable,
|
|
4118
4375
|
args: [{
|
|
4119
4376
|
providedIn: 'root'
|
|
4120
4377
|
}]
|
|
4121
|
-
}], function () { return [{ type: i1$1.SearchSourceService }, { type: i2
|
|
4378
|
+
}], function () { return [{ type: i1$1.SearchSourceService }, { type: i2.StorageService }, { type: i2.ConfigService }]; }, null); })();
|
|
4122
4379
|
|
|
4123
4380
|
class SearchBarBindingDirective {
|
|
4124
4381
|
constructor(component, searchState) {
|
|
@@ -4184,7 +4441,7 @@ class IgoAppSearchBarModule {
|
|
|
4184
4441
|
}
|
|
4185
4442
|
IgoAppSearchBarModule.ɵfac = function IgoAppSearchBarModule_Factory(t) { return new (t || IgoAppSearchBarModule)(); };
|
|
4186
4443
|
IgoAppSearchBarModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppSearchBarModule });
|
|
4187
|
-
IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4444
|
+
IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoSearchModule] });
|
|
4188
4445
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppSearchBarModule, [{
|
|
4189
4446
|
type: NgModule,
|
|
4190
4447
|
args: [{
|
|
@@ -4196,25 +4453,18 @@ IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[I
|
|
|
4196
4453
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoAppSearchBarModule, { declarations: [SearchBarBindingDirective], imports: [IgoSearchModule], exports: [SearchBarBindingDirective] }); })();
|
|
4197
4454
|
|
|
4198
4455
|
function SearchResultsToolComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
4199
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
4200
|
-
i0.ɵɵelementStart(1, "section", 3);
|
|
4201
|
-
i0.ɵɵelementStart(2, "h4");
|
|
4202
|
-
i0.ɵɵelementStart(3, "strong");
|
|
4456
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "section", 3)(2, "h4")(3, "strong");
|
|
4203
4457
|
i0.ɵɵtext(4);
|
|
4204
4458
|
i0.ɵɵpipe(5, "translate");
|
|
4205
|
-
i0.ɵɵelementEnd();
|
|
4206
|
-
i0.ɵɵ
|
|
4207
|
-
i0.ɵɵelementStart(6, "p");
|
|
4208
|
-
i0.ɵɵelementStart(7, "strong");
|
|
4459
|
+
i0.ɵɵelementEnd()();
|
|
4460
|
+
i0.ɵɵelementStart(6, "p")(7, "strong");
|
|
4209
4461
|
i0.ɵɵtext(8);
|
|
4210
4462
|
i0.ɵɵpipe(9, "translate");
|
|
4211
|
-
i0.ɵɵelementEnd();
|
|
4212
|
-
i0.ɵɵelementEnd();
|
|
4463
|
+
i0.ɵɵelementEnd()();
|
|
4213
4464
|
i0.ɵɵelement(10, "div", 4);
|
|
4214
4465
|
i0.ɵɵpipe(11, "sanitizeHtml");
|
|
4215
4466
|
i0.ɵɵpipe(12, "translate");
|
|
4216
|
-
i0.ɵɵelementEnd();
|
|
4217
|
-
i0.ɵɵelementEnd();
|
|
4467
|
+
i0.ɵɵelementEnd()();
|
|
4218
4468
|
} if (rf & 2) {
|
|
4219
4469
|
i0.ɵɵadvance(4);
|
|
4220
4470
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 3, "igo.integration.searchResultsTool.noResults"));
|
|
@@ -4223,17 +4473,17 @@ function SearchResultsToolComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
4223
4473
|
i0.ɵɵadvance(2);
|
|
4224
4474
|
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(11, 7, i0.ɵɵpipeBind1(12, 9, "igo.integration.searchResultsTool.examples")), i0.ɵɵsanitizeHtml);
|
|
4225
4475
|
} }
|
|
4226
|
-
function
|
|
4476
|
+
function SearchResultsToolComponent_igo_flexible_2_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
4227
4477
|
i0.ɵɵelement(0, "igo-search-add-button", 12);
|
|
4228
4478
|
} if (rf & 2) {
|
|
4229
4479
|
const result_r6 = ctx.result;
|
|
4230
4480
|
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
4231
4481
|
i0.ɵɵproperty("map", ctx_r4.map)("layer", result_r6);
|
|
4232
4482
|
} }
|
|
4233
|
-
function
|
|
4483
|
+
function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
4234
4484
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
4235
4485
|
i0.ɵɵelementStart(0, "button", 18);
|
|
4236
|
-
i0.ɵɵlistener("click", function
|
|
4486
|
+
i0.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r8.zoomToFeatureExtent()); });
|
|
4237
4487
|
i0.ɵɵpipe(1, "translate");
|
|
4238
4488
|
i0.ɵɵpipe(2, "async");
|
|
4239
4489
|
i0.ɵɵelement(3, "mat-icon", 19);
|
|
@@ -4246,20 +4496,18 @@ function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template
|
|
|
4246
4496
|
i0.ɵɵadvance(3);
|
|
4247
4497
|
i0.ɵɵproperty("matBadge", i0.ɵɵpipeBind1(4, 7, ctx_r7.isSelectedResultOutOfView$) ? "!" : "")("matBadgeHidden", i0.ɵɵpipeBind1(5, 9, ctx_r7.isSelectedResultOutOfView$) === false);
|
|
4248
4498
|
} }
|
|
4249
|
-
function
|
|
4499
|
+
function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template(rf, ctx) { if (rf & 1) {
|
|
4250
4500
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
4251
|
-
i0.ɵɵelementStart(0, "igo-panel", 13);
|
|
4252
|
-
i0.ɵɵ
|
|
4253
|
-
i0.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.toggleTopPanel(); });
|
|
4501
|
+
i0.ɵɵelementStart(0, "igo-panel", 13)(1, "button", 14);
|
|
4502
|
+
i0.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.toggleTopPanel()); });
|
|
4254
4503
|
i0.ɵɵelement(2, "mat-icon", 15);
|
|
4255
4504
|
i0.ɵɵpipe(3, "async");
|
|
4256
4505
|
i0.ɵɵelementEnd();
|
|
4257
|
-
i0.ɵɵtemplate(4,
|
|
4506
|
+
i0.ɵɵtemplate(4, SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template, 6, 11, "button", 16);
|
|
4258
4507
|
i0.ɵɵelementStart(5, "igo-feature-details", 17);
|
|
4259
|
-
i0.ɵɵlistener("routingEvent", function
|
|
4508
|
+
i0.ɵɵlistener("routingEvent", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template_igo_feature_details_routingEvent_5_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.getRoute()); });
|
|
4260
4509
|
i0.ɵɵpipe(6, "async");
|
|
4261
|
-
i0.ɵɵelementEnd();
|
|
4262
|
-
i0.ɵɵelementEnd();
|
|
4510
|
+
i0.ɵɵelementEnd()();
|
|
4263
4511
|
} if (rf & 2) {
|
|
4264
4512
|
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
4265
4513
|
i0.ɵɵproperty("title", ctx_r5.featureTitle);
|
|
@@ -4270,21 +4518,18 @@ function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template(rf, ctx)
|
|
|
4270
4518
|
i0.ɵɵadvance(1);
|
|
4271
4519
|
i0.ɵɵproperty("feature", i0.ɵɵpipeBind1(6, 8, ctx_r5.feature$))("map", ctx_r5.map)("toolbox", ctx_r5.toolState.toolbox);
|
|
4272
4520
|
} }
|
|
4273
|
-
function
|
|
4521
|
+
function SearchResultsToolComponent_igo_flexible_2_Template(rf, ctx) { if (rf & 1) {
|
|
4274
4522
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
4275
4523
|
i0.ɵɵelementStart(0, "igo-flexible", 5, 6);
|
|
4276
4524
|
i0.ɵɵpipe(2, "async");
|
|
4277
|
-
i0.ɵɵelementStart(3, "div", 7);
|
|
4278
|
-
i0.ɵɵ
|
|
4279
|
-
i0.ɵɵ
|
|
4280
|
-
i0.ɵɵ
|
|
4281
|
-
i0.ɵɵelementEnd();
|
|
4282
|
-
i0.ɵɵelementEnd();
|
|
4525
|
+
i0.ɵɵelementStart(3, "div", 7)(4, "igo-search-results", 8);
|
|
4526
|
+
i0.ɵɵlistener("resultFocus", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultFocus_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.onResultFocus($event)); })("resultSelect", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultSelect_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.onResultSelect($event)); })("resultUnfocus", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultUnfocus_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.onResultUnfocus($event)); })("resultMouseenter", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultMouseenter_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.onResultFocus($event)); })("resultMouseleave", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultMouseleave_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.onResultUnfocus($event)); })("moreResults", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_moreResults_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.onSearch($event)); });
|
|
4527
|
+
i0.ɵɵtemplate(5, SearchResultsToolComponent_igo_flexible_2_ng_template_5_Template, 1, 2, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
4528
|
+
i0.ɵɵelementEnd()();
|
|
4283
4529
|
i0.ɵɵelementStart(7, "div", 10);
|
|
4284
|
-
i0.ɵɵtemplate(8,
|
|
4530
|
+
i0.ɵɵtemplate(8, SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template, 7, 10, "igo-panel", 11);
|
|
4285
4531
|
i0.ɵɵpipe(9, "async");
|
|
4286
|
-
i0.ɵɵelementEnd();
|
|
4287
|
-
i0.ɵɵelementEnd();
|
|
4532
|
+
i0.ɵɵelementEnd()();
|
|
4288
4533
|
} if (rf & 2) {
|
|
4289
4534
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
4290
4535
|
i0.ɵɵproperty("state", i0.ɵɵpipeBind1(2, 7, ctx_r1.feature$) ? ctx_r1.topPanelState : "initial");
|
|
@@ -4307,11 +4552,16 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4307
4552
|
* to show hide results icons
|
|
4308
4553
|
*/
|
|
4309
4554
|
this.showIcons = true;
|
|
4555
|
+
/**
|
|
4556
|
+
* Determine the top panel default state
|
|
4557
|
+
*/
|
|
4558
|
+
this.topPanelStateDefault = 'expanded';
|
|
4310
4559
|
this.hasFeatureEmphasisOnSelection = false;
|
|
4311
4560
|
this.shownResultsGeometries = [];
|
|
4312
4561
|
this.shownResultsEmphasisGeometries = [];
|
|
4313
4562
|
this.focusedResult$ = new BehaviorSubject(undefined);
|
|
4314
4563
|
this.isSelectedResultOutOfView$ = new BehaviorSubject(false);
|
|
4564
|
+
this.debouncedEmpty$ = new BehaviorSubject(true);
|
|
4315
4565
|
this.term = '';
|
|
4316
4566
|
this.settingsChange$ = new BehaviorSubject(undefined);
|
|
4317
4567
|
this.topPanelState$ = new BehaviorSubject('initial');
|
|
@@ -4412,10 +4662,9 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4412
4662
|
!result.state.selected &&
|
|
4413
4663
|
!result.state.focused);
|
|
4414
4664
|
featureToHandleGeom.map(result => {
|
|
4415
|
-
var _a;
|
|
4416
4665
|
if (searchResultsGeometryEnabled) {
|
|
4417
4666
|
result.entity.data.meta.style =
|
|
4418
|
-
getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, this.searchState.searchOverlayStyle,
|
|
4667
|
+
getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, this.searchState.searchOverlayStyle, result.entity.style?.base ? result.entity.style.base : {}));
|
|
4419
4668
|
this.shownResultsGeometries.push(result.entity.data);
|
|
4420
4669
|
this.map.queryResultsOverlay.addFeature(result.entity.data, FeatureMotion.None);
|
|
4421
4670
|
if (this.hasFeatureEmphasisOnSelection) {
|
|
@@ -4424,6 +4673,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4424
4673
|
}
|
|
4425
4674
|
});
|
|
4426
4675
|
});
|
|
4676
|
+
this.debouncedEmpty$$ = this.store.stateView.empty$.pipe(debounceTime(1500)).subscribe(empty => this.debouncedEmpty$.next(empty));
|
|
4427
4677
|
}
|
|
4428
4678
|
monitorResultOutOfView() {
|
|
4429
4679
|
this.isSelectedResultOutOfView$$ = combineLatest([
|
|
@@ -4447,7 +4697,6 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4447
4697
|
});
|
|
4448
4698
|
}
|
|
4449
4699
|
buildResultEmphasis(result, trigger) {
|
|
4450
|
-
var _a, _b, _c;
|
|
4451
4700
|
if (trigger !== 'shown') {
|
|
4452
4701
|
this.clearFeatureEmphasis(trigger);
|
|
4453
4702
|
}
|
|
@@ -4469,14 +4718,14 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4469
4718
|
let zIndexOffset = 0;
|
|
4470
4719
|
switch (trigger) {
|
|
4471
4720
|
case 'focused':
|
|
4472
|
-
computedStyle = getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus,
|
|
4721
|
+
computedStyle = getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus, result.style?.focus ? result.style.focus : {}));
|
|
4473
4722
|
zIndexOffset = 2;
|
|
4474
4723
|
break;
|
|
4475
4724
|
case 'shown':
|
|
4476
|
-
computedStyle = getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle,
|
|
4725
|
+
computedStyle = getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle, result.style?.base ? result.style.base : {}));
|
|
4477
4726
|
break;
|
|
4478
4727
|
case 'selected':
|
|
4479
|
-
computedStyle = getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection,
|
|
4728
|
+
computedStyle = getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection, result.style?.selection ? result.style.selection : {}));
|
|
4480
4729
|
zIndexOffset = 1;
|
|
4481
4730
|
break;
|
|
4482
4731
|
}
|
|
@@ -4523,6 +4772,9 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4523
4772
|
if (this.getRoute$$) {
|
|
4524
4773
|
this.getRoute$$.unsubscribe();
|
|
4525
4774
|
}
|
|
4775
|
+
if (this.debouncedEmpty$$) {
|
|
4776
|
+
this.debouncedEmpty$$.unsubscribe();
|
|
4777
|
+
}
|
|
4526
4778
|
}
|
|
4527
4779
|
/**
|
|
4528
4780
|
* Try to add a feature to the map when it's being focused
|
|
@@ -4530,10 +4782,9 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4530
4782
|
* @param result A search result that could be a feature
|
|
4531
4783
|
*/
|
|
4532
4784
|
onResultFocus(result) {
|
|
4533
|
-
var _a;
|
|
4534
4785
|
this.focusedResult$.next(result);
|
|
4535
4786
|
if (result.meta.dataType === FEATURE && result.data.geometry) {
|
|
4536
|
-
result.data.meta.style = getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus,
|
|
4787
|
+
result.data.meta.style = getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, result.style?.focus ? result.style.focus : {}));
|
|
4537
4788
|
const feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
|
|
4538
4789
|
if (feature) {
|
|
4539
4790
|
feature.setStyle(result.data.meta.style);
|
|
@@ -4543,7 +4794,6 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4543
4794
|
}
|
|
4544
4795
|
}
|
|
4545
4796
|
onResultUnfocus(result) {
|
|
4546
|
-
var _a;
|
|
4547
4797
|
this.focusedResult$.next(undefined);
|
|
4548
4798
|
if (result.meta.dataType !== FEATURE) {
|
|
4549
4799
|
return;
|
|
@@ -4551,7 +4801,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4551
4801
|
if (this.store.state.get(result).selected === true) {
|
|
4552
4802
|
const feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
|
|
4553
4803
|
if (feature) {
|
|
4554
|
-
const style = getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus,
|
|
4804
|
+
const style = getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, result.style?.focus ? result.style.focus : {}));
|
|
4555
4805
|
feature.setStyle(style);
|
|
4556
4806
|
}
|
|
4557
4807
|
return;
|
|
@@ -4567,18 +4817,20 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4567
4817
|
this.map.searchResultsOverlay.dataSource.ol.clear();
|
|
4568
4818
|
this.tryAddFeatureToMap(result);
|
|
4569
4819
|
this.searchState.setSelectedResult(result);
|
|
4820
|
+
if (this.topPanelState === 'initial') {
|
|
4821
|
+
if (this.topPanelStateDefault !== 'collapsed') {
|
|
4822
|
+
this.topPanelState = 'expanded';
|
|
4823
|
+
}
|
|
4824
|
+
else {
|
|
4825
|
+
this.topPanelState = 'collapsed';
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4570
4828
|
if (this.topPanelState === 'expanded') {
|
|
4571
4829
|
const igoList = this.computeElementRef()[0];
|
|
4572
4830
|
const selected = this.computeElementRef()[1];
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
this.adjustTopPanel(igoList, selected);
|
|
4577
|
-
}
|
|
4578
|
-
}, FlexibleComponent.transitionTime + 50);
|
|
4579
|
-
}
|
|
4580
|
-
if (this.topPanelState === 'initial') {
|
|
4581
|
-
this.topPanelState = 'expanded';
|
|
4831
|
+
if (!this.isScrolledIntoView(igoList, selected)) {
|
|
4832
|
+
this.adjustTopPanel(igoList, selected);
|
|
4833
|
+
}
|
|
4582
4834
|
}
|
|
4583
4835
|
}
|
|
4584
4836
|
onSearch(event) {
|
|
@@ -4664,7 +4916,6 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4664
4916
|
* @param result A search result that could be a feature
|
|
4665
4917
|
*/
|
|
4666
4918
|
tryAddFeatureToMap(result) {
|
|
4667
|
-
var _a;
|
|
4668
4919
|
if (result.meta.dataType !== FEATURE) {
|
|
4669
4920
|
return undefined;
|
|
4670
4921
|
}
|
|
@@ -4673,7 +4924,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4673
4924
|
if (!feature.geometry) {
|
|
4674
4925
|
return;
|
|
4675
4926
|
}
|
|
4676
|
-
feature.meta.style = getCommonVectorSelectedStyle(Object.assign({}, { feature }, this.searchState.searchOverlayStyleSelection,
|
|
4927
|
+
feature.meta.style = getCommonVectorSelectedStyle(Object.assign({}, { feature }, this.searchState.searchOverlayStyleSelection, result.style?.selection ? result.style.selection : {}));
|
|
4677
4928
|
this.map.searchResultsOverlay.addFeature(feature);
|
|
4678
4929
|
}
|
|
4679
4930
|
isScrolledIntoView(elemSource, elem) {
|
|
@@ -4709,21 +4960,31 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4709
4960
|
stop.text = this.featureTitle;
|
|
4710
4961
|
stop.coordinates = coord;
|
|
4711
4962
|
this.directionState.stopsStore.update(stop);
|
|
4963
|
+
if (this.map.geolocationController.position$.value) {
|
|
4964
|
+
const currentPos = this.map.geolocationController.position$.value;
|
|
4965
|
+
const stop = this.directionState.stopsStore.all().find((e) => e.position === 0);
|
|
4966
|
+
const currentCoord = olProj.transform(currentPos.position, currentPos.projection, 'EPSG:4326');
|
|
4967
|
+
const coord = roundCoordTo([currentCoord[0], currentCoord[1]], 6);
|
|
4968
|
+
stop.text = coord.join(',');
|
|
4969
|
+
stop.coordinates = coord;
|
|
4970
|
+
this.directionState.stopsStore.update(stop);
|
|
4971
|
+
}
|
|
4712
4972
|
}
|
|
4713
4973
|
});
|
|
4714
4974
|
}, 250);
|
|
4715
4975
|
}
|
|
4716
4976
|
};
|
|
4717
|
-
SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2
|
|
4718
|
-
SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsToolComponent, selectors: [["igo-search-results-tool"]], inputs: { showIcons: "showIcons", topPanelState: "topPanelState" }, decls:
|
|
4977
|
+
SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2.ConfigService)); };
|
|
4978
|
+
SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsToolComponent, selectors: [["igo-search-results-tool"]], inputs: { showIcons: "showIcons", topPanelStateDefault: "topPanelStateDefault", topPanelState: "topPanelState" }, decls: 4, vars: 6, consts: [["style", "margin: 10px;", 4, "ngIf"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state", 4, "ngIf"], [2, "margin", "10px"], [1, "mat-typography"], [3, "innerHTML"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state"], ["topPanel", ""], [1, "igo-content"], ["placeholder", "false", 3, "store", "showIcons", "term", "termSplitter", "settingsChange$", "resultFocus", "resultSelect", "resultUnfocus", "resultMouseenter", "resultMouseleave", "moreResults"], ["igoSearchItemToolbar", ""], ["igoFlexibleFill", "", 1, "igo-content"], [3, "title", 4, "ngIf"], [3, "map", "layer"], [3, "title"], ["mat-icon-button", "", "panelLeftButton", "", 1, "igo-icon-button", 3, "click"], [3, "svgIcon"], ["mat-icon-button", "", "panelRightButton", "", "class", "igo-icon-button", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["igoFeatureDetailsDirective", "", 3, "feature", "map", "toolbox", "routingEvent"], ["mat-icon-button", "", "panelRightButton", "", "matTooltipShowDelay", "500", 1, "igo-icon-button", 3, "matTooltip", "click"], ["matBadgeColor", "accent", "matBadgeSize", "small", "svgIcon", "magnify-plus-outline", 3, "matBadge", "matBadgeHidden"]], template: function SearchResultsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4719
4979
|
i0.ɵɵtemplate(0, SearchResultsToolComponent_div_0_Template, 13, 11, "div", 0);
|
|
4720
|
-
i0.ɵɵ
|
|
4721
|
-
i0.ɵɵ
|
|
4980
|
+
i0.ɵɵpipe(1, "async");
|
|
4981
|
+
i0.ɵɵtemplate(2, SearchResultsToolComponent_igo_flexible_2_Template, 10, 11, "igo-flexible", 1);
|
|
4982
|
+
i0.ɵɵpipe(3, "async");
|
|
4722
4983
|
} if (rf & 2) {
|
|
4723
|
-
i0.ɵɵproperty("ngIf", !ctx.store || ctx.store.stateView.empty);
|
|
4724
|
-
i0.ɵɵadvance(
|
|
4725
|
-
i0.ɵɵproperty("ngIf", ctx.store && i0.ɵɵpipeBind1(
|
|
4726
|
-
} },
|
|
4984
|
+
i0.ɵɵproperty("ngIf", (!ctx.store || ctx.store.stateView.empty) && i0.ɵɵpipeBind1(1, 2, ctx.debouncedEmpty$));
|
|
4985
|
+
i0.ɵɵadvance(2);
|
|
4986
|
+
i0.ɵɵproperty("ngIf", ctx.store && i0.ɵɵpipeBind1(3, 4, ctx.store.stateView.empty$) === false);
|
|
4987
|
+
} }, dependencies: [i6.NgIf, i7.MatIcon, i8$2.MatBadge, i5.MatTooltip, i10.MatButton, i1$1.FeatureDetailsComponent, i1$1.FeatureDetailsDirective, i1$1.SearchResultsComponent, i1$1.SearchResultAddButtonComponent, i4.FlexibleComponent, i4.PanelComponent, i6.AsyncPipe, i8.TranslatePipe, i4.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
|
|
4727
4988
|
SearchResultsToolComponent = __decorate([
|
|
4728
4989
|
ToolComponent({
|
|
4729
4990
|
name: 'searchResults',
|
|
@@ -4733,12 +4994,10 @@ SearchResultsToolComponent = __decorate([
|
|
|
4733
4994
|
], SearchResultsToolComponent);
|
|
4734
4995
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultsToolComponent, [{
|
|
4735
4996
|
type: Component,
|
|
4736
|
-
args: [{
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
}]
|
|
4741
|
-
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2$1.ConfigService }]; }, { showIcons: [{
|
|
4997
|
+
args: [{ selector: 'igo-search-results-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"(!store || store.stateView.empty) && (debouncedEmpty$ | async) \" style=\"margin: 10px;\">\r\n <section class=\"mat-typography\">\r\n <h4><strong>{{ 'igo.integration.searchResultsTool.noResults' | translate }}</strong></h4>\r\n <p><strong>{{ 'igo.integration.searchResultsTool.doSearch' | translate }}</strong></p>\r\n <div [innerHTML]=\"'igo.integration.searchResultsTool.examples' | translate | sanitizeHtml\"></div>\r\n</section>\r\n</div>\r\n\r\n<igo-flexible\r\n *ngIf=\"store && (store.stateView.empty$ | async)===false\"\r\n #topPanel\r\n initial=\"100%\"\r\n initialMobile=\"100%\"\r\n collapsed=\"calc(100% - 58px)\"\r\n collapsedMobile=\"calc(100% - 58px)\"\r\n expanded=\"60%\"\r\n expandedMobile=\"60%\"\r\n [state]=\"(feature$ |\u00A0async) ? topPanelState : 'initial'\">\r\n\r\n <div class=\"igo-content\">\r\n <igo-search-results\r\n [store]=\"store\"\r\n [showIcons]=\"showIcons\"\r\n [term]=\"term\"\r\n [termSplitter]=\"termSplitter\"\r\n [settingsChange$]=\"settingsChange$\"\r\n placeholder=\"false\"\r\n (resultFocus)=\"onResultFocus($event)\"\r\n (resultSelect)=\"onResultSelect($event)\"\r\n (resultUnfocus)=\"onResultUnfocus($event)\"\r\n (resultMouseenter)=\"onResultFocus($event)\"\r\n (resultMouseleave)=\"onResultUnfocus($event)\"\r\n (moreResults)=\"onSearch($event)\">\r\n <ng-template #igoSearchItemToolbar let-result=\"result\">\r\n <igo-search-add-button\r\n [map]=\"map\"\r\n [layer]=\"result\">\r\n </igo-search-add-button>\r\n </ng-template>\r\n </igo-search-results>\r\n </div>\r\n\r\n <div igoFlexibleFill class=\"igo-content\">\r\n <igo-panel [title]=\"featureTitle\" *ngIf=\"feature$ |\u00A0async\">\r\n\r\n <button\r\n mat-icon-button\r\n panelLeftButton\r\n class=\"igo-icon-button\"\r\n (click)=\"toggleTopPanel()\">\r\n <mat-icon [svgIcon]=\"(topPanelState$ | async) === 'collapsed' ? 'arrow-up' : 'arrow-down'\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n *ngIf=\"feature.geometry\"\r\n mat-icon-button\r\n panelRightButton\r\n class=\"igo-icon-button\"\r\n [matTooltip]=\"((isSelectedResultOutOfView$ | async) ? 'igo.integration.searchResultsTool.zoomOnFeatureTooltipOutOfView' : 'igo.integration.searchResultsTool.zoomOnFeatureTooltip') | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"zoomToFeatureExtent()\">\r\n <mat-icon\r\n [matBadge]=\"(isSelectedResultOutOfView$ | async) ? '!' : ''\"\r\n matBadgeColor=\"accent\"\r\n matBadgeSize=\"small\"\r\n [matBadgeHidden]=\"(isSelectedResultOutOfView$ | async)===false\" \r\n svgIcon=\"magnify-plus-outline\"></mat-icon>\r\n </button>\r\n\r\n <igo-feature-details\r\n igoFeatureDetailsDirective\r\n [feature]=\"feature$ | async\"\r\n [map]=\"map\"\r\n [toolbox]=\"toolState.toolbox\"\r\n (routingEvent)=\"getRoute()\">\r\n </igo-feature-details>\r\n </igo-panel>\r\n </div>\r\n\r\n</igo-flexible>\r\n" }]
|
|
4998
|
+
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2.ConfigService }]; }, { showIcons: [{
|
|
4999
|
+
type: Input
|
|
5000
|
+
}], topPanelStateDefault: [{
|
|
4742
5001
|
type: Input
|
|
4743
5002
|
}], topPanelState: [{
|
|
4744
5003
|
type: Input
|
|
@@ -4751,20 +5010,18 @@ class IgoAppSearchResultsToolModule {
|
|
|
4751
5010
|
}
|
|
4752
5011
|
IgoAppSearchResultsToolModule.ɵfac = function IgoAppSearchResultsToolModule_Factory(t) { return new (t || IgoAppSearchResultsToolModule)(); };
|
|
4753
5012
|
IgoAppSearchResultsToolModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppSearchResultsToolModule });
|
|
4754
|
-
IgoAppSearchResultsToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
IgoCustomHtmlModule
|
|
4767
|
-
]] });
|
|
5013
|
+
IgoAppSearchResultsToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
5014
|
+
MatIconModule,
|
|
5015
|
+
MatBadgeModule,
|
|
5016
|
+
MatTooltipModule,
|
|
5017
|
+
MatButtonModule,
|
|
5018
|
+
IgoLanguageModule,
|
|
5019
|
+
IgoFeatureModule,
|
|
5020
|
+
IgoSearchModule,
|
|
5021
|
+
IgoFlexibleModule,
|
|
5022
|
+
IgoPanelModule,
|
|
5023
|
+
IgoFeatureDetailsModule,
|
|
5024
|
+
IgoCustomHtmlModule] });
|
|
4768
5025
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppSearchResultsToolModule, [{
|
|
4769
5026
|
type: NgModule,
|
|
4770
5027
|
args: [{
|
|
@@ -4804,7 +5061,7 @@ class IgoAppSearchModule {
|
|
|
4804
5061
|
}
|
|
4805
5062
|
IgoAppSearchModule.ɵfac = function IgoAppSearchModule_Factory(t) { return new (t || IgoAppSearchModule)(); };
|
|
4806
5063
|
IgoAppSearchModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppSearchModule });
|
|
4807
|
-
IgoAppSearchModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
5064
|
+
IgoAppSearchModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoAppSearchBarModule,
|
|
4808
5065
|
IgoAppSearchResultsToolModule] });
|
|
4809
5066
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppSearchModule, [{
|
|
4810
5067
|
type: NgModule,
|
|
@@ -4826,7 +5083,7 @@ let OgcFilterToolComponent = class OgcFilterToolComponent {
|
|
|
4826
5083
|
OgcFilterToolComponent.ɵfac = function OgcFilterToolComponent_Factory(t) { return new (t || OgcFilterToolComponent)(); };
|
|
4827
5084
|
OgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OgcFilterToolComponent, selectors: [["igo-ogc-filter-tool"]], decls: 1, vars: 0, consts: [["igoOgcFilterableListBinding", ""]], template: function OgcFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4828
5085
|
i0.ɵɵelement(0, "igo-ogc-filterable-list", 0);
|
|
4829
|
-
} },
|
|
5086
|
+
} }, dependencies: [i1$1.OgcFilterableListComponent, i1$1.OgcFilterableListBindingDirective], encapsulation: 2 });
|
|
4830
5087
|
OgcFilterToolComponent = __decorate([
|
|
4831
5088
|
ToolComponent({
|
|
4832
5089
|
name: 'ogcFilter',
|
|
@@ -4836,10 +5093,7 @@ OgcFilterToolComponent = __decorate([
|
|
|
4836
5093
|
], OgcFilterToolComponent);
|
|
4837
5094
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OgcFilterToolComponent, [{
|
|
4838
5095
|
type: Component,
|
|
4839
|
-
args: [{
|
|
4840
|
-
selector: 'igo-ogc-filter-tool',
|
|
4841
|
-
templateUrl: './ogc-filter-tool.component.html'
|
|
4842
|
-
}]
|
|
5096
|
+
args: [{ selector: 'igo-ogc-filter-tool', template: "<igo-ogc-filterable-list igoOgcFilterableListBinding></igo-ogc-filterable-list>\r\n\r\n\r\n" }]
|
|
4843
5097
|
}], function () { return []; }, null); })();
|
|
4844
5098
|
|
|
4845
5099
|
let TimeFilterToolComponent = class TimeFilterToolComponent {
|
|
@@ -4848,7 +5102,7 @@ let TimeFilterToolComponent = class TimeFilterToolComponent {
|
|
|
4848
5102
|
TimeFilterToolComponent.ɵfac = function TimeFilterToolComponent_Factory(t) { return new (t || TimeFilterToolComponent)(); };
|
|
4849
5103
|
TimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeFilterToolComponent, selectors: [["igo-time-filter-tool"]], decls: 1, vars: 0, consts: [["igoTimeFilterListBinding", ""]], template: function TimeFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4850
5104
|
i0.ɵɵelement(0, "igo-time-filter-list", 0);
|
|
4851
|
-
} },
|
|
5105
|
+
} }, dependencies: [i1$1.TimeFilterListComponent, i1$1.TimeFilterListBindingDirective], encapsulation: 2 });
|
|
4852
5106
|
TimeFilterToolComponent = __decorate([
|
|
4853
5107
|
ToolComponent({
|
|
4854
5108
|
name: 'timeFilter',
|
|
@@ -4858,10 +5112,7 @@ TimeFilterToolComponent = __decorate([
|
|
|
4858
5112
|
], TimeFilterToolComponent);
|
|
4859
5113
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeFilterToolComponent, [{
|
|
4860
5114
|
type: Component,
|
|
4861
|
-
args: [{
|
|
4862
|
-
selector: 'igo-time-filter-tool',
|
|
4863
|
-
templateUrl: './time-filter-tool.component.html'
|
|
4864
|
-
}]
|
|
5115
|
+
args: [{ selector: 'igo-time-filter-tool', template: "<igo-time-filter-list igoTimeFilterListBinding></igo-time-filter-list>\r\n" }]
|
|
4865
5116
|
}], function () { return []; }, null); })();
|
|
4866
5117
|
|
|
4867
5118
|
function SpatialFilterToolComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -5095,7 +5346,6 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5095
5346
|
* Try to add zone feature to the map overlay
|
|
5096
5347
|
*/
|
|
5097
5348
|
tryAddFeaturesToMap(features, buffer) {
|
|
5098
|
-
var _a, _b, _c, _d;
|
|
5099
5349
|
let i = 1;
|
|
5100
5350
|
for (const feature of features) {
|
|
5101
5351
|
if (this.type === SpatialFilterType.Predefined) {
|
|
@@ -5103,13 +5353,13 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5103
5353
|
if (layer.options._internal &&
|
|
5104
5354
|
layer.options._internal.code === feature.properties.code &&
|
|
5105
5355
|
!buffer) {
|
|
5106
|
-
if (!
|
|
5356
|
+
if (!layer.title?.startsWith('Zone')) {
|
|
5107
5357
|
const index = this.layers.indexOf(layer);
|
|
5108
5358
|
this.layers.splice(index, 1);
|
|
5109
5359
|
}
|
|
5110
5360
|
return;
|
|
5111
5361
|
}
|
|
5112
|
-
if (
|
|
5362
|
+
if (layer.title?.startsWith('Zone')) {
|
|
5113
5363
|
this.activeLayers = [];
|
|
5114
5364
|
const index = this.layers.indexOf(layer);
|
|
5115
5365
|
this.layers.splice(index, 1);
|
|
@@ -5120,7 +5370,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5120
5370
|
else {
|
|
5121
5371
|
if (buffer) {
|
|
5122
5372
|
for (const layer of this.activeLayers) {
|
|
5123
|
-
if (this.activeLayers.length === 1 &&
|
|
5373
|
+
if (this.activeLayers.length === 1 && layer.title?.startsWith('Zone')) {
|
|
5124
5374
|
const index = this.layers.indexOf(layer);
|
|
5125
5375
|
this.layers.splice(index, 1);
|
|
5126
5376
|
this.map.removeLayer(layer);
|
|
@@ -5130,10 +5380,36 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5130
5380
|
this.activeLayers = [];
|
|
5131
5381
|
}
|
|
5132
5382
|
for (const layer of this.layers) {
|
|
5133
|
-
if (
|
|
5383
|
+
if (layer.title?.startsWith('Zone')) {
|
|
5134
5384
|
i++;
|
|
5135
5385
|
}
|
|
5136
5386
|
}
|
|
5387
|
+
this.defaultStyle = (_feature, resolution) => {
|
|
5388
|
+
const coordinates = features[0].coordinates;
|
|
5389
|
+
return new olstyle.Style({
|
|
5390
|
+
image: new olstyle.Circle({
|
|
5391
|
+
radius: coordinates
|
|
5392
|
+
? this.buffer /
|
|
5393
|
+
Math.cos((Math.PI / 180) * coordinates[1]) /
|
|
5394
|
+
resolution
|
|
5395
|
+
: undefined,
|
|
5396
|
+
fill: new olstyle.Fill({
|
|
5397
|
+
color: 'rgba(200, 200, 20, 0.2)'
|
|
5398
|
+
}),
|
|
5399
|
+
stroke: new olstyle.Stroke({
|
|
5400
|
+
width: 1,
|
|
5401
|
+
color: 'orange'
|
|
5402
|
+
})
|
|
5403
|
+
}),
|
|
5404
|
+
stroke: new olstyle.Stroke({
|
|
5405
|
+
width: 1,
|
|
5406
|
+
color: 'orange'
|
|
5407
|
+
}),
|
|
5408
|
+
fill: new olstyle.Fill({
|
|
5409
|
+
color: 'rgba(200, 200, 20, 0.2)'
|
|
5410
|
+
})
|
|
5411
|
+
});
|
|
5412
|
+
};
|
|
5137
5413
|
this.dataSourceService
|
|
5138
5414
|
.createAsyncDataSource({
|
|
5139
5415
|
type: 'vector',
|
|
@@ -5151,33 +5427,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5151
5427
|
: undefined
|
|
5152
5428
|
},
|
|
5153
5429
|
source: dataSource,
|
|
5154
|
-
visible: true
|
|
5155
|
-
style: (_feature, resolution) => {
|
|
5156
|
-
const coordinates = features[0].coordinates;
|
|
5157
|
-
return new olstyle.Style({
|
|
5158
|
-
image: new olstyle.Circle({
|
|
5159
|
-
radius: coordinates
|
|
5160
|
-
? this.buffer /
|
|
5161
|
-
Math.cos((Math.PI / 180) * coordinates[1]) /
|
|
5162
|
-
resolution
|
|
5163
|
-
: undefined,
|
|
5164
|
-
fill: new olstyle.Fill({
|
|
5165
|
-
color: 'rgba(200, 200, 20, 0.2)'
|
|
5166
|
-
}),
|
|
5167
|
-
stroke: new olstyle.Stroke({
|
|
5168
|
-
width: 1,
|
|
5169
|
-
color: 'orange'
|
|
5170
|
-
})
|
|
5171
|
-
}),
|
|
5172
|
-
stroke: new olstyle.Stroke({
|
|
5173
|
-
width: 1,
|
|
5174
|
-
color: 'orange'
|
|
5175
|
-
}),
|
|
5176
|
-
fill: new olstyle.Fill({
|
|
5177
|
-
color: 'rgba(200, 200, 20, 0.2)'
|
|
5178
|
-
})
|
|
5179
|
-
});
|
|
5180
|
-
}
|
|
5430
|
+
visible: true
|
|
5181
5431
|
});
|
|
5182
5432
|
const featuresOl = features.map(f => {
|
|
5183
5433
|
return featureToOl(f, this.map.projection);
|
|
@@ -5189,6 +5439,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5189
5439
|
}
|
|
5190
5440
|
const ol = dataSource.ol;
|
|
5191
5441
|
ol.addFeatures(featuresOl);
|
|
5442
|
+
olLayer.ol.setStyle(this.defaultStyle);
|
|
5192
5443
|
this.map.addLayer(olLayer);
|
|
5193
5444
|
this.layers.push(olLayer);
|
|
5194
5445
|
this.activeLayers.push(olLayer);
|
|
@@ -5201,14 +5452,13 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5201
5452
|
* Necessary to create clusters
|
|
5202
5453
|
*/
|
|
5203
5454
|
tryAddPointToMap(features, id) {
|
|
5204
|
-
var _a;
|
|
5205
5455
|
let i = 1;
|
|
5206
5456
|
if (features.length) {
|
|
5207
5457
|
if (this.map === undefined) {
|
|
5208
5458
|
return;
|
|
5209
5459
|
}
|
|
5210
5460
|
for (const layer of this.layers) {
|
|
5211
|
-
if (
|
|
5461
|
+
if (layer.title?.startsWith(features[0].meta.title)) {
|
|
5212
5462
|
i++;
|
|
5213
5463
|
}
|
|
5214
5464
|
}
|
|
@@ -5279,14 +5529,13 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5279
5529
|
* Try to add line or polygon features to the map
|
|
5280
5530
|
*/
|
|
5281
5531
|
tryAddLayerToMap(features, id) {
|
|
5282
|
-
var _a;
|
|
5283
5532
|
let i = 1;
|
|
5284
5533
|
if (features.length) {
|
|
5285
5534
|
if (this.map === undefined) {
|
|
5286
5535
|
return;
|
|
5287
5536
|
}
|
|
5288
5537
|
for (const layer of this.layers) {
|
|
5289
|
-
if (
|
|
5538
|
+
if (layer.title?.startsWith(features[0].meta.title)) {
|
|
5290
5539
|
i++;
|
|
5291
5540
|
}
|
|
5292
5541
|
}
|
|
@@ -5340,16 +5589,14 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5340
5589
|
this.activeLayers.push(layer);
|
|
5341
5590
|
}
|
|
5342
5591
|
};
|
|
5343
|
-
SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(
|
|
5592
|
+
SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i7.MatIconRegistry), i0.ɵɵdirectiveInject(i1$1.SpatialFilterService), i0.ɵɵdirectiveInject(i1$1.DataSourceService), i0.ɵɵdirectiveInject(i1$1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.MessageService), i0.ɵɵdirectiveInject(i2.LanguageService), i0.ɵɵdirectiveInject(ImportExportState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(WorkspaceState), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5344
5593
|
SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace", "entityChange"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5345
|
-
i0.ɵɵelementStart(0, "igo-panel");
|
|
5346
|
-
i0.ɵɵelementStart(1, "igo-spatial-filter-type", 0);
|
|
5594
|
+
i0.ɵɵelementStart(0, "igo-panel")(1, "igo-spatial-filter-type", 0);
|
|
5347
5595
|
i0.ɵɵlistener("eventType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventType_1_listener($event) { return ctx.getOutputType($event); })("eventQueryType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventQueryType_1_listener($event) { return ctx.getOutputQueryType($event); })("zoneChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneChange_1_listener($event) { return ctx.onZoneChange($event); })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneWithBufferChange_1_listener($event) { return ctx.onZoneChange($event, true); })("bufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_bufferChange_1_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_measureUnitChange_1_listener($event) { return ctx.measureUnit = $event; });
|
|
5348
5596
|
i0.ɵɵelementEnd();
|
|
5349
5597
|
i0.ɵɵelementStart(2, "igo-spatial-filter-item", 1);
|
|
5350
5598
|
i0.ɵɵlistener("radiusEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_radiusEvent_2_listener($event) { return ctx.buffer = $event; })("bufferEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_bufferEvent_2_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_measureUnitChange_2_listener($event) { return ctx.measureUnit = $event; })("freehandControl", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_freehandControl_2_listener($event) { return ctx.freehandDrawIsActive = $event; })("drawZoneEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_drawZoneEvent_2_listener($event) { return ctx.zone = $event; })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_zoneWithBufferChange_2_listener($event) { return ctx.onZoneChange($event, true); })("itemTypeChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_itemTypeChange_2_listener($event) { return ctx.itemType = $event; })("thematicChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_thematicChange_2_listener($event) { return ctx.thematics = $event; })("toggleSearch", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_toggleSearch_2_listener() { return ctx.getOutputToggleSearch(); })("clearButtonEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearButtonEvent_2_listener() { return ctx.clearMap(); })("clearSearchEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearSearchEvent_2_listener() { return ctx.getOutputClearSearch(); })("export", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_export_2_listener() { return ctx.activateExportTool(); })("openWorkspace", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_openWorkspace_2_listener() { return ctx.activateWorkspace(); })("entityChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_entityChange_2_listener($event) { return ctx.activateWorkspace($event); });
|
|
5351
|
-
i0.ɵɵelementEnd();
|
|
5352
|
-
i0.ɵɵelementEnd();
|
|
5599
|
+
i0.ɵɵelementEnd()();
|
|
5353
5600
|
i0.ɵɵelementStart(3, "igo-panel");
|
|
5354
5601
|
i0.ɵɵtemplate(4, SpatialFilterToolComponent_ng_container_4_Template, 2, 1, "ng-container", 2);
|
|
5355
5602
|
i0.ɵɵpipe(5, "async");
|
|
@@ -5361,7 +5608,7 @@ SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
5361
5608
|
i0.ɵɵproperty("type", ctx.type)("queryType", ctx.queryType)("map", ctx.map)("zone", ctx.zone)("loading", ctx.loading)("store", ctx.store)("layers", ctx.activeLayers)("allLayers", ctx.layers)("thematicLength", ctx.thematicLength);
|
|
5362
5609
|
i0.ɵɵadvance(2);
|
|
5363
5610
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
|
|
5364
|
-
} },
|
|
5611
|
+
} }, dependencies: [i1$1.SpatialFilterTypeComponent, i1$1.SpatialFilterItemComponent, i6.NgIf, i6.AsyncPipe], changeDetection: 0 });
|
|
5365
5612
|
SpatialFilterToolComponent = __decorate([
|
|
5366
5613
|
ToolComponent({
|
|
5367
5614
|
name: 'spatialFilter',
|
|
@@ -5374,13 +5621,8 @@ SpatialFilterToolComponent = __decorate([
|
|
|
5374
5621
|
], SpatialFilterToolComponent);
|
|
5375
5622
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SpatialFilterToolComponent, [{
|
|
5376
5623
|
type: Component,
|
|
5377
|
-
args: [{
|
|
5378
|
-
|
|
5379
|
-
templateUrl: './spatial-filter-tool.component.html',
|
|
5380
|
-
styleUrls: ['./spatial-filter-tool.component.scss'],
|
|
5381
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5382
|
-
}]
|
|
5383
|
-
}], function () { return [{ type: i6.MatIconRegistry }, { type: i1$1.SpatialFilterService }, { type: i1$1.DataSourceService }, { type: i1$1.LayerService }, { type: MapState }, { type: i2$1.MessageService }, { type: i2$1.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0.ChangeDetectorRef }]; }, { type: [{
|
|
5624
|
+
args: [{ selector: 'igo-spatial-filter-tool', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-panel>\r\n <igo-spatial-filter-type\r\n [store]=\"spatialListStore\"\r\n [selectedQueryType]=\"queryType\"\r\n [zone]=\"zone\"\r\n [layers]=\"activeLayers\"\r\n (eventType)=\"getOutputType($event)\"\r\n (eventQueryType)=\"getOutputQueryType($event)\"\r\n (zoneChange)=\"onZoneChange($event)\"\r\n (zoneWithBufferChange)=\"onZoneChange($event, true)\"\r\n (bufferChange)=\"buffer = $event\"\r\n (measureUnitChange)=\"measureUnit = $event\">\r\n </igo-spatial-filter-type>\r\n\r\n <igo-spatial-filter-item\r\n [type]=\"type\"\r\n [queryType]=\"queryType\"\r\n [map]=\"map\"\r\n [zone]=\"zone\"\r\n [loading]=\"loading\"\r\n [store]=\"store\"\r\n [layers]=\"activeLayers\"\r\n [allLayers]=\"layers\"\r\n [thematicLength]=\"thematicLength\"\r\n (radiusEvent)=\"buffer = $event\"\r\n (bufferEvent)=\"buffer = $event\"\r\n (measureUnitChange)=\"measureUnit = $event\"\r\n (freehandControl)=\"freehandDrawIsActive = $event\"\r\n (drawZoneEvent)=\"zone = $event\"\r\n (zoneWithBufferChange)=\"onZoneChange($event, true)\"\r\n (itemTypeChange)=\"itemType = $event\"\r\n (thematicChange)=\"thematics = $event\"\r\n (toggleSearch)=\"getOutputToggleSearch()\"\r\n (clearButtonEvent)=\"clearMap()\"\r\n (clearSearchEvent)=\"getOutputClearSearch()\"\r\n (export)=\"activateExportTool()\"\r\n (openWorkspace)=\"activateWorkspace()\"\r\n (entityChange)=\"activateWorkspace($event)\">\r\n </igo-spatial-filter-item>\r\n</igo-panel>\r\n\r\n<igo-panel>\r\n <ng-container *ngIf=\"selectedFeature$ | async as feature\">\r\n <igo-feature-details [feature]=\"feature\"></igo-feature-details>\r\n </ng-container>\r\n</igo-panel>" }]
|
|
5625
|
+
}], function () { return [{ type: i7.MatIconRegistry }, { type: i1$1.SpatialFilterService }, { type: i1$1.DataSourceService }, { type: i1$1.LayerService }, { type: MapState }, { type: i2.MessageService }, { type: i2.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0.ChangeDetectorRef }]; }, { type: [{
|
|
5384
5626
|
type: Input
|
|
5385
5627
|
}], itemType: [{
|
|
5386
5628
|
type: Input
|
|
@@ -5419,7 +5661,7 @@ ActiveTimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
5419
5661
|
i0.ɵɵelement(0, "igo-time-filter-item", 0);
|
|
5420
5662
|
} if (rf & 2) {
|
|
5421
5663
|
i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
5422
|
-
} },
|
|
5664
|
+
} }, dependencies: [i1$1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
|
|
5423
5665
|
ActiveTimeFilterToolComponent = __decorate([
|
|
5424
5666
|
ToolComponent({
|
|
5425
5667
|
name: 'activeTimeFilter',
|
|
@@ -5430,11 +5672,7 @@ ActiveTimeFilterToolComponent = __decorate([
|
|
|
5430
5672
|
], ActiveTimeFilterToolComponent);
|
|
5431
5673
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActiveTimeFilterToolComponent, [{
|
|
5432
5674
|
type: Component,
|
|
5433
|
-
args: [{
|
|
5434
|
-
selector: 'igo-active-time-filter-tool',
|
|
5435
|
-
templateUrl: './active-time-filter-tool.component.html',
|
|
5436
|
-
animations: [toolSlideInOut$1()]
|
|
5437
|
-
}]
|
|
5675
|
+
args: [{ selector: 'igo-active-time-filter-tool', animations: [toolSlideInOut$1()], template: "<igo-time-filter-item\r\n [map]=\"map\"\r\n [layer]=\"layer\"\r\n [header]=\"false\"\r\n [@toolSlideInOut]=\"animate\">\r\n</igo-time-filter-item>\r\n" }]
|
|
5438
5676
|
}], function () { return [{ type: MapState }]; }, null); })();
|
|
5439
5677
|
|
|
5440
5678
|
function toolSlideInOut(speed = '300ms', type = 'ease-in-out') {
|
|
@@ -5468,7 +5706,7 @@ ActiveOgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
5468
5706
|
i0.ɵɵelement(0, "igo-ogc-filterable-item", 0);
|
|
5469
5707
|
} if (rf & 2) {
|
|
5470
5708
|
i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
5471
|
-
} },
|
|
5709
|
+
} }, dependencies: [i1$1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
|
|
5472
5710
|
ActiveOgcFilterToolComponent = __decorate([
|
|
5473
5711
|
ToolComponent({
|
|
5474
5712
|
name: 'activeOgcFilter',
|
|
@@ -5479,11 +5717,7 @@ ActiveOgcFilterToolComponent = __decorate([
|
|
|
5479
5717
|
], ActiveOgcFilterToolComponent);
|
|
5480
5718
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActiveOgcFilterToolComponent, [{
|
|
5481
5719
|
type: Component,
|
|
5482
|
-
args: [{
|
|
5483
|
-
selector: 'igo-active-ogc-filter-tool',
|
|
5484
|
-
templateUrl: './active-ogc-filter-tool.component.html',
|
|
5485
|
-
animations: [toolSlideInOut()]
|
|
5486
|
-
}]
|
|
5720
|
+
args: [{ selector: 'igo-active-ogc-filter-tool', animations: [toolSlideInOut()], template: "<igo-ogc-filterable-item\r\n [map]=\"map\"\r\n [layer]=\"layer\"\r\n [header]=\"false\"\r\n [@toolSlideInOut]=\"animate\">\r\n</igo-ogc-filterable-item>\r\n\r\n\r\n" }]
|
|
5487
5721
|
}], function () { return [{ type: MapState }]; }, null); })();
|
|
5488
5722
|
|
|
5489
5723
|
class IgoAppFilterModule {
|
|
@@ -5496,7 +5730,7 @@ class IgoAppFilterModule {
|
|
|
5496
5730
|
}
|
|
5497
5731
|
IgoAppFilterModule.ɵfac = function IgoAppFilterModule_Factory(t) { return new (t || IgoAppFilterModule)(); };
|
|
5498
5732
|
IgoAppFilterModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppFilterModule });
|
|
5499
|
-
IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
5733
|
+
IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoFilterModule, IgoQueryModule, CommonModule] });
|
|
5500
5734
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppFilterModule, [{
|
|
5501
5735
|
type: NgModule,
|
|
5502
5736
|
args: [{
|
|
@@ -5531,7 +5765,7 @@ IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[IgoF
|
|
|
5531
5765
|
function AboutToolComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
5532
5766
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
5533
5767
|
i0.ɵɵelementStart(0, "button", 7);
|
|
5534
|
-
i0.ɵɵlistener("click", function AboutToolComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.openGuide(); });
|
|
5768
|
+
i0.ɵɵlistener("click", function AboutToolComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.openGuide()); });
|
|
5535
5769
|
i0.ɵɵpipe(1, "translate");
|
|
5536
5770
|
i0.ɵɵelementStart(2, "span");
|
|
5537
5771
|
i0.ɵɵtext(3);
|
|
@@ -5564,7 +5798,7 @@ function AboutToolComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
5564
5798
|
function AboutToolComponent_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
5565
5799
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
5566
5800
|
i0.ɵɵelementStart(0, "button", 10);
|
|
5567
|
-
i0.ɵɵlistener("click", function AboutToolComponent_button_6_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r9); const guide_r7 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.openGuide(guide_r7); });
|
|
5801
|
+
i0.ɵɵlistener("click", function AboutToolComponent_button_6_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r9); const guide_r7 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.openGuide(guide_r7)); });
|
|
5568
5802
|
i0.ɵɵtext(1);
|
|
5569
5803
|
i0.ɵɵelementEnd();
|
|
5570
5804
|
} if (rf & 2) {
|
|
@@ -5652,10 +5886,9 @@ let AboutToolComponent = class AboutToolComponent {
|
|
|
5652
5886
|
return name;
|
|
5653
5887
|
}
|
|
5654
5888
|
};
|
|
5655
|
-
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2
|
|
5889
|
+
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2.ConfigService), i0.ɵɵdirectiveInject(i2$1.AuthService), i0.ɵɵdirectiveInject(i3$1.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2.LanguageService)); };
|
|
5656
5890
|
AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToolComponent, selectors: [["igo-about-tool"]], inputs: { headerHtml: "headerHtml", html: "html", discoverTitleInLocale: "discoverTitleInLocale", trainingGuideURLs: "trainingGuideURLs" }, decls: 10, vars: 11, consts: [["mat-raised-button", "", "tourToStart", "global", "menuIsOpen", "true", "styleButton", "raised", 3, "discoverTitleInLocale$"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "click", 4, "ngIf"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["menu", "matMenu"], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "click"], ["svgIcon", "file-document"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click"]], template: function AboutToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5657
|
-
i0.ɵɵelement(0, "p");
|
|
5658
|
-
i0.ɵɵelement(1, "igo-interactive-tour", 0);
|
|
5891
|
+
i0.ɵɵelement(0, "p")(1, "igo-interactive-tour", 0);
|
|
5659
5892
|
i0.ɵɵtemplate(2, AboutToolComponent_button_2_Template, 6, 7, "button", 1);
|
|
5660
5893
|
i0.ɵɵtemplate(3, AboutToolComponent_button_3_Template, 6, 8, "button", 2);
|
|
5661
5894
|
i0.ɵɵelementStart(4, "mat-menu", null, 3);
|
|
@@ -5677,7 +5910,7 @@ AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToo
|
|
|
5677
5910
|
i0.ɵɵproperty("ngIf", ctx.headerHtml !== "");
|
|
5678
5911
|
i0.ɵɵadvance(1);
|
|
5679
5912
|
i0.ɵɵproperty("html", i0.ɵɵpipeBind2(9, 6, ctx.html, i0.ɵɵpureFunction1(9, _c0, ctx.version)));
|
|
5680
|
-
} },
|
|
5913
|
+
} }, dependencies: [i4.CustomHtmlComponent, i10.MatButton, i5.MatTooltip, i7.MatIcon, i8$3.MatMenu, i8$3.MatMenuItem, i8$3.MatMenuTrigger, i4.InteractiveTourComponent, i6.NgForOf, i6.NgIf, i8.TranslatePipe], styles: ["igo-interactive-tour[_ngcontent-%COMP%]{margin-left:20px}.training-guide-button[_ngcontent-%COMP%]{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}"] });
|
|
5681
5914
|
AboutToolComponent = __decorate([
|
|
5682
5915
|
ToolComponent({
|
|
5683
5916
|
name: 'about',
|
|
@@ -5687,12 +5920,8 @@ AboutToolComponent = __decorate([
|
|
|
5687
5920
|
], AboutToolComponent);
|
|
5688
5921
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AboutToolComponent, [{
|
|
5689
5922
|
type: Component,
|
|
5690
|
-
args: [{
|
|
5691
|
-
|
|
5692
|
-
templateUrl: './about-tool.component.html',
|
|
5693
|
-
styleUrls: ['./about-tool.component.scss']
|
|
5694
|
-
}]
|
|
5695
|
-
}], function () { return [{ type: i2$1.ConfigService }, { type: i2.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$1.LanguageService }]; }, { headerHtml: [{
|
|
5923
|
+
args: [{ selector: 'igo-about-tool', template: "<p></p>\r\n<igo-interactive-tour\r\n mat-raised-button\r\n tourToStart=\"global\"\r\n menuIsOpen=true\r\n styleButton=\"raised\"\r\n [discoverTitleInLocale$]=\"discoverTitleInLocale$\">\r\n</igo-interactive-tour>\r\n\r\n<button *ngIf=\"auth.authenticated && trainingGuideURLs && trainingGuideURLs.length === 1\"\r\n class=\"training-guide-button\"\r\n mat-raised-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [disabled]=\"loading\"\r\n [matTooltip]=\"'igo.integration.aboutTool.trainingGuideTooltip' | translate\"\r\n (click)=\"openGuide()\">\r\n <span>{{'igo.integration.aboutTool.trainingGuide' | translate}}</span>\r\n <mat-icon svgIcon=\"file-document\"></mat-icon>\r\n</button>\r\n\r\n<button *ngIf=\"auth.authenticated && trainingGuideURLs && trainingGuideURLs.length > 1\"\r\n class=\"training-guide-button\"\r\n mat-raised-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [disabled]=\"loading\"\r\n [matTooltip]=\"'igo.integration.aboutTool.trainingGuideTooltip' | translate\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <span>{{'igo.integration.aboutTool.trainingGuide' | translate}}</span>\r\n <mat-icon svgIcon=\"file-document\"></mat-icon>\r\n</button>\r\n\r\n<mat-menu #menu=\"matMenu\">\r\n <button *ngFor=\"let guide of trainingGuideURLs\" mat-menu-item (click)=\"openGuide(guide)\">{{formatFileName(guide)}}</button>\r\n</mat-menu>\r\n\r\n<igo-custom-html *ngIf=\"headerHtml !== ''\" class=\"mat-typography\"\r\n [html]=\"headerHtml | translate\">\r\n</igo-custom-html>\r\n\r\n<igo-custom-html class=\"mat-typography\"\r\n [html]=\"html | translate: {version: version}\">\r\n</igo-custom-html>\r\n", styles: ["igo-interactive-tour{margin-left:20px}.training-guide-button{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}\n"] }]
|
|
5924
|
+
}], function () { return [{ type: i2.ConfigService }, { type: i2$1.AuthService }, { type: i3$1.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2.LanguageService }]; }, { headerHtml: [{
|
|
5696
5925
|
type: Input
|
|
5697
5926
|
}], html: [{
|
|
5698
5927
|
type: Input
|
|
@@ -5712,16 +5941,14 @@ class IgoAppAboutModule {
|
|
|
5712
5941
|
}
|
|
5713
5942
|
IgoAppAboutModule.ɵfac = function IgoAppAboutModule_Factory(t) { return new (t || IgoAppAboutModule)(); };
|
|
5714
5943
|
IgoAppAboutModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppAboutModule });
|
|
5715
|
-
IgoAppAboutModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
CommonModule
|
|
5724
|
-
]] });
|
|
5944
|
+
IgoAppAboutModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoLanguageModule,
|
|
5945
|
+
IgoCustomHtmlModule,
|
|
5946
|
+
MatButtonModule,
|
|
5947
|
+
MatTooltipModule,
|
|
5948
|
+
MatIconModule,
|
|
5949
|
+
MatMenuModule,
|
|
5950
|
+
IgoInteractiveTourModule,
|
|
5951
|
+
CommonModule] });
|
|
5725
5952
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppAboutModule, [{
|
|
5726
5953
|
type: NgModule,
|
|
5727
5954
|
args: [{
|
|
@@ -5753,7 +5980,7 @@ class IgoAppStorageModule {
|
|
|
5753
5980
|
}
|
|
5754
5981
|
IgoAppStorageModule.ɵfac = function IgoAppStorageModule_Factory(t) { return new (t || IgoAppStorageModule)(); };
|
|
5755
5982
|
IgoAppStorageModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppStorageModule });
|
|
5756
|
-
IgoAppStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({
|
|
5983
|
+
IgoAppStorageModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
5757
5984
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppStorageModule, [{
|
|
5758
5985
|
type: NgModule,
|
|
5759
5986
|
args: [{
|
|
@@ -5767,7 +5994,7 @@ class IgoIntegrationModule {
|
|
|
5767
5994
|
}
|
|
5768
5995
|
IgoIntegrationModule.ɵfac = function IgoIntegrationModule_Factory(t) { return new (t || IgoIntegrationModule)(); };
|
|
5769
5996
|
IgoIntegrationModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoIntegrationModule });
|
|
5770
|
-
IgoIntegrationModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
5997
|
+
IgoIntegrationModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [IgoAppStorageModule,
|
|
5771
5998
|
IgoAppAnalyticsModule,
|
|
5772
5999
|
IgoAppContextModule,
|
|
5773
6000
|
IgoAppCatalogModule,
|
|
@@ -5823,7 +6050,7 @@ class IgoAppToolModule {
|
|
|
5823
6050
|
}
|
|
5824
6051
|
IgoAppToolModule.ɵfac = function IgoAppToolModule_Factory(t) { return new (t || IgoAppToolModule)(); };
|
|
5825
6052
|
IgoAppToolModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoAppToolModule });
|
|
5826
|
-
IgoAppToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({
|
|
6053
|
+
IgoAppToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
5827
6054
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoAppToolModule, [{
|
|
5828
6055
|
type: NgModule,
|
|
5829
6056
|
args: [{
|
|
@@ -5888,14 +6115,14 @@ class AnalyticsListenerService {
|
|
|
5888
6115
|
});
|
|
5889
6116
|
}
|
|
5890
6117
|
}
|
|
5891
|
-
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2
|
|
6118
|
+
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2.AnalyticsService), i0.ɵɵinject(i2$1.AuthService), i0.ɵɵinject(ContextState), i0.ɵɵinject(SearchState), i0.ɵɵinject(ToolState)); };
|
|
5892
6119
|
AnalyticsListenerService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsListenerService, factory: AnalyticsListenerService.ɵfac, providedIn: 'root' });
|
|
5893
6120
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnalyticsListenerService, [{
|
|
5894
6121
|
type: Injectable,
|
|
5895
6122
|
args: [{
|
|
5896
6123
|
providedIn: 'root'
|
|
5897
6124
|
}]
|
|
5898
|
-
}], function () { return [{ type: i2
|
|
6125
|
+
}], function () { return [{ type: i2.AnalyticsService }, { type: i2$1.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null); })();
|
|
5899
6126
|
|
|
5900
6127
|
/**
|
|
5901
6128
|
* Service that holds the state of the query module
|
|
@@ -5918,14 +6145,14 @@ class QueryState {
|
|
|
5918
6145
|
}
|
|
5919
6146
|
}
|
|
5920
6147
|
}
|
|
5921
|
-
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2
|
|
6148
|
+
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2.ConfigService)); };
|
|
5922
6149
|
QueryState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryState, factory: QueryState.ɵfac, providedIn: 'root' });
|
|
5923
6150
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryState, [{
|
|
5924
6151
|
type: Injectable,
|
|
5925
6152
|
args: [{
|
|
5926
6153
|
providedIn: 'root'
|
|
5927
6154
|
}]
|
|
5928
|
-
}], function () { return [{ type: i2
|
|
6155
|
+
}], function () { return [{ type: i2.ConfigService }]; }, null); })();
|
|
5929
6156
|
|
|
5930
6157
|
/*
|
|
5931
6158
|
* Public API Surface of tools
|
|
@@ -5935,5 +6162,5 @@ QueryState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryState, f
|
|
|
5935
6162
|
* Generated bundle index. Do not edit.
|
|
5936
6163
|
*/
|
|
5937
6164
|
|
|
5938
|
-
export { AboutToolComponent, ActiveOgcFilterToolComponent, ActiveTimeFilterToolComponent, AdvancedMapToolComponent, AnalyticsListenerService, CatalogBrowserToolComponent, CatalogLibraryToolComponent, CatalogState, ContextEditorToolComponent, ContextManagerToolComponent, ContextPermissionManagerToolComponent, ContextShareToolComponent, ContextState, DirectionState, DirectionsToolComponent, DrawState, DrawingToolComponent, FeatureActionsService, IgoAppAboutModule, IgoAppAnalyticsModule, IgoAppCatalogBrowserToolModule, IgoAppCatalogLibraryToolModule, IgoAppCatalogModule, IgoAppContextModule, IgoAppDirectionsModule, IgoAppDrawModule, IgoAppFilterModule, IgoAppImportExportModule, IgoAppMapModule, IgoAppMeasureModule, IgoAppMeasurerToolModule, IgoAppPrintModule, IgoAppSearchBarModule, IgoAppSearchModule, IgoAppSearchResultsToolModule, IgoAppStorageModule, IgoAppToolModule, IgoAppWorkspaceModule, IgoIntegrationModule, ImportExportMode, ImportExportState, ImportExportToolComponent, ImportExportType, MapDetailsToolComponent, MapLegendToolComponent, MapState, MapToolComponent, MapToolsComponent, MeasureState, MeasurerToolComponent, OgcFilterToolComponent, PrintToolComponent, QueryState, SearchBarBindingDirective, SearchResultsToolComponent, SearchState, SpatialFilterToolComponent, StorageState, TimeFilterToolComponent, ToolState, WfsActionsService, WorkspaceButtonComponent, WorkspaceState };
|
|
5939
|
-
//# sourceMappingURL=igo2-integration.
|
|
6165
|
+
export { AboutToolComponent, ActiveOgcFilterToolComponent, ActiveTimeFilterToolComponent, AdvancedMapToolComponent, AnalyticsListenerService, CatalogBrowserToolComponent, CatalogLibraryToolComponent, CatalogState, ContextEditorToolComponent, ContextManagerToolComponent, ContextPermissionManagerToolComponent, ContextShareToolComponent, ContextState, DirectionState, DirectionsToolComponent, DrawState, DrawingToolComponent, FeatureActionsService, IgoAppAboutModule, IgoAppAnalyticsModule, IgoAppCatalogBrowserToolModule, IgoAppCatalogLibraryToolModule, IgoAppCatalogModule, IgoAppContextModule, IgoAppDirectionsModule, IgoAppDrawModule, IgoAppFilterModule, IgoAppImportExportModule, IgoAppMapModule, IgoAppMeasureModule, IgoAppMeasurerToolModule, IgoAppPrintModule, IgoAppSearchBarModule, IgoAppSearchModule, IgoAppSearchResultsToolModule, IgoAppStorageModule, IgoAppToolModule, IgoAppWorkspaceModule, IgoIntegrationModule, ImportExportMode, ImportExportState, ImportExportToolComponent, ImportExportType, MapDetailsToolComponent, MapLegendToolComponent, MapProximityState, MapProximityToolComponent, MapState, MapToolComponent, MapToolsComponent, MeasureState, MeasurerToolComponent, OgcFilterToolComponent, PrintToolComponent, QueryState, SearchBarBindingDirective, SearchResultsToolComponent, SearchState, SpatialFilterToolComponent, StorageState, TimeFilterToolComponent, ToolState, WfsActionsService, WorkspaceButtonComponent, WorkspaceState };
|
|
6166
|
+
//# sourceMappingURL=igo2-integration.mjs.map
|