@igo2/geo 1.9.4 → 1.10.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/bundles/igo2-geo.umd.js +743 -320
- package/bundles/igo2-geo.umd.js.map +1 -1
- package/esm2015/lib/datasource/shared/capabilities.service.js +4 -4
- package/esm2015/lib/datasource/shared/datasources/datasource.interface.js +1 -1
- package/esm2015/lib/datasource/shared/datasources/mvt-datasource.js +2 -2
- package/esm2015/lib/filter/filter.module.js +6 -3
- package/esm2015/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.js +185 -95
- package/esm2015/lib/import-export/import-export/import-export.component.js +176 -65
- package/esm2015/lib/import-export/shared/export.interface.js +1 -1
- package/esm2015/lib/layer/layer-legend/layer-legend.component.js +17 -15
- package/esm2015/lib/layer/layer.module.js +8 -5
- package/esm2015/lib/layer/shared/layer.service.js +19 -16
- package/esm2015/lib/layer/shared/layers/layer.js +15 -5
- package/esm2015/lib/layer/shared/layers/vector-layer.interface.js +1 -1
- package/esm2015/lib/layer/shared/layers/vectortile-layer.interface.js +1 -1
- package/esm2015/lib/layer/shared/style.service.js +21 -16
- package/esm2015/lib/layer/shared/vector-style.interface.js +1 -1
- package/esm2015/lib/layer/utils/index.js +2 -1
- package/esm2015/lib/layer/utils/layer.utils.js +11 -0
- package/esm2015/lib/map/shared/hover-feature.directive.js +228 -78
- package/esm2015/lib/query/shared/query.interfaces.js +1 -1
- package/esm2015/lib/query/shared/query.utils.js +2 -2
- package/esm2015/lib/search/shared/search-pointer-summary.directive.js +15 -5
- package/esm2015/lib/search/shared/search.interfaces.js +1 -1
- package/esm2015/lib/search/shared/sources/icherche.js +3 -2
- package/fesm2015/igo2-geo.js +705 -315
- package/fesm2015/igo2-geo.js.map +1 -1
- package/lib/datasource/shared/datasources/datasource.interface.d.ts +1 -0
- package/lib/filter/filter.module.d.ts +1 -1
- package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +7 -2
- package/lib/import-export/import-export/import-export.component.d.ts +2 -0
- package/lib/import-export/shared/export.interface.d.ts +2 -1
- package/lib/layer/layer-legend/layer-legend.component.d.ts +0 -4
- package/lib/layer/layer.module.d.ts +1 -1
- package/lib/layer/shared/layer.service.d.ts +1 -1
- package/lib/layer/shared/layers/layer.d.ts +1 -0
- package/lib/layer/shared/layers/vector-layer.interface.d.ts +1 -0
- package/lib/layer/shared/layers/vectortile-layer.interface.d.ts +1 -0
- package/lib/layer/shared/style.service.d.ts +4 -1
- package/lib/layer/shared/vector-style.interface.d.ts +9 -5
- package/lib/layer/utils/index.d.ts +1 -0
- package/lib/layer/utils/layer.utils.d.ts +2 -0
- package/lib/map/shared/hover-feature.directive.d.ts +14 -5
- package/lib/query/shared/query.interfaces.d.ts +1 -1
- package/lib/search/shared/search-pointer-summary.directive.d.ts +6 -0
- package/lib/search/shared/search.interfaces.d.ts +1 -0
- package/package.json +4 -4
package/bundles/igo2-geo.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/badge'), require('@angular/material/icon'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@igo2/common'), require('@angular/material/button'), require('@igo2/core'), require('@angular/material/dialog'), require('@ngx-translate/core'), require('rxjs'), require('rxjs/operators'), require('@igo2/utils'), require('ol/Map'), require('ol/View'), require('ol/Feature'), require('ol/Geolocation'), require('ol/control/Attribution'), require('ol/control/ScaleLine'), require('ol/proj'), require('ol/proj/proj4'), require('ol/geom/Point'), require('ol/interaction'), require('ol/geom/Circle'), require('ol/style'), require('proj4'), require('ol/extent'), require('ol/geom/GeometryLayout'), require('ol/geom/Polygon'), require('ol/geom/LineString'), require('ol/format/GeoJSON'), require('ol/layer/Vector'), require('ol/Observable'), require('ol/easing'), require('ol/color'), require('ol/render'), require('ol/format/FormatType'), require('ol/proj/Projection'), require('ol/source/ImageWMS'), require('ts-md5'), require('ol/format/filter'), require('ol/format/WKT'), require('ol/format/WFS'), require('moment'), require('ol/format'), require('ol/format/GML2'), require('ol/format/GML3'), require('ol/format/GML32'), require('ol/format/OSMXML'), require('ol/source/Cluster'), require('ol/source/Vector'), require('ol/has'), require('ol/source/OSM'), require('ol/source/XYZ'), require('ol/loadingstrategy'), require('@angular/common/http'), require('ol/source/WMTS'), require('ol/tilegrid/WMTS'), require('ol/extent.js'), require('ol/source/CartoDB'), require('ol/format/EsriJSON'), require('ol/source/ImageArcGISRest'), require('ol/source/TileArcGISRest'), require('ol/source/TileDebug'), require('ol/tilegrid/TileGrid'), require('ol/source/VectorTile'), require('ol/format/MVT'), require('ts-cacheable'), require('ol/source/WMTS.js'), require('@igo2/auth'), require('ol/interaction/DragBox'), require('ol/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@igo2/geo', ['exports', '@angular/core', '@angular/common', '@angular/material/badge', '@angular/material/icon', '@angular/material/list', '@angular/material/tooltip', '@igo2/common', '@angular/material/button', '@igo2/core', '@angular/material/dialog', '@ngx-translate/core', 'rxjs', 'rxjs/operators', '@igo2/utils', 'ol/Map', 'ol/View', 'ol/Feature', 'ol/Geolocation', 'ol/control/Attribution', 'ol/control/ScaleLine', 'ol/proj', 'ol/proj/proj4', 'ol/geom/Point', 'ol/interaction', 'ol/geom/Circle', 'ol/style', 'proj4', 'ol/extent', 'ol/geom/GeometryLayout', 'ol/geom/Polygon', 'ol/geom/LineString', 'ol/format/GeoJSON', 'ol/layer/Vector', 'ol/Observable', 'ol/easing', 'ol/color', 'ol/render', 'ol/format/FormatType', 'ol/proj/Projection', 'ol/source/ImageWMS', 'ts-md5', 'ol/format/filter', 'ol/format/WKT', 'ol/format/WFS', 'moment', 'ol/format', 'ol/format/GML2', 'ol/format/GML3', 'ol/format/GML32', 'ol/format/OSMXML', 'ol/source/Cluster', 'ol/source/Vector', 'ol/has', 'ol/source/OSM', 'ol/source/XYZ', 'ol/loadingstrategy', '@angular/common/http', 'ol/source/WMTS', 'ol/tilegrid/WMTS', 'ol/extent.js', 'ol/source/CartoDB', 'ol/format/EsriJSON', 'ol/source/ImageArcGISRest', 'ol/source/TileArcGISRest', 'ol/source/TileDebug', 'ol/tilegrid/TileGrid', 'ol/source/VectorTile', 'ol/format/MVT', 'ts-cacheable', 'ol/source/WMTS.js', '@igo2/auth', 'ol/interaction/DragBox', 'ol/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.geo = {}), global.ng.core, global.ng.common, global.ng.material.badge, global.ng.material.icon, global.ng.material.list, global.ng.material.tooltip, global.common, global.ng.material.button, global.core, global.ng.material.dialog, global["ngxt-core"], global.rxjs, global.rxjs.operators, global.utils, global.olMap, global.olView, global.olFeature, global.olGeolocation, global.olAttribution, global.olControlScaleLine, global.olproj, global.olproj4, global.OlPoint, global.olinteraction, global.olCircle, global.olstyle, global.proj4, global.olextent, global.olGeometryLayout, global.OlPolygon, global.OlLineString, global.OlGeoJSON, global.OlVectorLayer, global.olobservable, global.oleasing, global.color, global.olRender, global.FormatType, global.olProjection, global.olSourceImageWMS, global.tsMd5, global.olfilter, global.olWKT, global.olFormatWFS, global.moment, global.olformat, global.olFormatGML2, global.olFormatGML3, global.olFormatGML32, global.olFormatOSMXML, global.olSourceCluster, global.OlVectorSource, global.has, global.olSourceOSM, global.olSourceXYZ, global.OlLoadingStrategy, global.ng.common.http, global.olSourceWMTS, global.olTileGridWMTS, global.extent_js, global.olSourceCarto, global.olFormatEsriJSON, global.olSourceImageArcGISRest, global.olSourceTileArcGISRest, global.TileDebug, global.olTileGrid, global.olSourceVectorTile, global.olFormatMVT, global.tsCacheable, global.WMTS_js, global.auth, global.OlDragBoxInteraction, global.
|
|
5
|
-
})(this, (function (exports, i0, i1$1, i9$1, i4, i1$3, i3, i6$1, i2, i2$1, i1, i7, rxjs, operators, utils, olMap, olView,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/badge'), require('@angular/material/icon'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@igo2/common'), require('@angular/material/button'), require('@igo2/core'), require('@angular/material/dialog'), require('@ngx-translate/core'), require('rxjs'), require('rxjs/operators'), require('@igo2/utils'), require('ol/Map'), require('ol/View'), require('ol/Feature'), require('ol/Geolocation'), require('ol/control/Attribution'), require('ol/control/ScaleLine'), require('ol/proj'), require('ol/proj/proj4'), require('ol/geom/Point'), require('ol/interaction'), require('ol/geom/Circle'), require('ol/style'), require('proj4'), require('ol/extent'), require('ol/geom/GeometryLayout'), require('ol/geom/Polygon'), require('ol/geom/LineString'), require('ol/format/GeoJSON'), require('ol/layer/Vector'), require('ol/Observable'), require('ol/easing'), require('ol/color'), require('ol/render'), require('ol/format/FormatType'), require('ol/proj/Projection'), require('ol/source/ImageWMS'), require('ts-md5'), require('ol/format/filter'), require('ol/format/WKT'), require('ol/format/WFS'), require('moment'), require('ol/format'), require('ol/format/GML2'), require('ol/format/GML3'), require('ol/format/GML32'), require('ol/format/OSMXML'), require('ol/source/Cluster'), require('ol/source/Vector'), require('ol/has'), require('ol/source/OSM'), require('ol/source/XYZ'), require('ol/loadingstrategy'), require('@angular/common/http'), require('ol/source/WMTS'), require('ol/tilegrid/WMTS'), require('ol/extent.js'), require('ol/source/CartoDB'), require('ol/format/EsriJSON'), require('ol/source/ImageArcGISRest'), require('ol/source/TileArcGISRest'), require('ol/source/TileDebug'), require('ol/tilegrid/TileGrid'), require('ol/source/VectorTile'), require('ol/format/MVT'), require('ts-cacheable'), require('ol/source/WMTS.js'), require('@igo2/auth'), require('ol/interaction/DragBox'), require('ol/layer/VectorTile'), require('ol/geom'), require('ol/layer/Image'), require('ol/layer/Tile'), require('ol/render/Feature'), require('@angular/animations'), require('ol-mapbox-style/dist/stylefunction'), require('striptags'), require('@angular/material/core'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/input'), require('@angular/material/menu'), require('@angular/material/slide-toggle'), require('@angular/material/slider'), require('@angular/material/autocomplete'), require('@angular/material/button-toggle'), require('ngx-color-picker'), require('@angular/platform-browser'), require('ol/interaction/Draw'), require('ol/interaction/Modify'), require('ol/interaction/Select'), require('ol/events/condition'), require('@turf/line-intersect'), require('@turf/helpers'), require('ol/sphere'), require('ol/Overlay'), require('@turf/point-on-feature'), require('@angular/material/datepicker'), require('@angular/material/radio'), require('@angular/material/table'), require('@angular/material/tabs'), require('@angular/material/tree'), require('@mat-datetimepicker/core'), require('ol/style/Style'), require('ol/interaction/Translate'), require('ol/geom/LinearRing'), require('@angular/cdk/collections'), require('@angular/cdk/tree'), require('file-saver'), require('jspdf'), require('html2canvas'), require('jszip'), require('@angular/cdk/drag-drop')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@igo2/geo', ['exports', '@angular/core', '@angular/common', '@angular/material/badge', '@angular/material/icon', '@angular/material/list', '@angular/material/tooltip', '@igo2/common', '@angular/material/button', '@igo2/core', '@angular/material/dialog', '@ngx-translate/core', 'rxjs', 'rxjs/operators', '@igo2/utils', 'ol/Map', 'ol/View', 'ol/Feature', 'ol/Geolocation', 'ol/control/Attribution', 'ol/control/ScaleLine', 'ol/proj', 'ol/proj/proj4', 'ol/geom/Point', 'ol/interaction', 'ol/geom/Circle', 'ol/style', 'proj4', 'ol/extent', 'ol/geom/GeometryLayout', 'ol/geom/Polygon', 'ol/geom/LineString', 'ol/format/GeoJSON', 'ol/layer/Vector', 'ol/Observable', 'ol/easing', 'ol/color', 'ol/render', 'ol/format/FormatType', 'ol/proj/Projection', 'ol/source/ImageWMS', 'ts-md5', 'ol/format/filter', 'ol/format/WKT', 'ol/format/WFS', 'moment', 'ol/format', 'ol/format/GML2', 'ol/format/GML3', 'ol/format/GML32', 'ol/format/OSMXML', 'ol/source/Cluster', 'ol/source/Vector', 'ol/has', 'ol/source/OSM', 'ol/source/XYZ', 'ol/loadingstrategy', '@angular/common/http', 'ol/source/WMTS', 'ol/tilegrid/WMTS', 'ol/extent.js', 'ol/source/CartoDB', 'ol/format/EsriJSON', 'ol/source/ImageArcGISRest', 'ol/source/TileArcGISRest', 'ol/source/TileDebug', 'ol/tilegrid/TileGrid', 'ol/source/VectorTile', 'ol/format/MVT', 'ts-cacheable', 'ol/source/WMTS.js', '@igo2/auth', 'ol/interaction/DragBox', 'ol/layer/VectorTile', 'ol/geom', 'ol/layer/Image', 'ol/layer/Tile', 'ol/render/Feature', '@angular/animations', 'ol-mapbox-style/dist/stylefunction', 'striptags', '@angular/material/core', '@angular/material/form-field', '@angular/material/select', '@angular/forms', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/input', '@angular/material/menu', '@angular/material/slide-toggle', '@angular/material/slider', '@angular/material/autocomplete', '@angular/material/button-toggle', 'ngx-color-picker', '@angular/platform-browser', 'ol/interaction/Draw', 'ol/interaction/Modify', 'ol/interaction/Select', 'ol/events/condition', '@turf/line-intersect', '@turf/helpers', 'ol/sphere', 'ol/Overlay', '@turf/point-on-feature', '@angular/material/datepicker', '@angular/material/radio', '@angular/material/table', '@angular/material/tabs', '@angular/material/tree', '@mat-datetimepicker/core', 'ol/style/Style', 'ol/interaction/Translate', 'ol/geom/LinearRing', '@angular/cdk/collections', '@angular/cdk/tree', 'file-saver', 'jspdf', 'html2canvas', 'jszip', '@angular/cdk/drag-drop'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.geo = {}), global.ng.core, global.ng.common, global.ng.material.badge, global.ng.material.icon, global.ng.material.list, global.ng.material.tooltip, global.common, global.ng.material.button, global.core, global.ng.material.dialog, global["ngxt-core"], global.rxjs, global.rxjs.operators, global.utils, global.olMap, global.olView, global.olFeature, global.olGeolocation, global.olAttribution, global.olControlScaleLine, global.olproj, global.olproj4, global.OlPoint, global.olinteraction, global.olCircle, global.olstyle, global.proj4, global.olextent, global.olGeometryLayout, global.OlPolygon, global.OlLineString, global.OlGeoJSON, global.OlVectorLayer, global.olobservable, global.oleasing, global.color, global.olRender, global.FormatType, global.olProjection, global.olSourceImageWMS, global.tsMd5, global.olfilter, global.olWKT, global.olFormatWFS, global.moment, global.olformat, global.olFormatGML2, global.olFormatGML3, global.olFormatGML32, global.olFormatOSMXML, global.olSourceCluster, global.OlVectorSource, global.has, global.olSourceOSM, global.olSourceXYZ, global.OlLoadingStrategy, global.ng.common.http, global.olSourceWMTS, global.olTileGridWMTS, global.extent_js, global.olSourceCarto, global.olFormatEsriJSON, global.olSourceImageArcGISRest, global.olSourceTileArcGISRest, global.TileDebug, global.olTileGrid, global.olSourceVectorTile, global.olFormatMVT, global.tsCacheable, global.WMTS_js, global.auth, global.OlDragBoxInteraction, global.olLayerVectorTile, global.olgeom, global.olLayerImage, global.olLayerTile, global.OlRenderFeature, global.ng.animations, global.stylefunction, global.striptags, global.ng.material.core, global.ng.material.formField, global.ng.material.select, global.ng.forms, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.input, global.ng.material.menu, global.ng.material.slideToggle, global.ng.material.slider, global.ng.material.autocomplete, global.ng.material.buttonToggle, global.ngxColorPicker, global.ng.platformBrowser, global.OlDraw, global.OlModify, global.olInteractionSelect, global.olcondition, global.lineIntersect, global.helpers, global.sphere, global.OlOverlay, global.pointOnFeature, global.ng.material.datepicker, global.ng.material.radio, global.ng.material.table, global.ng.material.tabs, global.ng.material.tree, global.datepickercore, global.OlStyle, global.OlTranslate, global.OlLinearRing, global.ng.cdk.collections, global.ng.cdk.tree, global.fileSaver, global.jsPDF, global._html2canvas, global.JSZip, global.ng.cdk.dragDrop));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i9$1, i4, i1$3, i3, i6$1, i2, i2$1, i1, i7, rxjs, operators, utils, olMap, olView, OlFeature, olGeolocation, olAttribution, olControlScaleLine, olproj, olproj4, OlPoint, olInteraction, OlCircle, olstyle, proj4, olextent, OlGeometryLayout, OlPolygon, OlLineString, OlGeoJSON, OlVectorLayer, olObservable, oleasing, color, render, FormatType, olProjection, olSourceImageWMS, tsMd5, olfilter, olWKT, olFormatWFS, moment_, olformat, olFormatGML2, olFormatGML3, olFormatGML32, olFormatOSMXML, olSourceCluster, OlVectorSource, has, olSourceOSM, olSourceXYZ, OlLoadingStrategy, i1$2, olSourceWMTS, olTileGridWMTS, extent_js, olSourceCarto, olFormatEsriJSON, ImageArcGISRest, olSourceTileArcGISRest, TileDebug, TileGrid, olSourceVectorTile, olFormatMVT, tsCacheable, WMTS_js, i6, OlDragBoxInteraction, olLayerVectorTile, olgeom, olLayerImage, olLayerTile, RenderFeature, animations, stylefunction, striptags_, i9, i12, i13, i16, i11, i10, i5, i5$1, i22, i13$1, i6$2, i18, i12$1, i1$4, OlDraw, OlModify, OlSelect, olCondition, lineIntersect, helpers, sphere, OlOverlay, pointOnFeature, i25, i19, i23, i20, i24, i4$1, OlStyle, OlTranslate, OlLinearRing, collections, tree, fileSaver, jspdf, html2canvas, JSZip, i2$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
38
38
|
var olMap__default = /*#__PURE__*/_interopDefaultLegacy(olMap);
|
|
39
39
|
var olView__default = /*#__PURE__*/_interopDefaultLegacy(olView);
|
|
40
|
-
var
|
|
40
|
+
var OlFeature__default = /*#__PURE__*/_interopDefaultLegacy(OlFeature);
|
|
41
41
|
var olGeolocation__default = /*#__PURE__*/_interopDefaultLegacy(olGeolocation);
|
|
42
42
|
var olAttribution__default = /*#__PURE__*/_interopDefaultLegacy(olAttribution);
|
|
43
43
|
var olControlScaleLine__default = /*#__PURE__*/_interopDefaultLegacy(olControlScaleLine);
|
|
@@ -86,14 +86,13 @@
|
|
|
86
86
|
var olFormatMVT__default = /*#__PURE__*/_interopDefaultLegacy(olFormatMVT);
|
|
87
87
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
88
88
|
var OlDragBoxInteraction__default = /*#__PURE__*/_interopDefaultLegacy(OlDragBoxInteraction);
|
|
89
|
+
var olLayerVectorTile__default = /*#__PURE__*/_interopDefaultLegacy(olLayerVectorTile);
|
|
89
90
|
var olgeom__namespace = /*#__PURE__*/_interopNamespace(olgeom);
|
|
90
|
-
var olLayer__namespace = /*#__PURE__*/_interopNamespace(olLayer);
|
|
91
91
|
var olLayerImage__default = /*#__PURE__*/_interopDefaultLegacy(olLayerImage);
|
|
92
92
|
var olLayerTile__default = /*#__PURE__*/_interopDefaultLegacy(olLayerTile);
|
|
93
|
-
var
|
|
93
|
+
var RenderFeature__default = /*#__PURE__*/_interopDefaultLegacy(RenderFeature);
|
|
94
94
|
var stylefunction__default = /*#__PURE__*/_interopDefaultLegacy(stylefunction);
|
|
95
95
|
var striptags___namespace = /*#__PURE__*/_interopNamespace(striptags_);
|
|
96
|
-
var OlRenderFeature__default = /*#__PURE__*/_interopDefaultLegacy(OlRenderFeature);
|
|
97
96
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
98
97
|
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
99
98
|
var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
|
|
@@ -758,6 +757,17 @@
|
|
|
758
757
|
return ImageWatcher;
|
|
759
758
|
}(utils.Watcher));
|
|
760
759
|
|
|
760
|
+
function computeMVTOptionsOnHover(layerOptions) {
|
|
761
|
+
var _a, _b;
|
|
762
|
+
var vectorTileLayerOptions = layerOptions;
|
|
763
|
+
if (((_a = vectorTileLayerOptions.sourceOptions) === null || _a === void 0 ? void 0 : _a.type) === 'mvt' &&
|
|
764
|
+
(((_b = vectorTileLayerOptions.styleByAttribute) === null || _b === void 0 ? void 0 : _b.hoverStyle) || vectorTileLayerOptions.hoverStyle)) {
|
|
765
|
+
var fc = vectorTileLayerOptions.sourceOptions.featureClass;
|
|
766
|
+
vectorTileLayerOptions.sourceOptions.featureClass = fc ? fc : 'feature';
|
|
767
|
+
}
|
|
768
|
+
return layerOptions;
|
|
769
|
+
}
|
|
770
|
+
|
|
761
771
|
exports.LinkedProperties = void 0;
|
|
762
772
|
(function (LinkedProperties) {
|
|
763
773
|
LinkedProperties["OPACITY"] = "opacity";
|
|
@@ -3119,11 +3129,16 @@
|
|
|
3119
3129
|
return this.visible$.value;
|
|
3120
3130
|
},
|
|
3121
3131
|
set: function (value) {
|
|
3132
|
+
var _this = this;
|
|
3133
|
+
var _a, _b;
|
|
3122
3134
|
this.ol.setVisible(value);
|
|
3123
3135
|
this.visible$.next(value);
|
|
3124
|
-
if (!this.hasBeenVisible$.value && value
|
|
3136
|
+
if (!this.hasBeenVisible$.value && value) {
|
|
3125
3137
|
this.hasBeenVisible$.next(value);
|
|
3126
3138
|
}
|
|
3139
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.messages) && value) {
|
|
3140
|
+
(_b = this.options) === null || _b === void 0 ? void 0 : _b.messages.filter(function (m) { var _a; return (_a = m.options) === null || _a === void 0 ? void 0 : _a.showOnEachLayerVisibility; }).map(function (message) { return _this.showMessage(message); });
|
|
3141
|
+
}
|
|
3127
3142
|
},
|
|
3128
3143
|
enumerable: false,
|
|
3129
3144
|
configurable: true
|
|
@@ -3153,9 +3168,7 @@
|
|
|
3153
3168
|
this.hasBeenVisible$$ = this.hasBeenVisible$.subscribe(function () {
|
|
3154
3169
|
if (_this.options.messages && _this.visible) {
|
|
3155
3170
|
_this.options.messages.map(function (message) {
|
|
3156
|
-
|
|
3157
|
-
message.text = message.text;
|
|
3158
|
-
_this.messageService.message(message);
|
|
3171
|
+
_this.showMessage(message);
|
|
3159
3172
|
});
|
|
3160
3173
|
}
|
|
3161
3174
|
});
|
|
@@ -3164,6 +3177,14 @@
|
|
|
3164
3177
|
this.layerSyncWatcher.unsubscribe();
|
|
3165
3178
|
}
|
|
3166
3179
|
};
|
|
3180
|
+
Layer.prototype.showMessage = function (message) {
|
|
3181
|
+
if (!this.messageService) {
|
|
3182
|
+
return;
|
|
3183
|
+
}
|
|
3184
|
+
message.title = message.title;
|
|
3185
|
+
message.text = message.text;
|
|
3186
|
+
this.messageService.message(message);
|
|
3187
|
+
};
|
|
3167
3188
|
Layer.prototype.observeResolution = function () {
|
|
3168
3189
|
var _this = this;
|
|
3169
3190
|
this.resolution$$ = this.map.viewController.resolution$.subscribe(function () { return _this.updateInResolutionsRange(); });
|
|
@@ -4277,9 +4298,9 @@
|
|
|
4277
4298
|
MVTDataSource.prototype.createOlSource = function () {
|
|
4278
4299
|
var mvtFormat;
|
|
4279
4300
|
if (this.options.featureClass === 'feature') {
|
|
4280
|
-
mvtFormat = new olFormatMVT__default["default"]({ featureClass:
|
|
4301
|
+
mvtFormat = new olFormatMVT__default["default"]({ featureClass: OlFeature__default["default"] });
|
|
4281
4302
|
}
|
|
4282
|
-
else
|
|
4303
|
+
else {
|
|
4283
4304
|
mvtFormat = new olFormatMVT__default["default"]();
|
|
4284
4305
|
}
|
|
4285
4306
|
this.options.format = mvtFormat;
|
|
@@ -4983,8 +5004,7 @@
|
|
|
4983
5004
|
legendInfo: legendInfo,
|
|
4984
5005
|
style: style,
|
|
4985
5006
|
timeFilter: timeFilter,
|
|
4986
|
-
timeExtent: timeExtent
|
|
4987
|
-
attributions: attributions
|
|
5007
|
+
timeExtent: timeExtent
|
|
4988
5008
|
});
|
|
4989
5009
|
var options = utils.ObjectUtils.removeUndefined({
|
|
4990
5010
|
params: params,
|
|
@@ -5000,6 +5020,7 @@
|
|
|
5000
5020
|
sourceFields: arcgisOptions.fields,
|
|
5001
5021
|
queryTitle: arcgisOptions.displayField
|
|
5002
5022
|
});
|
|
5023
|
+
options.params.attributions = attributions;
|
|
5003
5024
|
return utils.ObjectUtils.mergeDeep(options, baseOptions);
|
|
5004
5025
|
};
|
|
5005
5026
|
CapabilitiesService.prototype.parseTileOrImageArcgisOptions = function (baseOptions, arcgisOptions, legend, serviceCapabilities) {
|
|
@@ -5042,10 +5063,10 @@
|
|
|
5042
5063
|
},
|
|
5043
5064
|
legendInfo: legendInfo,
|
|
5044
5065
|
timeFilter: timeFilter,
|
|
5045
|
-
attributions: attributions,
|
|
5046
5066
|
sourceFields: arcgisOptions.fields,
|
|
5047
5067
|
queryTitle: arcgisOptions.displayField
|
|
5048
5068
|
});
|
|
5069
|
+
options.attributions = attributions;
|
|
5049
5070
|
return utils.ObjectUtils.mergeDeep(options, baseOptions);
|
|
5050
5071
|
};
|
|
5051
5072
|
CapabilitiesService.prototype.findDataSourceInCapabilities = function (layerArray, name) {
|
|
@@ -6966,6 +6987,7 @@
|
|
|
6966
6987
|
return olCls;
|
|
6967
6988
|
};
|
|
6968
6989
|
StyleService.prototype.createStyleByAttribute = function (feature, styleByAttribute) {
|
|
6990
|
+
var _a;
|
|
6969
6991
|
var style;
|
|
6970
6992
|
var type = styleByAttribute.type ? styleByAttribute.type : this.guessTypeFeature(feature);
|
|
6971
6993
|
var attribute = styleByAttribute.attribute;
|
|
@@ -6973,35 +6995,36 @@
|
|
|
6973
6995
|
var stroke = styleByAttribute.stroke;
|
|
6974
6996
|
var width = styleByAttribute.width;
|
|
6975
6997
|
var fill = styleByAttribute.fill;
|
|
6998
|
+
var anchor = styleByAttribute.anchor;
|
|
6976
6999
|
var radius = styleByAttribute.radius;
|
|
6977
7000
|
var icon = styleByAttribute.icon;
|
|
6978
7001
|
var scale = styleByAttribute.scale;
|
|
6979
7002
|
var size = data ? data.length : 0;
|
|
6980
|
-
var label = styleByAttribute.label;
|
|
6981
|
-
var labelStyle = label
|
|
6982
|
-
|
|
6983
|
-
|
|
7003
|
+
var label = styleByAttribute.label ? styleByAttribute.label.attribute : undefined;
|
|
7004
|
+
var labelStyle = ((_a = styleByAttribute.label) === null || _a === void 0 ? void 0 : _a.style) ? this.parseStyle('text', styleByAttribute.label.style) : undefined;
|
|
7005
|
+
if (!labelStyle && label) {
|
|
7006
|
+
labelStyle = new olstyle__namespace.Text();
|
|
7007
|
+
}
|
|
6984
7008
|
var baseStyle = styleByAttribute.baseStyle;
|
|
6985
7009
|
if (labelStyle) {
|
|
6986
|
-
|
|
6987
|
-
text: this.getLabel(feature, label)
|
|
6988
|
-
};
|
|
6989
|
-
labelStyle instanceof olstyle__namespace.Style ? labelStyle.setText(new olstyle__namespace.Text(options)) :
|
|
6990
|
-
labelStyle.setText(this.getLabel(feature, label));
|
|
7010
|
+
labelStyle.setText(this.getLabel(feature, label));
|
|
6991
7011
|
}
|
|
6992
7012
|
if (type === 'circle') {
|
|
6993
7013
|
for (var i = 0; i < size; i++) {
|
|
6994
|
-
var val = typeof feature.get(attribute) !== 'undefined'
|
|
7014
|
+
var val = typeof feature.get(attribute) !== 'undefined' && feature.get(attribute) !== null
|
|
6995
7015
|
? feature.get(attribute)
|
|
6996
7016
|
: '';
|
|
6997
|
-
if (val === data[i] || val.toString().match(data[i])) {
|
|
7017
|
+
if (val === data[i] || val.toString().match(new RegExp(data[i], 'gmi'))) {
|
|
6998
7018
|
if (icon) {
|
|
6999
7019
|
style = [
|
|
7000
7020
|
new olstyle__namespace.Style({
|
|
7001
7021
|
image: new olstyle__namespace.Icon({
|
|
7022
|
+
color: fill ? fill[i] : undefined,
|
|
7002
7023
|
src: icon[i],
|
|
7003
|
-
scale: scale ? scale[i] : 1
|
|
7004
|
-
|
|
7024
|
+
scale: scale ? scale[i] : 1,
|
|
7025
|
+
anchor: anchor ? anchor[i] : [0.5, 0.5]
|
|
7026
|
+
}),
|
|
7027
|
+
text: labelStyle instanceof olstyle__namespace.Text ? labelStyle : undefined
|
|
7005
7028
|
})
|
|
7006
7029
|
];
|
|
7007
7030
|
return style;
|
|
@@ -7050,10 +7073,10 @@
|
|
|
7050
7073
|
}
|
|
7051
7074
|
else if (type === 'regular') {
|
|
7052
7075
|
for (var i = 0; i < size; i++) {
|
|
7053
|
-
var val = typeof feature.get(attribute) !== 'undefined'
|
|
7076
|
+
var val = typeof feature.get(attribute) !== 'undefined' && feature.get(attribute) !== null
|
|
7054
7077
|
? feature.get(attribute)
|
|
7055
7078
|
: '';
|
|
7056
|
-
if (val === data[i] || val.toString().match(data[i])) {
|
|
7079
|
+
if (val === data[i] || val.toString().match(new RegExp(data[i], 'gmi'))) {
|
|
7057
7080
|
style = [
|
|
7058
7081
|
new olstyle__namespace.Style({
|
|
7059
7082
|
stroke: new olstyle__namespace.Stroke({
|
|
@@ -7069,7 +7092,7 @@
|
|
|
7069
7092
|
return style;
|
|
7070
7093
|
}
|
|
7071
7094
|
}
|
|
7072
|
-
if (feature instanceof
|
|
7095
|
+
if (feature instanceof OlFeature__default["default"]) {
|
|
7073
7096
|
if (!feature.getStyle()) {
|
|
7074
7097
|
if (baseStyle) {
|
|
7075
7098
|
style = this.createStyle(baseStyle);
|
|
@@ -7094,15 +7117,15 @@
|
|
|
7094
7117
|
}
|
|
7095
7118
|
};
|
|
7096
7119
|
StyleService.prototype.createClusterStyle = function (feature, clusterParam, layerStyle) {
|
|
7097
|
-
var e_1,
|
|
7120
|
+
var e_1, _b;
|
|
7098
7121
|
if (clusterParam === void 0) { clusterParam = {}; }
|
|
7099
7122
|
var style;
|
|
7100
7123
|
var size = feature.get('features').length;
|
|
7101
7124
|
if (size !== 1) {
|
|
7102
7125
|
if (clusterParam.clusterRanges) {
|
|
7103
7126
|
try {
|
|
7104
|
-
for (var
|
|
7105
|
-
var r =
|
|
7127
|
+
for (var _c = __values(clusterParam.clusterRanges), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
7128
|
+
var r = _d.value;
|
|
7106
7129
|
if ((!r.minRadius || r.minRadius <= size) &&
|
|
7107
7130
|
(!r.maxRadius || r.maxRadius >= size)) {
|
|
7108
7131
|
style = this.createStyle(r.style);
|
|
@@ -7131,7 +7154,7 @@
|
|
|
7131
7154
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7132
7155
|
finally {
|
|
7133
7156
|
try {
|
|
7134
|
-
if (
|
|
7157
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
7135
7158
|
}
|
|
7136
7159
|
finally { if (e_1) throw e_1.error; }
|
|
7137
7160
|
}
|
|
@@ -7176,6 +7199,9 @@
|
|
|
7176
7199
|
};
|
|
7177
7200
|
StyleService.prototype.getLabel = function (feature, labelMatch) {
|
|
7178
7201
|
var label = labelMatch;
|
|
7202
|
+
if (!label) {
|
|
7203
|
+
return;
|
|
7204
|
+
}
|
|
7179
7205
|
var labelToGet = Array.from(labelMatch.matchAll(/\$\{([^\{\}]+)\}/g));
|
|
7180
7206
|
labelToGet.forEach(function (v) {
|
|
7181
7207
|
label = label.replace(v[0], feature.get(v[1]));
|
|
@@ -8379,7 +8405,7 @@
|
|
|
8379
8405
|
if (_this.bufferFeature) {
|
|
8380
8406
|
_this.buffer.dataSource.ol.removeFeature(_this.bufferFeature);
|
|
8381
8407
|
}
|
|
8382
|
-
_this.geolocationPositionFeature = new
|
|
8408
|
+
_this.geolocationPositionFeature = new OlFeature__default["default"]({ geometry: positionGeometry });
|
|
8383
8409
|
_this.geolocationPositionFeature.setId('geolocationPositionFeature');
|
|
8384
8410
|
_this.geolocationPositionFeature.setStyle(new olstyle__namespace.Style({
|
|
8385
8411
|
image: new olstyle__namespace.Circle({
|
|
@@ -8393,7 +8419,7 @@
|
|
|
8393
8419
|
}),
|
|
8394
8420
|
}),
|
|
8395
8421
|
}));
|
|
8396
|
-
_this.geolocationAccuracyFeature = new
|
|
8422
|
+
_this.geolocationAccuracyFeature = new OlFeature__default["default"]({ geometry: accuracyGeometry });
|
|
8397
8423
|
_this.geolocationAccuracyFeature.setId('geolocationAccuracyFeature');
|
|
8398
8424
|
if (_this.alwaysTracking) {
|
|
8399
8425
|
[_this.geolocationPositionFeature, _this.geolocationAccuracyFeature].map(function (feature) {
|
|
@@ -8417,7 +8443,7 @@
|
|
|
8417
8443
|
else {
|
|
8418
8444
|
bufferText = '';
|
|
8419
8445
|
}
|
|
8420
|
-
_this.bufferFeature = new
|
|
8446
|
+
_this.bufferFeature = new OlFeature__default["default"](_this.bufferGeom);
|
|
8421
8447
|
_this.bufferFeature.setId('bufferFeature');
|
|
8422
8448
|
_this.bufferFeature.set('bufferStroke', bufferStroke);
|
|
8423
8449
|
_this.bufferFeature.set('bufferFill', bufferFill);
|
|
@@ -9062,6 +9088,7 @@
|
|
|
9062
9088
|
this.mediaService = mediaService;
|
|
9063
9089
|
this.styleService = styleService;
|
|
9064
9090
|
this.pointerHoverFeatureStore = new i6$1.EntityStore([]);
|
|
9091
|
+
this.selectionMVT = {};
|
|
9065
9092
|
this.hoverFeatureId = 'hoverFeatureId';
|
|
9066
9093
|
/**
|
|
9067
9094
|
* The delay where the mouse must be motionless before trigger the reverse search
|
|
@@ -9118,7 +9145,8 @@
|
|
|
9118
9145
|
* Initialize the pointer position store
|
|
9119
9146
|
* @internal
|
|
9120
9147
|
*/
|
|
9121
|
-
HoverFeatureDirective.prototype.initStore = function (
|
|
9148
|
+
HoverFeatureDirective.prototype.initStore = function () {
|
|
9149
|
+
var _this = this;
|
|
9122
9150
|
var store = this.store;
|
|
9123
9151
|
var layer = new VectorLayer({
|
|
9124
9152
|
id: 'hoverFeatureId',
|
|
@@ -9131,6 +9159,64 @@
|
|
|
9131
9159
|
style: hoverFeatureMarker
|
|
9132
9160
|
});
|
|
9133
9161
|
tryBindStoreLayer(store, layer);
|
|
9162
|
+
this.selectionLayer = new olLayerVectorTile__default["default"]({
|
|
9163
|
+
map: this.map.ol,
|
|
9164
|
+
zIndex: 901,
|
|
9165
|
+
renderMode: "vector",
|
|
9166
|
+
declutter: true,
|
|
9167
|
+
source: new olSourceVectorTile__default["default"]({}),
|
|
9168
|
+
style: function (feature) {
|
|
9169
|
+
if (_this.mvtStyleOptions && feature.getId() in _this.selectionMVT) {
|
|
9170
|
+
return _this.createHoverStyle(feature, _this.mvtStyleOptions);
|
|
9171
|
+
}
|
|
9172
|
+
}
|
|
9173
|
+
});
|
|
9174
|
+
};
|
|
9175
|
+
HoverFeatureDirective.prototype.createHoverStyle = function (feature, hoverStyle) {
|
|
9176
|
+
var _a;
|
|
9177
|
+
var localHoverStyle = Object.assign({}, hoverStyle);
|
|
9178
|
+
var label = hoverStyle.label ? hoverStyle.label.attribute : undefined;
|
|
9179
|
+
var hasLabelStyle = ((_a = hoverStyle.label) === null || _a === void 0 ? void 0 : _a.style) ? true : false;
|
|
9180
|
+
if (!feature.get('_isLabel')) {
|
|
9181
|
+
localHoverStyle.label = undefined;
|
|
9182
|
+
hasLabelStyle = false;
|
|
9183
|
+
label = undefined;
|
|
9184
|
+
}
|
|
9185
|
+
else {
|
|
9186
|
+
// clear the style for label....
|
|
9187
|
+
var size = localHoverStyle.data ? localHoverStyle.data.length : 0;
|
|
9188
|
+
var radius = [];
|
|
9189
|
+
var stroke = [];
|
|
9190
|
+
var width = [];
|
|
9191
|
+
var fill = [];
|
|
9192
|
+
for (var i = 0; i < size; i++) {
|
|
9193
|
+
radius.push(0);
|
|
9194
|
+
stroke.push('rgba(255, 255, 255, 0)');
|
|
9195
|
+
width.push(0);
|
|
9196
|
+
fill.push('rgba(255, 255, 255, 0)');
|
|
9197
|
+
}
|
|
9198
|
+
localHoverStyle.radius = radius;
|
|
9199
|
+
localHoverStyle.stroke = stroke;
|
|
9200
|
+
localHoverStyle.width = width;
|
|
9201
|
+
localHoverStyle.fill = fill;
|
|
9202
|
+
}
|
|
9203
|
+
if (!hasLabelStyle && label) {
|
|
9204
|
+
localHoverStyle.label.style =
|
|
9205
|
+
{
|
|
9206
|
+
textAlign: 'left',
|
|
9207
|
+
textBaseline: 'top',
|
|
9208
|
+
font: '12px Calibri,sans-serif',
|
|
9209
|
+
fill: { color: '#000' },
|
|
9210
|
+
backgroundFill: { color: 'rgba(255, 255, 255, 0.5)' },
|
|
9211
|
+
backgroundStroke: { color: 'rgba(200, 200, 200, 0.75)', width: 2 },
|
|
9212
|
+
stroke: { color: '#fff', width: 3 },
|
|
9213
|
+
overflow: true,
|
|
9214
|
+
offsetX: 10,
|
|
9215
|
+
offsetY: 20,
|
|
9216
|
+
padding: [2.5, 2.5, 2.5, 2.5]
|
|
9217
|
+
};
|
|
9218
|
+
}
|
|
9219
|
+
return this.styleService.createStyleByAttribute(feature, localHoverStyle);
|
|
9134
9220
|
};
|
|
9135
9221
|
/**
|
|
9136
9222
|
* Stop listening to pointermove and reverse search results.
|
|
@@ -9217,69 +9303,178 @@
|
|
|
9217
9303
|
if (typeof this.lastTimeoutRequest !== 'undefined') { // cancel timeout when the mouse moves
|
|
9218
9304
|
clearTimeout(this.lastTimeoutRequest);
|
|
9219
9305
|
}
|
|
9306
|
+
this.clearLayer();
|
|
9307
|
+
var maximumZindex = -Infinity;
|
|
9308
|
+
var topMostOlLayer;
|
|
9220
9309
|
var pixel = this.map.ol.getPixelFromCoordinate(event.coordinate);
|
|
9221
9310
|
this.lastTimeoutRequest = setTimeout(function () {
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9311
|
+
// retrieve the topmost layer with feature to only apply the hover on this layer.
|
|
9312
|
+
_this.map.ol.forEachFeatureAtPixel(pixel, function (mapFeature, layerOL) {
|
|
9313
|
+
if (!layerOL) {
|
|
9314
|
+
return;
|
|
9315
|
+
}
|
|
9316
|
+
var igoLayer = _this.map.getLayerByOlUId(layerOL.ol_uid);
|
|
9317
|
+
if (!_this.canProcessHover(igoLayer)) {
|
|
9318
|
+
return;
|
|
9319
|
+
}
|
|
9320
|
+
if (igoLayer.zIndex <= maximumZindex) {
|
|
9321
|
+
return;
|
|
9322
|
+
}
|
|
9323
|
+
maximumZindex = igoLayer.zIndex;
|
|
9324
|
+
topMostOlLayer = layerOL;
|
|
9325
|
+
}, {
|
|
9326
|
+
hitTolerance: 10, layerFilter: function (olLayer) { return olLayer instanceof OlVectorLayer__default["default"] || olLayer instanceof olLayerVectorTile__default["default"]; }
|
|
9327
|
+
});
|
|
9328
|
+
if (!topMostOlLayer) {
|
|
9329
|
+
return;
|
|
9330
|
+
}
|
|
9331
|
+
_this.clearLayer();
|
|
9332
|
+
_this.map.ol.forEachFeatureAtPixel(pixel, function (mapFeature, layerOL) {
|
|
9333
|
+
var _a, _b, _c;
|
|
9334
|
+
if (mapFeature.get('hoverSummary') === undefined) {
|
|
9335
|
+
var igoLayer_1;
|
|
9336
|
+
if (layerOL instanceof OlVectorLayer__default["default"]) {
|
|
9337
|
+
igoLayer_1 = _this.map.getLayerByOlUId(layerOL.ol_uid);
|
|
9338
|
+
if (!_this.canProcessHover(igoLayer_1)) {
|
|
9339
|
+
return;
|
|
9340
|
+
}
|
|
9341
|
+
var localOlFeature = _this.handleRenderFeature(mapFeature);
|
|
9342
|
+
_this.setLayerStyleFromOptions(igoLayer_1, localOlFeature);
|
|
9343
|
+
var featuresToLoad = [localOlFeature];
|
|
9344
|
+
localOlFeature.set("_isLabel", false);
|
|
9345
|
+
var myLabelOlFeature = new OlFeature__default["default"]();
|
|
9346
|
+
myLabelOlFeature.setProperties(localOlFeature.getProperties());
|
|
9347
|
+
var labelGeom = localOlFeature.getGeometry().getType() === 'Point' ? localOlFeature.getGeometry() : new olgeom__namespace.Point(event.coordinate);
|
|
9348
|
+
myLabelOlFeature.setGeometry(labelGeom);
|
|
9349
|
+
myLabelOlFeature.setId(localOlFeature.getId());
|
|
9350
|
+
myLabelOlFeature.set("_isLabel", true);
|
|
9351
|
+
_this.setLayerStyleFromOptions(igoLayer_1, myLabelOlFeature);
|
|
9352
|
+
featuresToLoad.push(myLabelOlFeature);
|
|
9353
|
+
_this.pointerHoverFeatureStore.load(featuresToLoad);
|
|
9354
|
+
return true;
|
|
9355
|
+
}
|
|
9356
|
+
if (layerOL instanceof olLayerVectorTile__default["default"]) {
|
|
9357
|
+
igoLayer_1 = _this.map.getLayerByOlUId(layerOL.ol_uid);
|
|
9358
|
+
if (!_this.canProcessHover(igoLayer_1)) {
|
|
9359
|
+
return;
|
|
9360
|
+
}
|
|
9361
|
+
if ((_b = (_a = igoLayer_1 === null || igoLayer_1 === void 0 ? void 0 : igoLayer_1.options) === null || _a === void 0 ? void 0 : _a.styleByAttribute) === null || _b === void 0 ? void 0 : _b.hoverStyle) {
|
|
9362
|
+
_this.mvtStyleOptions = igoLayer_1.options.styleByAttribute.hoverStyle;
|
|
9363
|
+
}
|
|
9364
|
+
else if ((_c = igoLayer_1 === null || igoLayer_1 === void 0 ? void 0 : igoLayer_1.options) === null || _c === void 0 ? void 0 : _c.hoverStyle) {
|
|
9365
|
+
_this.mvtStyleOptions = igoLayer_1.options.hoverStyle;
|
|
9366
|
+
}
|
|
9367
|
+
_this.selectionLayer.setSource(layerOL.getSource());
|
|
9368
|
+
layerOL.getFeatures(event.pixel).then(function (mvtFeatures) {
|
|
9369
|
+
if (!mvtFeatures.length) {
|
|
9370
|
+
_this.selectionMVT = {};
|
|
9371
|
+
_this.selectionLayer.changed();
|
|
9372
|
+
_this.clearLayer();
|
|
9373
|
+
return;
|
|
9374
|
+
}
|
|
9375
|
+
var feature = mvtFeatures[0];
|
|
9376
|
+
if (!feature) {
|
|
9377
|
+
_this.clearLayer();
|
|
9378
|
+
return;
|
|
9379
|
+
}
|
|
9380
|
+
var localOlFeature = _this.handleRenderFeature(feature);
|
|
9381
|
+
localOlFeature.set("_isLabel", false);
|
|
9382
|
+
var myLabelOlFeature = new OlFeature__default["default"]();
|
|
9383
|
+
myLabelOlFeature.setProperties(localOlFeature.getProperties());
|
|
9384
|
+
var labelGeom = localOlFeature.getGeometry().getType() === 'Point' ? localOlFeature.getGeometry() : new olgeom__namespace.Point(event.coordinate);
|
|
9385
|
+
myLabelOlFeature.setGeometry(labelGeom);
|
|
9386
|
+
myLabelOlFeature.setId(localOlFeature.getId());
|
|
9387
|
+
myLabelOlFeature.set("_isLabel", true);
|
|
9388
|
+
_this.setLayerStyleFromOptions(igoLayer_1, myLabelOlFeature);
|
|
9389
|
+
_this.pointerHoverFeatureStore.load([myLabelOlFeature]);
|
|
9390
|
+
_this.selectionMVT[feature.getId()] = localOlFeature;
|
|
9391
|
+
_this.selectionLayer.changed();
|
|
9392
|
+
});
|
|
9393
|
+
}
|
|
9227
9394
|
}
|
|
9228
9395
|
return true;
|
|
9229
|
-
}
|
|
9396
|
+
}, {
|
|
9397
|
+
hitTolerance: 10, layerFilter: function (olLayer) { return olLayer === topMostOlLayer; }
|
|
9398
|
+
});
|
|
9230
9399
|
}, this.igoHoverFeatureDelay);
|
|
9231
9400
|
};
|
|
9401
|
+
HoverFeatureDirective.prototype.canProcessHover = function (igoLayer) {
|
|
9402
|
+
if (!igoLayer) {
|
|
9403
|
+
return false;
|
|
9404
|
+
}
|
|
9405
|
+
if (!igoLayer.visible) {
|
|
9406
|
+
return false;
|
|
9407
|
+
}
|
|
9408
|
+
if (!igoLayer.options) {
|
|
9409
|
+
return false;
|
|
9410
|
+
}
|
|
9411
|
+
if (!igoLayer.options.styleByAttribute && !igoLayer.options.hoverStyle) {
|
|
9412
|
+
return false;
|
|
9413
|
+
}
|
|
9414
|
+
if ((igoLayer.options.styleByAttribute && !igoLayer.options.styleByAttribute.hoverStyle) &&
|
|
9415
|
+
!igoLayer.options.hoverStyle) {
|
|
9416
|
+
return false;
|
|
9417
|
+
}
|
|
9418
|
+
return true;
|
|
9419
|
+
};
|
|
9420
|
+
HoverFeatureDirective.prototype.handleRenderFeature = function (feature) {
|
|
9421
|
+
var localFeature;
|
|
9422
|
+
if (feature instanceof RenderFeature__default["default"]) {
|
|
9423
|
+
localFeature = new OlFeature__default["default"]({
|
|
9424
|
+
geometry: this.getGeometry(feature)
|
|
9425
|
+
});
|
|
9426
|
+
localFeature.setId(feature.getId());
|
|
9427
|
+
}
|
|
9428
|
+
else if (feature instanceof OlFeature__default["default"]) {
|
|
9429
|
+
localFeature = feature;
|
|
9430
|
+
}
|
|
9431
|
+
return localFeature;
|
|
9432
|
+
};
|
|
9232
9433
|
/**
|
|
9233
9434
|
* Add a feature to the pointer store
|
|
9234
9435
|
* @param text string
|
|
9235
9436
|
*/
|
|
9236
|
-
HoverFeatureDirective.prototype.addFeatureOverlay = function (
|
|
9237
|
-
if (
|
|
9238
|
-
|
|
9437
|
+
HoverFeatureDirective.prototype.addFeatureOverlay = function (hoverEntity) {
|
|
9438
|
+
if (hoverEntity.length > 0) {
|
|
9439
|
+
var result = hoverEntity[0];
|
|
9239
9440
|
this.clearLayer();
|
|
9240
|
-
var
|
|
9241
|
-
|
|
9242
|
-
if (results.layer.ol instanceof olLayer__namespace.VectorTile) {
|
|
9243
|
-
geom_1 = [geom_1];
|
|
9244
|
-
var neighbourCollection = this.getSameFeatureNeighbour(results.feature, results.layer);
|
|
9245
|
-
neighbourCollection.forEach(function (n) {
|
|
9246
|
-
geom_1.push(n.getGeometry());
|
|
9247
|
-
});
|
|
9248
|
-
}
|
|
9249
|
-
var feature = new olFeature__default["default"]({
|
|
9250
|
-
geometry: geom_1 instanceof Array ? new olgeom__namespace.GeometryCollection(geom_1) : geom_1,
|
|
9441
|
+
var feature = new OlFeature__default["default"]({
|
|
9442
|
+
geometry: result.getGeometry(),
|
|
9251
9443
|
meta: { id: this.hoverFeatureId },
|
|
9252
|
-
hoverSummary: this.getHoverSummary(
|
|
9444
|
+
hoverSummary: this.getHoverSummary(result.getProperties())
|
|
9253
9445
|
});
|
|
9254
9446
|
this.store.setLayerOlFeatures([feature], exports.FeatureMotion.None);
|
|
9255
9447
|
}
|
|
9256
9448
|
};
|
|
9257
|
-
HoverFeatureDirective.prototype.setLayerStyleFromOptions = function (igoLayer,
|
|
9258
|
-
var _a, _b;
|
|
9259
|
-
if ((_b = (_a = igoLayer.options) === null || _a === void 0 ? void 0 : _a.styleByAttribute) === null || _b === void 0 ? void 0 : _b.hoverStyle) {
|
|
9260
|
-
this.store.layer.ol.setStyle(this.
|
|
9449
|
+
HoverFeatureDirective.prototype.setLayerStyleFromOptions = function (igoLayer, feature) {
|
|
9450
|
+
var _a, _b, _c;
|
|
9451
|
+
if ((_b = (_a = igoLayer === null || igoLayer === void 0 ? void 0 : igoLayer.options) === null || _a === void 0 ? void 0 : _a.styleByAttribute) === null || _b === void 0 ? void 0 : _b.hoverStyle) {
|
|
9452
|
+
this.store.layer.ol.setStyle(this.createHoverStyle(feature, igoLayer.options.styleByAttribute.hoverStyle));
|
|
9453
|
+
return;
|
|
9261
9454
|
}
|
|
9262
|
-
|
|
9263
|
-
this.store.layer.ol.setStyle(
|
|
9455
|
+
if ((_c = igoLayer === null || igoLayer === void 0 ? void 0 : igoLayer.options) === null || _c === void 0 ? void 0 : _c.hoverStyle) {
|
|
9456
|
+
this.store.layer.ol.setStyle(this.createHoverStyle(feature, igoLayer.options.hoverStyle));
|
|
9264
9457
|
}
|
|
9265
9458
|
};
|
|
9266
9459
|
HoverFeatureDirective.prototype.getHoverSummary = function (properties) {
|
|
9267
|
-
var e_1,
|
|
9460
|
+
var e_1, _d;
|
|
9268
9461
|
var summary = '';
|
|
9269
9462
|
try {
|
|
9270
|
-
for (var
|
|
9271
|
-
var
|
|
9272
|
-
|
|
9463
|
+
for (var _e = __values(Object.entries(properties)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
9464
|
+
var _g = __read(_f.value, 2), key = _g[0], value = _g[1];
|
|
9465
|
+
if (!key.startsWith('_') && key !== 'geometry') {
|
|
9466
|
+
summary += key + ": " + value + '\n';
|
|
9467
|
+
}
|
|
9273
9468
|
}
|
|
9274
9469
|
}
|
|
9275
9470
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9276
9471
|
finally {
|
|
9277
9472
|
try {
|
|
9278
|
-
if (
|
|
9473
|
+
if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
|
|
9279
9474
|
}
|
|
9280
9475
|
finally { if (e_1) throw e_1.error; }
|
|
9281
9476
|
}
|
|
9282
|
-
return summary;
|
|
9477
|
+
return summary.length >= 2 ? summary.slice(0, -2) : summary;
|
|
9283
9478
|
};
|
|
9284
9479
|
HoverFeatureDirective.prototype.getGeometry = function (feature) {
|
|
9285
9480
|
var geom;
|
|
@@ -9309,37 +9504,14 @@
|
|
|
9309
9504
|
}
|
|
9310
9505
|
return geom;
|
|
9311
9506
|
};
|
|
9312
|
-
HoverFeatureDirective.prototype.getSameFeatureNeighbour = function (feature, layer, neighbourCollection) {
|
|
9313
|
-
var _this = this;
|
|
9314
|
-
if (neighbourCollection === void 0) { neighbourCollection = []; }
|
|
9315
|
-
if (neighbourCollection.length === 0) {
|
|
9316
|
-
neighbourCollection.push(new olFeature__default["default"]({
|
|
9317
|
-
geometry: this.getGeometry(feature),
|
|
9318
|
-
meta: { id: this.hoverFeatureId }
|
|
9319
|
-
}));
|
|
9320
|
-
}
|
|
9321
|
-
var toDoNeighbour = [];
|
|
9322
|
-
var neighbourFeatures = layer.ol.getSource().getFeaturesInExtent(feature.getGeometry().getExtent());
|
|
9323
|
-
neighbourFeatures.forEach(function (f) {
|
|
9324
|
-
var checkIf = neighbourCollection.find(function (x) {
|
|
9325
|
-
return x === f;
|
|
9326
|
-
});
|
|
9327
|
-
if (f.getId() === feature.getId() && !checkIf) {
|
|
9328
|
-
toDoNeighbour.push(f);
|
|
9329
|
-
neighbourCollection.push(f);
|
|
9330
|
-
}
|
|
9331
|
-
});
|
|
9332
|
-
return neighbourCollection.map(function (f) {
|
|
9333
|
-
return new olFeature__default["default"]({
|
|
9334
|
-
geometry: _this.getGeometry(f),
|
|
9335
|
-
meta: { id: _this.hoverFeatureId }
|
|
9336
|
-
});
|
|
9337
|
-
});
|
|
9338
|
-
};
|
|
9339
9507
|
/**
|
|
9340
9508
|
* Clear the pointer store features
|
|
9341
9509
|
*/
|
|
9342
9510
|
HoverFeatureDirective.prototype.clearLayer = function () {
|
|
9511
|
+
this.selectionMVT = {};
|
|
9512
|
+
if (this.selectionLayer) {
|
|
9513
|
+
this.selectionLayer.changed();
|
|
9514
|
+
}
|
|
9343
9515
|
if (this.store) {
|
|
9344
9516
|
this.store.clearLayer();
|
|
9345
9517
|
}
|
|
@@ -9381,7 +9553,7 @@
|
|
|
9381
9553
|
text: new olstyle__namespace.Text({
|
|
9382
9554
|
text: feature.get('hoverSummary'),
|
|
9383
9555
|
textAlign: 'left',
|
|
9384
|
-
textBaseline: '
|
|
9556
|
+
textBaseline: 'top',
|
|
9385
9557
|
font: '12px Calibri,sans-serif',
|
|
9386
9558
|
fill: new olstyle__namespace.Fill({ color: '#000' }),
|
|
9387
9559
|
backgroundFill: new olstyle__namespace.Fill({ color: 'rgba(255, 255, 255, 0.5)' }),
|
|
@@ -9389,7 +9561,7 @@
|
|
|
9389
9561
|
stroke: new olstyle__namespace.Stroke({ color: '#fff', width: 3 }),
|
|
9390
9562
|
overflow: true,
|
|
9391
9563
|
offsetX: 10,
|
|
9392
|
-
offsetY:
|
|
9564
|
+
offsetY: 20,
|
|
9393
9565
|
padding: [2.5, 2.5, 2.5, 2.5]
|
|
9394
9566
|
})
|
|
9395
9567
|
});
|
|
@@ -9945,15 +10117,17 @@
|
|
|
9945
10117
|
layer = this.createImageLayer(layerOptions);
|
|
9946
10118
|
break;
|
|
9947
10119
|
case MVTDataSource:
|
|
9948
|
-
|
|
10120
|
+
var _layerOptions = computeMVTOptionsOnHover(layerOptions);
|
|
10121
|
+
layer = this.createVectorTileLayer(_layerOptions);
|
|
9949
10122
|
break;
|
|
9950
10123
|
default:
|
|
9951
10124
|
break;
|
|
9952
10125
|
}
|
|
9953
10126
|
return layer;
|
|
9954
10127
|
};
|
|
9955
|
-
LayerService.prototype.createAsyncLayer = function (
|
|
10128
|
+
LayerService.prototype.createAsyncLayer = function (_layerOptions, detailedContextUri) {
|
|
9956
10129
|
var _this = this;
|
|
10130
|
+
var layerOptions = computeMVTOptionsOnHover(_layerOptions);
|
|
9957
10131
|
if (layerOptions.source) {
|
|
9958
10132
|
return new rxjs.Observable(function (d) { return d.next(_this.createLayer(layerOptions)); });
|
|
9959
10133
|
}
|
|
@@ -9974,7 +10148,7 @@
|
|
|
9974
10148
|
};
|
|
9975
10149
|
LayerService.prototype.createVectorLayer = function (layerOptions) {
|
|
9976
10150
|
var style;
|
|
9977
|
-
var
|
|
10151
|
+
var igoLayer;
|
|
9978
10152
|
if (layerOptions.style !== undefined) {
|
|
9979
10153
|
style = this.styleService.createStyle(layerOptions.style);
|
|
9980
10154
|
}
|
|
@@ -9987,7 +10161,7 @@
|
|
|
9987
10161
|
layerOptions.style = function (feature) {
|
|
9988
10162
|
return serviceStyle_1.createStyleByAttribute(feature, layerOptions.styleByAttribute);
|
|
9989
10163
|
};
|
|
9990
|
-
|
|
10164
|
+
igoLayer = new VectorLayer(layerOptions, this.messageService, this.authInterceptor);
|
|
9991
10165
|
}
|
|
9992
10166
|
if (layerOptions.source instanceof ClusterDataSource) {
|
|
9993
10167
|
var serviceStyle_2 = this.styleService;
|
|
@@ -9995,20 +10169,20 @@
|
|
|
9995
10169
|
layerOptions.style = function (feature) {
|
|
9996
10170
|
return serviceStyle_2.createClusterStyle(feature, layerOptions.clusterParam, baseStyle_1);
|
|
9997
10171
|
};
|
|
9998
|
-
|
|
10172
|
+
igoLayer = new VectorLayer(layerOptions, this.messageService, this.authInterceptor);
|
|
9999
10173
|
}
|
|
10000
10174
|
var layerOptionsOl = Object.assign({}, layerOptions, {
|
|
10001
10175
|
style: style
|
|
10002
10176
|
});
|
|
10003
|
-
if (!
|
|
10004
|
-
|
|
10177
|
+
if (!igoLayer) {
|
|
10178
|
+
igoLayer = new VectorLayer(layerOptionsOl, this.messageService, this.authInterceptor);
|
|
10005
10179
|
}
|
|
10006
|
-
this.applyMapboxStyle(
|
|
10007
|
-
return
|
|
10180
|
+
this.applyMapboxStyle(igoLayer, layerOptionsOl);
|
|
10181
|
+
return igoLayer;
|
|
10008
10182
|
};
|
|
10009
10183
|
LayerService.prototype.createVectorTileLayer = function (layerOptions) {
|
|
10010
10184
|
var style;
|
|
10011
|
-
var
|
|
10185
|
+
var igoLayer;
|
|
10012
10186
|
if (layerOptions.style !== undefined) {
|
|
10013
10187
|
style = this.styleService.createStyle(layerOptions.style);
|
|
10014
10188
|
}
|
|
@@ -10017,16 +10191,16 @@
|
|
|
10017
10191
|
layerOptions.style = function (feature) {
|
|
10018
10192
|
return serviceStyle_3.createStyleByAttribute(feature, layerOptions.styleByAttribute);
|
|
10019
10193
|
};
|
|
10020
|
-
|
|
10194
|
+
igoLayer = new VectorTileLayer(layerOptions, this.messageService, this.authInterceptor);
|
|
10021
10195
|
}
|
|
10022
10196
|
var layerOptionsOl = Object.assign({}, layerOptions, {
|
|
10023
10197
|
style: style
|
|
10024
10198
|
});
|
|
10025
|
-
if (!
|
|
10026
|
-
|
|
10199
|
+
if (!igoLayer) {
|
|
10200
|
+
igoLayer = new VectorTileLayer(layerOptionsOl, this.messageService, this.authInterceptor);
|
|
10027
10201
|
}
|
|
10028
|
-
this.applyMapboxStyle(
|
|
10029
|
-
return
|
|
10202
|
+
this.applyMapboxStyle(igoLayer, layerOptionsOl);
|
|
10203
|
+
return igoLayer;
|
|
10030
10204
|
};
|
|
10031
10205
|
LayerService.prototype.applyMapboxStyle = function (layer, layerOptions) {
|
|
10032
10206
|
if (layerOptions.mapboxStyle) {
|
|
@@ -11355,7 +11529,7 @@
|
|
|
11355
11529
|
*/
|
|
11356
11530
|
function layerFeatureIsQueryable(layer) {
|
|
11357
11531
|
var dataSource = layer.dataSource;
|
|
11358
|
-
return dataSource.options.
|
|
11532
|
+
return dataSource.options.queryLayerFeatures !== undefined ? (dataSource.options.queryLayerFeatures === true) : true;
|
|
11359
11533
|
}
|
|
11360
11534
|
/**
|
|
11361
11535
|
* Whether an OL Vector layer is queryable
|
|
@@ -11513,7 +11687,7 @@
|
|
|
11513
11687
|
finally { if (e_1) throw e_1.error; }
|
|
11514
11688
|
}
|
|
11515
11689
|
}
|
|
11516
|
-
else if (featureOL instanceof
|
|
11690
|
+
else if (featureOL instanceof RenderFeature__default["default"]) {
|
|
11517
11691
|
var newFeature = renderFeatureFromOl(featureOL, _this.map.projection, layerOL);
|
|
11518
11692
|
newFeature.meta = {
|
|
11519
11693
|
id: layerOL.values_._layer.id + '.' + newFeature.meta.id,
|
|
@@ -11946,7 +12120,7 @@
|
|
|
11946
12120
|
*/
|
|
11947
12121
|
function getCommonVectorStyle(_a) {
|
|
11948
12122
|
var feature = _a.feature, _b = _a.markerColor, markerColor = _b === void 0 ? [0, 161, 222] : _b, _c = _a.markerOpacity, markerOpacity = _c === void 0 ? 0.5 : _c, markerOutlineColor = _a.markerOutlineColor, _d = _a.fillColor, fillColor = _d === void 0 ? [0, 161, 222] : _d, _e = _a.fillOpacity, fillOpacity = _e === void 0 ? 0.15 : _e, _f = _a.strokeColor, strokeColor = _f === void 0 ? [0, 161, 222] : _f, _g = _a.strokeOpacity, strokeOpacity = _g === void 0 ? 0.5 : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 2 : _h;
|
|
11949
|
-
var isOlFeature = feature instanceof
|
|
12123
|
+
var isOlFeature = feature instanceof OlFeature__default["default"];
|
|
11950
12124
|
var geometry;
|
|
11951
12125
|
var text;
|
|
11952
12126
|
if (isOlFeature) {
|
|
@@ -12933,6 +13107,7 @@
|
|
|
12933
13107
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, "igo.geo.layer.legend.noLegendScale"), " ");
|
|
12934
13108
|
}
|
|
12935
13109
|
}
|
|
13110
|
+
var _c1$c = function (a0) { return [a0]; };
|
|
12936
13111
|
function LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_1_Template(rf, ctx) {
|
|
12937
13112
|
if (rf & 1) {
|
|
12938
13113
|
var _r28_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -12949,7 +13124,7 @@
|
|
|
12949
13124
|
var ctx_r22 = i0__namespace.ɵɵnextContext(3);
|
|
12950
13125
|
i0__namespace.ɵɵadvance(1);
|
|
12951
13126
|
i0__namespace.ɵɵpropertyInterpolate("id", item_r6.title);
|
|
12952
|
-
i0__namespace.ɵɵpropertyInterpolate("src",
|
|
13127
|
+
i0__namespace.ɵɵpropertyInterpolate("src", i0__namespace.ɵɵpureFunction1(6, _c1$c, item_r6.imgGraphValue), i0__namespace.ɵɵsanitizeUrl);
|
|
12953
13128
|
i0__namespace.ɵɵpropertyInterpolate("alt", i0__namespace.ɵɵpipeBind1(3, 4, "igo.geo.layer.legend.loadingLegendText"));
|
|
12954
13129
|
i0__namespace.ɵɵadvance(3);
|
|
12955
13130
|
i0__namespace.ɵɵproperty("ngIf", ctx_r22.imagesHeight[item_r6.title] < 16);
|
|
@@ -12958,17 +13133,18 @@
|
|
|
12958
13133
|
function LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_2_Template(rf, ctx) {
|
|
12959
13134
|
if (rf & 1) {
|
|
12960
13135
|
i0__namespace.ɵɵelement(0, "div", 15);
|
|
13136
|
+
i0__namespace.ɵɵpipe(1, "sanitizeHtml");
|
|
12961
13137
|
}
|
|
12962
13138
|
if (rf & 2) {
|
|
12963
13139
|
var item_r6 = i0__namespace.ɵɵnextContext(3).$implicit;
|
|
12964
|
-
i0__namespace.ɵɵproperty("ngStyle", item_r6.style)("innerHTML", item_r6.html, i0__namespace.ɵɵsanitizeHtml);
|
|
13140
|
+
i0__namespace.ɵɵproperty("ngStyle", item_r6.style)("innerHTML", i0__namespace.ɵɵpipeBind1(1, 2, item_r6.html), i0__namespace.ɵɵsanitizeHtml);
|
|
12965
13141
|
}
|
|
12966
13142
|
}
|
|
12967
13143
|
function LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_Template(rf, ctx) {
|
|
12968
13144
|
if (rf & 1) {
|
|
12969
13145
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
12970
|
-
i0__namespace.ɵɵtemplate(1, LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_1_Template, 5,
|
|
12971
|
-
i0__namespace.ɵɵtemplate(2, LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_2_Template,
|
|
13146
|
+
i0__namespace.ɵɵtemplate(1, LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_1_Template, 5, 8, "div", 0);
|
|
13147
|
+
i0__namespace.ɵɵtemplate(2, LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_div_5_div_2_Template, 2, 4, "div", 12);
|
|
12972
13148
|
i0__namespace.ɵɵelementEnd();
|
|
12973
13149
|
}
|
|
12974
13150
|
if (rf & 2) {
|
|
@@ -12979,7 +13155,7 @@
|
|
|
12979
13155
|
i0__namespace.ɵɵproperty("ngIf", item_r6.html);
|
|
12980
13156
|
}
|
|
12981
13157
|
}
|
|
12982
|
-
var
|
|
13158
|
+
var _c2$6 = function (a0) { return { "with-title": a0 }; };
|
|
12983
13159
|
function LayerLegendComponent_ng_container_0_ng_container_1_ng_container_1_div_2_Template(rf, ctx) {
|
|
12984
13160
|
if (rf & 1) {
|
|
12985
13161
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -12996,7 +13172,7 @@
|
|
|
12996
13172
|
i0__namespace.ɵɵadvance(1);
|
|
12997
13173
|
i0__namespace.ɵɵproperty("ngIf", item_r6.title);
|
|
12998
13174
|
i0__namespace.ɵɵadvance(1);
|
|
12999
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4,
|
|
13175
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c2$6, item_r6.title));
|
|
13000
13176
|
i0__namespace.ɵɵadvance(2);
|
|
13001
13177
|
i0__namespace.ɵɵproperty("ngIf", ctx_r8.currentStyle !== undefined);
|
|
13002
13178
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13056,6 +13232,9 @@
|
|
|
13056
13232
|
}
|
|
13057
13233
|
}
|
|
13058
13234
|
var LayerLegendComponent = /** @class */ (function () {
|
|
13235
|
+
/**
|
|
13236
|
+
* activeLegend
|
|
13237
|
+
*/
|
|
13059
13238
|
function LayerLegendComponent(capabilitiesService, languageService, http, cdRef) {
|
|
13060
13239
|
this.capabilitiesService = capabilitiesService;
|
|
13061
13240
|
this.languageService = languageService;
|
|
@@ -13082,10 +13261,6 @@
|
|
|
13082
13261
|
* if getLegendGraphic is authorized
|
|
13083
13262
|
*/
|
|
13084
13263
|
this.getLegend = true;
|
|
13085
|
-
/**
|
|
13086
|
-
* activeLegend
|
|
13087
|
-
*/
|
|
13088
|
-
this.legendGraphic = {};
|
|
13089
13264
|
}
|
|
13090
13265
|
/**
|
|
13091
13266
|
* On init, subscribe to the map's resolution and update the legend accordingly
|
|
@@ -13150,7 +13325,6 @@
|
|
|
13150
13325
|
LayerLegendComponent.prototype.getLegendGraphic = function (item) {
|
|
13151
13326
|
var _this = this;
|
|
13152
13327
|
var secureIMG = new i6$1.SecureImagePipe(this.http);
|
|
13153
|
-
this.currentItemTitle = item.title;
|
|
13154
13328
|
secureIMG.transform(item.url).pipe(operators.catchError(function (err) {
|
|
13155
13329
|
if (err.error) {
|
|
13156
13330
|
err.error.caught = true;
|
|
@@ -13158,8 +13332,10 @@
|
|
|
13158
13332
|
_this.cdRef.detectChanges();
|
|
13159
13333
|
return err;
|
|
13160
13334
|
}
|
|
13161
|
-
})).subscribe(function (
|
|
13162
|
-
_this.
|
|
13335
|
+
})).subscribe(function (obsLegGraph) {
|
|
13336
|
+
var idx = _this.legendItems$.value.findIndex(function (leg) { return leg.title === item.title; });
|
|
13337
|
+
var legendGraph = obsLegGraph;
|
|
13338
|
+
_this.legendItems$.value[idx].imgGraphValue = legendGraph;
|
|
13163
13339
|
_this.cdRef.detectChanges();
|
|
13164
13340
|
});
|
|
13165
13341
|
};
|
|
@@ -13286,7 +13462,7 @@
|
|
|
13286
13462
|
if (rf & 2) {
|
|
13287
13463
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.legendItems$));
|
|
13288
13464
|
}
|
|
13289
|
-
}, directives: [i1__namespace$1.NgIf, i1__namespace$1.NgForOf, i1__namespace$1.NgClass, i1__namespace$3.MatListItem, i4__namespace.MatIcon, i1__namespace$3.MatListAvatarCssMatStyler, i6__namespace$1.CollapseDirective, i9__namespace.MatLine, i12__namespace.MatFormField, i13__namespace.MatSelect, i3__namespace.MatTooltip, i16__namespace.NgControlStatus, i16__namespace.NgModel, i9__namespace.MatOption, i1__namespace$1.NgStyle], pipes: [i1__namespace$1.AsyncPipe, i7__namespace.TranslatePipe], styles: [".igo-layer-legend.with-title[_ngcontent-%COMP%]{padding-left:18px}img[_ngcontent-%COMP%]:after{content:\" \";position:relative;height:17px;float:left;width:17px;top:-3px;right:19px;background-color:#fff;border:3px solid #f3f3f3;border-radius:50%;-webkit-animation:2s linear infinite spin;animation:2s linear infinite spin}@-moz-document url-prefix(){img:after{margin-left:19px}}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"], changeDetection: 0 });
|
|
13465
|
+
}, directives: [i1__namespace$1.NgIf, i1__namespace$1.NgForOf, i1__namespace$1.NgClass, i1__namespace$3.MatListItem, i4__namespace.MatIcon, i1__namespace$3.MatListAvatarCssMatStyler, i6__namespace$1.CollapseDirective, i9__namespace.MatLine, i12__namespace.MatFormField, i13__namespace.MatSelect, i3__namespace.MatTooltip, i16__namespace.NgControlStatus, i16__namespace.NgModel, i9__namespace.MatOption, i1__namespace$1.NgStyle], pipes: [i1__namespace$1.AsyncPipe, i7__namespace.TranslatePipe, i6__namespace$1.SanitizeHtmlPipe], styles: [".igo-layer-legend.with-title[_ngcontent-%COMP%]{padding-left:18px}img[_ngcontent-%COMP%]:after{content:\" \";position:relative;height:17px;float:left;width:17px;top:-3px;right:19px;background-color:#fff;border:3px solid #f3f3f3;border-radius:50%;-webkit-animation:2s linear infinite spin;animation:2s linear infinite spin}@-moz-document url-prefix(){img:after{margin-left:19px}}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"], changeDetection: 0 });
|
|
13290
13466
|
(function () {
|
|
13291
13467
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LayerLegendComponent, [{
|
|
13292
13468
|
type: i0.Component,
|
|
@@ -16367,7 +16543,8 @@
|
|
|
16367
16543
|
i6$1.IgoCollapsibleModule,
|
|
16368
16544
|
i6$1.IgoImageModule,
|
|
16369
16545
|
i6$1.IgoPanelModule,
|
|
16370
|
-
i6$1.IgoMatBadgeIconModule
|
|
16546
|
+
i6$1.IgoMatBadgeIconModule,
|
|
16547
|
+
i6$1.IgoCustomHtmlModule
|
|
16371
16548
|
]] });
|
|
16372
16549
|
(function () {
|
|
16373
16550
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoLayerModule, [{
|
|
@@ -16394,7 +16571,8 @@
|
|
|
16394
16571
|
i6$1.IgoCollapsibleModule,
|
|
16395
16572
|
i6$1.IgoImageModule,
|
|
16396
16573
|
i6$1.IgoPanelModule,
|
|
16397
|
-
i6$1.IgoMatBadgeIconModule
|
|
16574
|
+
i6$1.IgoMatBadgeIconModule,
|
|
16575
|
+
i6$1.IgoCustomHtmlModule
|
|
16398
16576
|
],
|
|
16399
16577
|
exports: [
|
|
16400
16578
|
LayerItemComponent,
|
|
@@ -16450,7 +16628,8 @@
|
|
|
16450
16628
|
i6$1.IgoCollapsibleModule,
|
|
16451
16629
|
i6$1.IgoImageModule,
|
|
16452
16630
|
i6$1.IgoPanelModule,
|
|
16453
|
-
i6$1.IgoMatBadgeIconModule
|
|
16631
|
+
i6$1.IgoMatBadgeIconModule,
|
|
16632
|
+
i6$1.IgoCustomHtmlModule], exports: [LayerItemComponent,
|
|
16454
16633
|
LayerLegendItemComponent,
|
|
16455
16634
|
LayerLegendComponent,
|
|
16456
16635
|
LayerListComponent,
|
|
@@ -20881,7 +21060,7 @@
|
|
|
20881
21060
|
* @param olGeometry Ol Geometry
|
|
20882
21061
|
*/
|
|
20883
21062
|
ModifyControl.prototype.setOlGeometry = function (olGeometry) {
|
|
20884
|
-
var olFeature = new
|
|
21063
|
+
var olFeature = new OlFeature__default["default"]({ geometry: olGeometry });
|
|
20885
21064
|
this.olOverlaySource.clear();
|
|
20886
21065
|
this.olOverlaySource.addFeature(olFeature);
|
|
20887
21066
|
};
|
|
@@ -21365,7 +21544,7 @@
|
|
|
21365
21544
|
* @param olGeometry Ol Geometry
|
|
21366
21545
|
*/
|
|
21367
21546
|
SliceControl.prototype.setOlGeometry = function (olGeometry) {
|
|
21368
|
-
var olFeature = new
|
|
21547
|
+
var olFeature = new OlFeature__default["default"]({ geometry: olGeometry });
|
|
21369
21548
|
this.olOverlaySource.clear(true);
|
|
21370
21549
|
this.olOverlaySource.addFeature(olFeature);
|
|
21371
21550
|
};
|
|
@@ -21467,7 +21646,7 @@
|
|
|
21467
21646
|
}
|
|
21468
21647
|
}
|
|
21469
21648
|
this.drawLineControl.getSource().clear(true);
|
|
21470
|
-
this.olOverlaySource.addFeatures(olSlicedGeometries.map(function (olGeometry) { return new
|
|
21649
|
+
this.olOverlaySource.addFeatures(olSlicedGeometries.map(function (olGeometry) { return new OlFeature__default["default"](olGeometry); }));
|
|
21471
21650
|
olFeaturesToRemove.forEach(function (olFeature) {
|
|
21472
21651
|
_this.olOverlaySource.removeFeature(olFeature);
|
|
21473
21652
|
});
|
|
@@ -23247,7 +23426,7 @@
|
|
|
23247
23426
|
dataProjection: 'EPSG:4326',
|
|
23248
23427
|
featureProjection: this.map.projection
|
|
23249
23428
|
});
|
|
23250
|
-
var olFeature = new
|
|
23429
|
+
var olFeature = new OlFeature__default["default"]({
|
|
23251
23430
|
geometry: olGeometry
|
|
23252
23431
|
});
|
|
23253
23432
|
olFeature.setStyle(this.overlayStyle);
|
|
@@ -28109,9 +28288,9 @@
|
|
|
28109
28288
|
|
|
28110
28289
|
function SpatialFilterItemComponent_mat_slide_toggle_5_Template(rf, ctx) {
|
|
28111
28290
|
if (rf & 1) {
|
|
28112
|
-
var
|
|
28113
|
-
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle",
|
|
28114
|
-
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_slide_toggle_5_Template_mat_slide_toggle_change_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
28291
|
+
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28292
|
+
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle", 17);
|
|
28293
|
+
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_slide_toggle_5_Template_mat_slide_toggle_change_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.onDrawControlChange(); });
|
|
28115
28294
|
i0__namespace.ɵɵtext(1);
|
|
28116
28295
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28117
28296
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28125,9 +28304,9 @@
|
|
|
28125
28304
|
}
|
|
28126
28305
|
function SpatialFilterItemComponent_mat_slide_toggle_6_Template(rf, ctx) {
|
|
28127
28306
|
if (rf & 1) {
|
|
28128
|
-
var
|
|
28129
|
-
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle",
|
|
28130
|
-
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_slide_toggle_6_Template_mat_slide_toggle_change_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
28307
|
+
var _r13_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28308
|
+
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle", 17);
|
|
28309
|
+
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_slide_toggle_6_Template_mat_slide_toggle_change_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.onfreehandControlChange(); });
|
|
28131
28310
|
i0__namespace.ɵɵtext(1);
|
|
28132
28311
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28133
28312
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28147,26 +28326,26 @@
|
|
|
28147
28326
|
i0__namespace.ɵɵelementEnd();
|
|
28148
28327
|
}
|
|
28149
28328
|
if (rf & 2) {
|
|
28150
|
-
var
|
|
28151
|
-
i0__namespace.ɵɵproperty("value",
|
|
28329
|
+
var measureUnit_r15 = ctx.$implicit;
|
|
28330
|
+
i0__namespace.ɵɵproperty("value", measureUnit_r15);
|
|
28152
28331
|
i0__namespace.ɵɵadvance(1);
|
|
28153
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.measure." +
|
|
28332
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.measure." + measureUnit_r15), " ");
|
|
28154
28333
|
}
|
|
28155
28334
|
}
|
|
28156
28335
|
function SpatialFilterItemComponent_div_7_Template(rf, ctx) {
|
|
28157
28336
|
if (rf & 1) {
|
|
28158
|
-
var
|
|
28159
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
28160
|
-
i0__namespace.ɵɵelementStart(1, "form",
|
|
28161
|
-
i0__namespace.ɵɵelementStart(2, "mat-form-field",
|
|
28162
|
-
i0__namespace.ɵɵelement(3, "input",
|
|
28337
|
+
var _r17_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28338
|
+
i0__namespace.ɵɵelementStart(0, "div", 18);
|
|
28339
|
+
i0__namespace.ɵɵelementStart(1, "form", 19);
|
|
28340
|
+
i0__namespace.ɵɵelementStart(2, "mat-form-field", 20);
|
|
28341
|
+
i0__namespace.ɵɵelement(3, "input", 21);
|
|
28163
28342
|
i0__namespace.ɵɵpipe(4, "translate");
|
|
28164
28343
|
i0__namespace.ɵɵelementEnd();
|
|
28165
28344
|
i0__namespace.ɵɵelementEnd();
|
|
28166
|
-
i0__namespace.ɵɵelementStart(5, "mat-form-field",
|
|
28167
|
-
i0__namespace.ɵɵelementStart(6, "mat-select",
|
|
28168
|
-
i0__namespace.ɵɵlistener("selectionChange", function SpatialFilterItemComponent_div_7_Template_mat_select_selectionChange_6_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
28169
|
-
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_7_mat_option_7_Template, 3, 4, "mat-option",
|
|
28345
|
+
i0__namespace.ɵɵelementStart(5, "mat-form-field", 22);
|
|
28346
|
+
i0__namespace.ɵɵelementStart(6, "mat-select", 23);
|
|
28347
|
+
i0__namespace.ɵɵlistener("selectionChange", function SpatialFilterItemComponent_div_7_Template_mat_select_selectionChange_6_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onMeasureUnitChange($event.value); });
|
|
28348
|
+
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_7_mat_option_7_Template, 3, 4, "mat-option", 24);
|
|
28170
28349
|
i0__namespace.ɵɵelementEnd();
|
|
28171
28350
|
i0__namespace.ɵɵelementEnd();
|
|
28172
28351
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28190,28 +28369,28 @@
|
|
|
28190
28369
|
i0__namespace.ɵɵelementEnd();
|
|
28191
28370
|
}
|
|
28192
28371
|
if (rf & 2) {
|
|
28193
|
-
var
|
|
28194
|
-
i0__namespace.ɵɵproperty("value",
|
|
28372
|
+
var measureUnit_r19 = ctx.$implicit;
|
|
28373
|
+
i0__namespace.ɵɵproperty("value", measureUnit_r19);
|
|
28195
28374
|
i0__namespace.ɵɵadvance(1);
|
|
28196
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.measure." +
|
|
28375
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.measure." + measureUnit_r19), " ");
|
|
28197
28376
|
}
|
|
28198
28377
|
}
|
|
28199
28378
|
function SpatialFilterItemComponent_div_8_Template(rf, ctx) {
|
|
28200
28379
|
if (rf & 1) {
|
|
28201
|
-
var
|
|
28202
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
28203
|
-
i0__namespace.ɵɵelementStart(1, "form",
|
|
28204
|
-
i0__namespace.ɵɵelementStart(2, "mat-form-field",
|
|
28205
|
-
i0__namespace.ɵɵelementStart(3, "input",
|
|
28206
|
-
i0__namespace.ɵɵlistener("input", function SpatialFilterItemComponent_div_8_Template_input_input_3_listener() { i0__namespace.ɵɵrestoreView(
|
|
28380
|
+
var _r21_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28381
|
+
i0__namespace.ɵɵelementStart(0, "div", 25);
|
|
28382
|
+
i0__namespace.ɵɵelementStart(1, "form", 26);
|
|
28383
|
+
i0__namespace.ɵɵelementStart(2, "mat-form-field", 27);
|
|
28384
|
+
i0__namespace.ɵɵelementStart(3, "input", 28);
|
|
28385
|
+
i0__namespace.ɵɵlistener("input", function SpatialFilterItemComponent_div_8_Template_input_input_3_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.getRadius(); });
|
|
28207
28386
|
i0__namespace.ɵɵpipe(4, "translate");
|
|
28208
28387
|
i0__namespace.ɵɵelementEnd();
|
|
28209
28388
|
i0__namespace.ɵɵelementEnd();
|
|
28210
28389
|
i0__namespace.ɵɵelementEnd();
|
|
28211
|
-
i0__namespace.ɵɵelementStart(5, "mat-form-field",
|
|
28212
|
-
i0__namespace.ɵɵelementStart(6, "mat-select",
|
|
28213
|
-
i0__namespace.ɵɵlistener("selectionChange", function SpatialFilterItemComponent_div_8_Template_mat_select_selectionChange_6_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
28214
|
-
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_8_mat_option_7_Template, 3, 4, "mat-option",
|
|
28390
|
+
i0__namespace.ɵɵelementStart(5, "mat-form-field", 22);
|
|
28391
|
+
i0__namespace.ɵɵelementStart(6, "mat-select", 23);
|
|
28392
|
+
i0__namespace.ɵɵlistener("selectionChange", function SpatialFilterItemComponent_div_8_Template_mat_select_selectionChange_6_listener($event) { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.onMeasureUnitChange($event.value); });
|
|
28393
|
+
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_8_mat_option_7_Template, 3, 4, "mat-option", 24);
|
|
28215
28394
|
i0__namespace.ɵɵelementEnd();
|
|
28216
28395
|
i0__namespace.ɵɵelementEnd();
|
|
28217
28396
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28229,23 +28408,23 @@
|
|
|
28229
28408
|
}
|
|
28230
28409
|
function SpatialFilterItemComponent_mat_radio_button_13_Template(rf, ctx) {
|
|
28231
28410
|
if (rf & 1) {
|
|
28232
|
-
var
|
|
28233
|
-
i0__namespace.ɵɵelementStart(0, "mat-radio-button",
|
|
28234
|
-
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_radio_button_13_Template_mat_radio_button_change_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
28411
|
+
var _r25_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28412
|
+
i0__namespace.ɵɵelementStart(0, "mat-radio-button", 29);
|
|
28413
|
+
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_mat_radio_button_13_Template_mat_radio_button_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(); return ctx_r24.onItemTypeChange($event); });
|
|
28235
28414
|
i0__namespace.ɵɵtext(1);
|
|
28236
28415
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28237
28416
|
i0__namespace.ɵɵelementEnd();
|
|
28238
28417
|
}
|
|
28239
28418
|
if (rf & 2) {
|
|
28240
|
-
var
|
|
28241
|
-
i0__namespace.ɵɵproperty("value",
|
|
28419
|
+
var item_r23 = ctx.$implicit;
|
|
28420
|
+
i0__namespace.ɵɵproperty("value", item_r23);
|
|
28242
28421
|
i0__namespace.ɵɵadvance(1);
|
|
28243
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.spatialFilter." +
|
|
28422
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.spatialFilter." + item_r23), " ");
|
|
28244
28423
|
}
|
|
28245
28424
|
}
|
|
28246
28425
|
function SpatialFilterItemComponent_div_14_mat_header_cell_3_Template(rf, ctx) {
|
|
28247
28426
|
if (rf & 1) {
|
|
28248
|
-
i0__namespace.ɵɵelementStart(0, "mat-header-cell",
|
|
28427
|
+
i0__namespace.ɵɵelementStart(0, "mat-header-cell", 40);
|
|
28249
28428
|
i0__namespace.ɵɵtext(1);
|
|
28250
28429
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28251
28430
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28257,17 +28436,17 @@
|
|
|
28257
28436
|
}
|
|
28258
28437
|
function SpatialFilterItemComponent_div_14_mat_header_cell_5_Template(rf, ctx) {
|
|
28259
28438
|
if (rf & 1) {
|
|
28260
|
-
var
|
|
28261
|
-
i0__namespace.ɵɵelementStart(0, "mat-header-cell",
|
|
28262
|
-
i0__namespace.ɵɵelementStart(1, "mat-checkbox",
|
|
28263
|
-
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_div_14_mat_header_cell_5_Template_mat_checkbox_change_1_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
28439
|
+
var _r33_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28440
|
+
i0__namespace.ɵɵelementStart(0, "mat-header-cell", 41);
|
|
28441
|
+
i0__namespace.ɵɵelementStart(1, "mat-checkbox", 42);
|
|
28442
|
+
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_div_14_mat_header_cell_5_Template_mat_checkbox_change_1_listener($event) { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return $event ? ctx_r32.masterToggle() : null; });
|
|
28264
28443
|
i0__namespace.ɵɵelementEnd();
|
|
28265
28444
|
i0__namespace.ɵɵelementEnd();
|
|
28266
28445
|
}
|
|
28267
28446
|
if (rf & 2) {
|
|
28268
|
-
var
|
|
28447
|
+
var ctx_r27 = i0__namespace.ɵɵnextContext(2);
|
|
28269
28448
|
i0__namespace.ɵɵadvance(1);
|
|
28270
|
-
i0__namespace.ɵɵproperty("checked",
|
|
28449
|
+
i0__namespace.ɵɵproperty("checked", ctx_r27.isAllSelected())("indeterminate", ctx_r27.selectedThematics.hasValue() && !ctx_r27.isAllSelected());
|
|
28271
28450
|
}
|
|
28272
28451
|
}
|
|
28273
28452
|
function SpatialFilterItemComponent_div_14_mat_header_row_6_Template(rf, ctx) {
|
|
@@ -28282,74 +28461,74 @@
|
|
|
28282
28461
|
}
|
|
28283
28462
|
function SpatialFilterItemComponent_div_14_mat_tree_node_9_Template(rf, ctx) {
|
|
28284
28463
|
if (rf & 1) {
|
|
28285
|
-
var
|
|
28286
|
-
i0__namespace.ɵɵelementStart(0, "mat-tree-node",
|
|
28287
|
-
i0__namespace.ɵɵelementStart(1, "li",
|
|
28288
|
-
i0__namespace.ɵɵelement(2, "button",
|
|
28464
|
+
var _r38_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28465
|
+
i0__namespace.ɵɵelementStart(0, "mat-tree-node", 43);
|
|
28466
|
+
i0__namespace.ɵɵelementStart(1, "li", 44);
|
|
28467
|
+
i0__namespace.ɵɵelement(2, "button", 45);
|
|
28289
28468
|
i0__namespace.ɵɵtext(3);
|
|
28290
|
-
i0__namespace.ɵɵelementStart(4, "mat-checkbox",
|
|
28291
|
-
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_div_14_mat_tree_node_9_Template_mat_checkbox_click_4_listener($event) { return $event.stopPropagation(); })("change", function SpatialFilterItemComponent_div_14_mat_tree_node_9_Template_mat_checkbox_change_4_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(
|
|
28469
|
+
i0__namespace.ɵɵelementStart(4, "mat-checkbox", 46);
|
|
28470
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_div_14_mat_tree_node_9_Template_mat_checkbox_click_4_listener($event) { return $event.stopPropagation(); })("change", function SpatialFilterItemComponent_div_14_mat_tree_node_9_Template_mat_checkbox_change_4_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r38_1); var node_r35 = restoredCtx.$implicit; var ctx_r37 = i0__namespace.ɵɵnextContext(2); return $event ? ctx_r37.onToggleChange(node_r35) : null; });
|
|
28292
28471
|
i0__namespace.ɵɵelementEnd();
|
|
28293
28472
|
i0__namespace.ɵɵelementEnd();
|
|
28294
28473
|
i0__namespace.ɵɵelementEnd();
|
|
28295
28474
|
}
|
|
28296
28475
|
if (rf & 2) {
|
|
28297
|
-
var
|
|
28298
|
-
var
|
|
28476
|
+
var node_r35 = ctx.$implicit;
|
|
28477
|
+
var ctx_r30 = i0__namespace.ɵɵnextContext(2);
|
|
28299
28478
|
i0__namespace.ɵɵadvance(3);
|
|
28300
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
28479
|
+
i0__namespace.ɵɵtextInterpolate1(" ", node_r35.name, " ");
|
|
28301
28480
|
i0__namespace.ɵɵadvance(1);
|
|
28302
|
-
i0__namespace.ɵɵproperty("checked",
|
|
28481
|
+
i0__namespace.ɵɵproperty("checked", ctx_r30.selectedThematics.isSelected(node_r35));
|
|
28303
28482
|
}
|
|
28304
28483
|
}
|
|
28305
28484
|
function SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template(rf, ctx) {
|
|
28306
28485
|
if (rf & 1) {
|
|
28307
|
-
var
|
|
28486
|
+
var _r41_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28308
28487
|
i0__namespace.ɵɵelementStart(0, "mat-nested-tree-node");
|
|
28309
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
28310
|
-
i0__namespace.ɵɵelementStart(2, "button",
|
|
28311
|
-
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template_button_click_2_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(
|
|
28312
|
-
i0__namespace.ɵɵelement(3, "mat-icon",
|
|
28488
|
+
i0__namespace.ɵɵelementStart(1, "div", 44);
|
|
28489
|
+
i0__namespace.ɵɵelementStart(2, "button", 47);
|
|
28490
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template_button_click_2_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r41_1); var node_r39 = restoredCtx.$implicit; var ctx_r40 = i0__namespace.ɵɵnextContext(2); return ctx_r40.onToggleClick(node_r39); });
|
|
28491
|
+
i0__namespace.ɵɵelement(3, "mat-icon", 48);
|
|
28313
28492
|
i0__namespace.ɵɵelementEnd();
|
|
28314
28493
|
i0__namespace.ɵɵtext(4);
|
|
28315
|
-
i0__namespace.ɵɵelementStart(5, "mat-checkbox",
|
|
28316
|
-
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template_mat_checkbox_change_5_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(
|
|
28494
|
+
i0__namespace.ɵɵelementStart(5, "mat-checkbox", 49);
|
|
28495
|
+
i0__namespace.ɵɵlistener("change", function SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template_mat_checkbox_change_5_listener($event) { var restoredCtx = i0__namespace.ɵɵrestoreView(_r41_1); var node_r39 = restoredCtx.$implicit; var ctx_r42 = i0__namespace.ɵɵnextContext(2); return $event ? ctx_r42.childrensToggle(node_r39) : null; });
|
|
28317
28496
|
i0__namespace.ɵɵelementEnd();
|
|
28318
28497
|
i0__namespace.ɵɵelementEnd();
|
|
28319
|
-
i0__namespace.ɵɵelementStart(6, "ul",
|
|
28320
|
-
i0__namespace.ɵɵelementContainer(7,
|
|
28498
|
+
i0__namespace.ɵɵelementStart(6, "ul", 50);
|
|
28499
|
+
i0__namespace.ɵɵelementContainer(7, 51);
|
|
28321
28500
|
i0__namespace.ɵɵelementEnd();
|
|
28322
28501
|
i0__namespace.ɵɵelementEnd();
|
|
28323
28502
|
}
|
|
28324
28503
|
if (rf & 2) {
|
|
28325
|
-
var
|
|
28326
|
-
var
|
|
28504
|
+
var node_r39 = ctx.$implicit;
|
|
28505
|
+
var ctx_r31 = i0__namespace.ɵɵnextContext(2);
|
|
28327
28506
|
i0__namespace.ɵɵadvance(3);
|
|
28328
|
-
i0__namespace.ɵɵproperty("svgIcon",
|
|
28507
|
+
i0__namespace.ɵɵproperty("svgIcon", ctx_r31.treeControl.isExpanded(node_r39) ? "chevron-down" : "chevron-right");
|
|
28329
28508
|
i0__namespace.ɵɵadvance(1);
|
|
28330
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
28509
|
+
i0__namespace.ɵɵtextInterpolate1(" ", node_r39.name, " ");
|
|
28331
28510
|
i0__namespace.ɵɵadvance(1);
|
|
28332
|
-
i0__namespace.ɵɵproperty("checked",
|
|
28511
|
+
i0__namespace.ɵɵproperty("checked", ctx_r31.isAllSelected(node_r39))("indeterminate", ctx_r31.hasChildrenSelected(node_r39) && !ctx_r31.isAllSelected(node_r39));
|
|
28333
28512
|
i0__namespace.ɵɵadvance(1);
|
|
28334
|
-
i0__namespace.ɵɵclassProp("example-tree-invisible", !
|
|
28513
|
+
i0__namespace.ɵɵclassProp("example-tree-invisible", !ctx_r31.treeControl.isExpanded(node_r39));
|
|
28335
28514
|
}
|
|
28336
28515
|
}
|
|
28337
28516
|
function SpatialFilterItemComponent_div_14_Template(rf, ctx) {
|
|
28338
28517
|
if (rf & 1) {
|
|
28339
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
28518
|
+
i0__namespace.ɵɵelementStart(0, "div", 30);
|
|
28340
28519
|
i0__namespace.ɵɵelementStart(1, "mat-table");
|
|
28341
|
-
i0__namespace.ɵɵelementContainerStart(2,
|
|
28342
|
-
i0__namespace.ɵɵtemplate(3, SpatialFilterItemComponent_div_14_mat_header_cell_3_Template, 3, 3, "mat-header-cell",
|
|
28520
|
+
i0__namespace.ɵɵelementContainerStart(2, 31);
|
|
28521
|
+
i0__namespace.ɵɵtemplate(3, SpatialFilterItemComponent_div_14_mat_header_cell_3_Template, 3, 3, "mat-header-cell", 32);
|
|
28343
28522
|
i0__namespace.ɵɵelementContainerEnd();
|
|
28344
|
-
i0__namespace.ɵɵelementContainerStart(4,
|
|
28345
|
-
i0__namespace.ɵɵtemplate(5, SpatialFilterItemComponent_div_14_mat_header_cell_5_Template, 2, 2, "mat-header-cell",
|
|
28523
|
+
i0__namespace.ɵɵelementContainerStart(4, 33);
|
|
28524
|
+
i0__namespace.ɵɵtemplate(5, SpatialFilterItemComponent_div_14_mat_header_cell_5_Template, 2, 2, "mat-header-cell", 34);
|
|
28346
28525
|
i0__namespace.ɵɵelementContainerEnd();
|
|
28347
|
-
i0__namespace.ɵɵtemplate(6, SpatialFilterItemComponent_div_14_mat_header_row_6_Template, 1, 0, "mat-header-row",
|
|
28348
|
-
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_14_mat_row_7_Template, 1, 0, "mat-row",
|
|
28526
|
+
i0__namespace.ɵɵtemplate(6, SpatialFilterItemComponent_div_14_mat_header_row_6_Template, 1, 0, "mat-header-row", 35);
|
|
28527
|
+
i0__namespace.ɵɵtemplate(7, SpatialFilterItemComponent_div_14_mat_row_7_Template, 1, 0, "mat-row", 36);
|
|
28349
28528
|
i0__namespace.ɵɵelementEnd();
|
|
28350
|
-
i0__namespace.ɵɵelementStart(8, "mat-tree",
|
|
28351
|
-
i0__namespace.ɵɵtemplate(9, SpatialFilterItemComponent_div_14_mat_tree_node_9_Template, 5, 2, "mat-tree-node",
|
|
28352
|
-
i0__namespace.ɵɵtemplate(10, SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template, 8, 6, "mat-nested-tree-node",
|
|
28529
|
+
i0__namespace.ɵɵelementStart(8, "mat-tree", 37);
|
|
28530
|
+
i0__namespace.ɵɵtemplate(9, SpatialFilterItemComponent_div_14_mat_tree_node_9_Template, 5, 2, "mat-tree-node", 38);
|
|
28531
|
+
i0__namespace.ɵɵtemplate(10, SpatialFilterItemComponent_div_14_mat_nested_tree_node_10_Template, 8, 6, "mat-nested-tree-node", 39);
|
|
28353
28532
|
i0__namespace.ɵɵelementEnd();
|
|
28354
28533
|
i0__namespace.ɵɵelementEnd();
|
|
28355
28534
|
}
|
|
@@ -28367,9 +28546,9 @@
|
|
|
28367
28546
|
}
|
|
28368
28547
|
function SpatialFilterItemComponent_button_16_Template(rf, ctx) {
|
|
28369
28548
|
if (rf & 1) {
|
|
28370
|
-
var
|
|
28371
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
28372
|
-
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_button_16_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
28549
|
+
var _r44_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28550
|
+
i0__namespace.ɵɵelementStart(0, "button", 52);
|
|
28551
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_button_16_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r44_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.clearSearch(); });
|
|
28373
28552
|
i0__namespace.ɵɵtext(1);
|
|
28374
28553
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28375
28554
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28383,9 +28562,9 @@
|
|
|
28383
28562
|
}
|
|
28384
28563
|
function SpatialFilterItemComponent_button_17_Template(rf, ctx) {
|
|
28385
28564
|
if (rf & 1) {
|
|
28386
|
-
var
|
|
28387
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
28388
|
-
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_button_17_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
28565
|
+
var _r46_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28566
|
+
i0__namespace.ɵɵelementStart(0, "button", 53);
|
|
28567
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_button_17_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r46_1); var ctx_r45 = i0__namespace.ɵɵnextContext(); return ctx_r45.clearDrawZone(); });
|
|
28389
28568
|
i0__namespace.ɵɵtext(1);
|
|
28390
28569
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
28391
28570
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28397,6 +28576,50 @@
|
|
|
28397
28576
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.spatialFilter.clearForm"), " ");
|
|
28398
28577
|
}
|
|
28399
28578
|
}
|
|
28579
|
+
function SpatialFilterItemComponent_button_27_Template(rf, ctx) {
|
|
28580
|
+
if (rf & 1) {
|
|
28581
|
+
var _r48_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28582
|
+
i0__namespace.ɵɵelementStart(0, "button", 54);
|
|
28583
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_button_27_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r48_1); var ctx_r47 = i0__namespace.ɵɵnextContext(); return ctx_r47.toggleVisibleList(); });
|
|
28584
|
+
i0__namespace.ɵɵpipe(1, "translate");
|
|
28585
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 55);
|
|
28586
|
+
i0__namespace.ɵɵelementEnd();
|
|
28587
|
+
}
|
|
28588
|
+
if (rf & 2) {
|
|
28589
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 1, "igo.geo.spatialFilter.showSearchResults"));
|
|
28590
|
+
}
|
|
28591
|
+
}
|
|
28592
|
+
function SpatialFilterItemComponent_div_28_button_1_Template(rf, ctx) {
|
|
28593
|
+
if (rf & 1) {
|
|
28594
|
+
var _r51_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28595
|
+
i0__namespace.ɵɵelementStart(0, "button", 59);
|
|
28596
|
+
i0__namespace.ɵɵlistener("click", function SpatialFilterItemComponent_div_28_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r51_1); var ctx_r50 = i0__namespace.ɵɵnextContext(2); return ctx_r50.toggleVisibleList(); });
|
|
28597
|
+
i0__namespace.ɵɵpipe(1, "translate");
|
|
28598
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 60);
|
|
28599
|
+
i0__namespace.ɵɵelementEnd();
|
|
28600
|
+
}
|
|
28601
|
+
if (rf & 2) {
|
|
28602
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 1, "igo.geo.spatialFilter.hideSearchResults"));
|
|
28603
|
+
}
|
|
28604
|
+
}
|
|
28605
|
+
function SpatialFilterItemComponent_div_28_Template(rf, ctx) {
|
|
28606
|
+
if (rf & 1) {
|
|
28607
|
+
var _r53_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28608
|
+
i0__namespace.ɵɵelementStart(0, "div", 56);
|
|
28609
|
+
i0__namespace.ɵɵtemplate(1, SpatialFilterItemComponent_div_28_button_1_Template, 3, 3, "button", 57);
|
|
28610
|
+
i0__namespace.ɵɵelementStart(2, "igo-entity-table", 58);
|
|
28611
|
+
i0__namespace.ɵɵlistener("entitySelectChange", function SpatialFilterItemComponent_div_28_Template_igo_entity_table_entitySelectChange_2_listener($event) { i0__namespace.ɵɵrestoreView(_r53_1); var ctx_r52 = i0__namespace.ɵɵnextContext(); return ctx_r52.entityChange.emit($event); });
|
|
28612
|
+
i0__namespace.ɵɵelementEnd();
|
|
28613
|
+
i0__namespace.ɵɵelementEnd();
|
|
28614
|
+
}
|
|
28615
|
+
if (rf & 2) {
|
|
28616
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
28617
|
+
i0__namespace.ɵɵadvance(1);
|
|
28618
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r9.listIsVisible);
|
|
28619
|
+
i0__namespace.ɵɵadvance(1);
|
|
28620
|
+
i0__namespace.ɵɵproperty("template", ctx_r9.tableTemplate)("store", ctx_r9.store);
|
|
28621
|
+
}
|
|
28622
|
+
}
|
|
28400
28623
|
/**
|
|
28401
28624
|
* Spatial-Filter-Item (search parameters)
|
|
28402
28625
|
*/
|
|
@@ -28421,6 +28644,7 @@
|
|
|
28421
28644
|
this.clearSearchEvent = new i0.EventEmitter();
|
|
28422
28645
|
this.export = new i0.EventEmitter();
|
|
28423
28646
|
this.openWorkspace = new i0.EventEmitter();
|
|
28647
|
+
this.entityChange = new i0.EventEmitter();
|
|
28424
28648
|
this.itemType = [exports.SpatialFilterItemType.Address, exports.SpatialFilterItemType.Thematics];
|
|
28425
28649
|
this.selectedItemType = exports.SpatialFilterItemType.Address;
|
|
28426
28650
|
this.treeControl = new tree.NestedTreeControl(function (node) { return node.children; });
|
|
@@ -28449,6 +28673,7 @@
|
|
|
28449
28673
|
this.radiusFormControl = new i16.FormControl();
|
|
28450
28674
|
this.bufferFormControl = new i16.FormControl();
|
|
28451
28675
|
this.measureUnit = exports.MeasureLengthUnit.Meters;
|
|
28676
|
+
this.listIsVisible = true;
|
|
28452
28677
|
}
|
|
28453
28678
|
Object.defineProperty(SpatialFilterItemComponent.prototype, "type", {
|
|
28454
28679
|
get: function () {
|
|
@@ -28710,6 +28935,24 @@
|
|
|
28710
28935
|
_this.messageService.alert(_this.languageService.translate.instant('igo.geo.spatialFilter.bufferAlert'), _this.languageService.translate.instant('igo.geo.spatialFilter.warning'));
|
|
28711
28936
|
}
|
|
28712
28937
|
});
|
|
28938
|
+
var selectedRecordStrategy = new i6$1.EntityStoreFilterSelectionStrategy({});
|
|
28939
|
+
var selectionStrategy = new FeatureStoreSelectionStrategy({
|
|
28940
|
+
layer: new VectorLayer({
|
|
28941
|
+
zIndex: 300,
|
|
28942
|
+
source: new FeatureDataSource(),
|
|
28943
|
+
style: undefined,
|
|
28944
|
+
showInLayerList: false,
|
|
28945
|
+
exportable: false,
|
|
28946
|
+
browsable: false
|
|
28947
|
+
}),
|
|
28948
|
+
map: this.map,
|
|
28949
|
+
hitTolerance: 15,
|
|
28950
|
+
motion: exports.FeatureMotion.Default,
|
|
28951
|
+
many: true,
|
|
28952
|
+
dragBox: true
|
|
28953
|
+
});
|
|
28954
|
+
this.store.addStrategy(selectionStrategy, true);
|
|
28955
|
+
this.store.addStrategy(selectedRecordStrategy, false);
|
|
28713
28956
|
};
|
|
28714
28957
|
/**
|
|
28715
28958
|
* Unsubscribe to the value stream
|
|
@@ -28981,9 +29224,10 @@
|
|
|
28981
29224
|
this.bufferEvent.emit(this.buffer);
|
|
28982
29225
|
}
|
|
28983
29226
|
this.toggleSearch.emit();
|
|
28984
|
-
this.store.entities$.subscribe(function (value) {
|
|
29227
|
+
this.store.entities$.pipe(operators.debounceTime(500)).subscribe(function (value) {
|
|
28985
29228
|
if (value.length && _this.layers.length === _this.thematicLength + 1) {
|
|
28986
29229
|
_this.openWorkspace.emit();
|
|
29230
|
+
_this.createTableTemplate();
|
|
28987
29231
|
}
|
|
28988
29232
|
});
|
|
28989
29233
|
};
|
|
@@ -29004,6 +29248,7 @@
|
|
|
29004
29248
|
this.bufferEvent.emit(0);
|
|
29005
29249
|
this.clearButtonEvent.emit();
|
|
29006
29250
|
this.loading = false;
|
|
29251
|
+
this.tableTemplate = undefined;
|
|
29007
29252
|
};
|
|
29008
29253
|
SpatialFilterItemComponent.prototype.clearDrawZone = function () {
|
|
29009
29254
|
this.formControl.reset();
|
|
@@ -29108,10 +29353,31 @@
|
|
|
29108
29353
|
this.drawStyle$.next(this.PointStyle);
|
|
29109
29354
|
}
|
|
29110
29355
|
};
|
|
29356
|
+
SpatialFilterItemComponent.prototype.toggleVisibleList = function () {
|
|
29357
|
+
this.listIsVisible = !this.listIsVisible;
|
|
29358
|
+
};
|
|
29359
|
+
SpatialFilterItemComponent.prototype.createTableTemplate = function () {
|
|
29360
|
+
var typeColumn = {
|
|
29361
|
+
name: 'meta.title',
|
|
29362
|
+
title: this.languageService.translate.instant('igo.geo.spatialFilter.type'),
|
|
29363
|
+
renderer: i6$1.EntityTableColumnRenderer.UnsanitizedHTML
|
|
29364
|
+
};
|
|
29365
|
+
var nameColumn = {
|
|
29366
|
+
name: 'properties.nom',
|
|
29367
|
+
title: this.languageService.translate.instant('igo.geo.spatialFilter.searchResults'),
|
|
29368
|
+
renderer: i6$1.EntityTableColumnRenderer.UnsanitizedHTML
|
|
29369
|
+
};
|
|
29370
|
+
var columns = [typeColumn, nameColumn];
|
|
29371
|
+
this.tableTemplate = {
|
|
29372
|
+
selection: true,
|
|
29373
|
+
sort: true,
|
|
29374
|
+
columns: columns
|
|
29375
|
+
};
|
|
29376
|
+
};
|
|
29111
29377
|
return SpatialFilterItemComponent;
|
|
29112
29378
|
}());
|
|
29113
29379
|
SpatialFilterItemComponent.ɵfac = function SpatialFilterItemComponent_Factory(t) { return new (t || SpatialFilterItemComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SpatialFilterService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService)); };
|
|
29114
|
-
SpatialFilterItemComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SpatialFilterItemComponent, selectors: [["igo-spatial-filter-item"]], inputs: { map: "map", type: "type", queryType: "queryType", zone: "zone", loading: "loading", store: "store", layers: "layers", allLayers: "allLayers", thematicLength: "thematicLength" }, outputs: { toggleSearch: "toggleSearch", itemTypeChange: "itemTypeChange", thematicChange: "thematicChange", drawZoneEvent: "drawZoneEvent", bufferEvent: "bufferEvent", zoneWithBufferChange: "zoneWithBufferChange", measureUnitChange: "measureUnitChange", radiusEvent: "radiusEvent", freehandControl: "freehandControl", clearButtonEvent: "clearButtonEvent", clearSearchEvent: "clearSearchEvent", export: "export", openWorkspace: "openWorkspace" }, decls:
|
|
29380
|
+
SpatialFilterItemComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SpatialFilterItemComponent, selectors: [["igo-spatial-filter-item"]], inputs: { map: "map", type: "type", queryType: "queryType", zone: "zone", loading: "loading", store: "store", layers: "layers", allLayers: "allLayers", thematicLength: "thematicLength" }, outputs: { toggleSearch: "toggleSearch", itemTypeChange: "itemTypeChange", thematicChange: "thematicChange", drawZoneEvent: "drawZoneEvent", bufferEvent: "bufferEvent", zoneWithBufferChange: "zoneWithBufferChange", measureUnitChange: "measureUnitChange", radiusEvent: "radiusEvent", freehandControl: "freehandControl", clearButtonEvent: "clearButtonEvent", clearSearchEvent: "clearSearchEvent", export: "export", openWorkspace: "openWorkspace", entityChange: "entityChange" }, decls: 29, vars: 42, consts: [[3, "formControl", "map", "geometryType", "drawGuide", "measure", "drawControlIsActive", "freehandDrawIsActive", "drawStyle", "overlayStyle", "radius"], [1, "header"], [3, "checked", "labelPosition", "change", 4, "ngIf"], ["class", "buffer-unit", 4, "ngIf"], ["class", "radius-unit", 4, "ngIf"], [1, "title", "mat-typography"], [3, "value"], [3, "value", "change", 4, "ngFor", "ngForOf"], ["class", "thematics", 4, "ngIf"], [1, "buttons"], ["mat-raised-button", "", "class", "clear-search-button", 3, "disabled", "click", 4, "ngIf"], ["mat-raised-button", "", "class", "clear-form-button", 3, "disabled", "click", 4, "ngIf"], ["mat-raised-button", "", "color", "primary", 1, "search-button", 3, "disabled", "click"], ["mat-raised-button", "", 1, "remove-button", 3, "disabled", "click"], ["mat-raised-button", "", 1, "export-button", 3, "disabled", "click"], ["class", "chevron-down", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["class", "results", 4, "ngIf"], [3, "checked", "labelPosition", "change"], [1, "buffer-unit"], [1, "buffer-form"], [1, "buffer"], ["type", "number", "matInput", "", 3, "placeholder", "formControl", "value", "readonly"], [1, "unit-field"], [3, "value", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "radius-unit"], [1, "radius-form"], [1, "radius"], ["type", "number", "matInput", "", 3, "placeholder", "formControl", "value", "readonly", "input"], [3, "value", "change"], [1, "thematics"], ["matColumnDef", "name"], ["class", "thematics-header", 4, "matHeaderCellDef"], ["matColumnDef", "select"], ["class", "checks-header", 4, "matHeaderCellDef"], [4, "matHeaderRowDef"], [4, "matRowDef", "matRowDefColumns"], [3, "dataSource", "treeControl"], ["matTreeNodeToggle", "", 4, "matTreeNodeDef"], [4, "matTreeNodeDef", "matTreeNodeDefWhen"], [1, "thematics-header"], [1, "checks-header"], [3, "checked", "indeterminate", "change"], ["matTreeNodeToggle", ""], [1, "mat-tree-node"], ["mat-icon-button", "", "disabled", ""], [1, "tree-check", 3, "checked", "click", "change"], ["mat-icon-button", "", 3, "click"], [3, "svgIcon"], [1, "tree-check-2", 3, "checked", "indeterminate", "change"], [1, "tree-ul"], ["matTreeNodeOutlet", ""], ["mat-raised-button", "", 1, "clear-search-button", 3, "disabled", "click"], ["mat-raised-button", "", 1, "clear-form-button", 3, "disabled", "click"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "chevron-down", 3, "matTooltip", "click"], ["svgIcon", "chevron-down"], [1, "results"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], [1, "results-list", 3, "template", "store", "entitySelectChange"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click"], ["svgIcon", "chevron-up"]], template: function SpatialFilterItemComponent_Template(rf, ctx) {
|
|
29115
29381
|
if (rf & 1) {
|
|
29116
29382
|
i0__namespace.ɵɵelement(0, "igo-geometry-form-field-input", 0);
|
|
29117
29383
|
i0__namespace.ɵɵpipe(1, "async");
|
|
@@ -29150,9 +29416,11 @@
|
|
|
29150
29416
|
i0__namespace.ɵɵpipe(26, "translate");
|
|
29151
29417
|
i0__namespace.ɵɵelementEnd();
|
|
29152
29418
|
i0__namespace.ɵɵelementEnd();
|
|
29419
|
+
i0__namespace.ɵɵtemplate(27, SpatialFilterItemComponent_button_27_Template, 3, 3, "button", 15);
|
|
29420
|
+
i0__namespace.ɵɵtemplate(28, SpatialFilterItemComponent_div_28_Template, 3, 3, "div", 16);
|
|
29153
29421
|
}
|
|
29154
29422
|
if (rf & 2) {
|
|
29155
|
-
i0__namespace.ɵɵproperty("formControl", ctx.formControl)("map", ctx.map)("geometryType", ctx.geometryType)("drawGuide", i0__namespace.ɵɵpipeBind1(1,
|
|
29423
|
+
i0__namespace.ɵɵproperty("formControl", ctx.formControl)("map", ctx.map)("geometryType", ctx.geometryType)("drawGuide", i0__namespace.ɵɵpipeBind1(1, 28, ctx.drawGuide$))("measure", ctx.measure)("drawControlIsActive", ctx.drawControlIsActive)("freehandDrawIsActive", ctx.freehandDrawIsActive)("drawStyle", i0__namespace.ɵɵpipeBind1(2, 30, ctx.drawStyle$))("overlayStyle", i0__namespace.ɵɵpipeBind1(3, 32, ctx.overlayStyle$))("radius", ctx.radius);
|
|
29156
29424
|
i0__namespace.ɵɵadvance(5);
|
|
29157
29425
|
i0__namespace.ɵɵproperty("ngIf", !ctx.isPredefined());
|
|
29158
29426
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -29162,13 +29430,13 @@
|
|
|
29162
29430
|
i0__namespace.ɵɵadvance(1);
|
|
29163
29431
|
i0__namespace.ɵɵproperty("ngIf", ctx.isPoint());
|
|
29164
29432
|
i0__namespace.ɵɵadvance(2);
|
|
29165
|
-
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(11,
|
|
29433
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(11, 34, "igo.geo.spatialFilter.search"), " : ");
|
|
29166
29434
|
i0__namespace.ɵɵadvance(2);
|
|
29167
29435
|
i0__namespace.ɵɵproperty("value", ctx.selectedItemType);
|
|
29168
29436
|
i0__namespace.ɵɵadvance(1);
|
|
29169
29437
|
i0__namespace.ɵɵproperty("ngForOf", ctx.itemType);
|
|
29170
29438
|
i0__namespace.ɵɵadvance(1);
|
|
29171
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.selectedItemType === "Thematics");
|
|
29439
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.selectedItemType === "Thematics" && !ctx.tableTemplate || ctx.selectedItemType === "Thematics" && ctx.tableTemplate && !ctx.listIsVisible);
|
|
29172
29440
|
i0__namespace.ɵɵadvance(2);
|
|
29173
29441
|
i0__namespace.ɵɵproperty("ngIf", ctx.isPredefined());
|
|
29174
29442
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -29176,17 +29444,21 @@
|
|
|
29176
29444
|
i0__namespace.ɵɵadvance(1);
|
|
29177
29445
|
i0__namespace.ɵɵproperty("disabled", ctx.disableSearchButton());
|
|
29178
29446
|
i0__namespace.ɵɵadvance(1);
|
|
29179
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20,
|
|
29447
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20, 36, "igo.geo.spatialFilter.goSearch"), " ");
|
|
29180
29448
|
i0__namespace.ɵɵadvance(2);
|
|
29181
29449
|
i0__namespace.ɵɵproperty("disabled", ctx.allLayers.length === 0);
|
|
29182
29450
|
i0__namespace.ɵɵadvance(1);
|
|
29183
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23,
|
|
29451
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23, 38, "igo.geo.spatialFilter.removeLayer"), " ");
|
|
29184
29452
|
i0__namespace.ɵɵadvance(2);
|
|
29185
29453
|
i0__namespace.ɵɵproperty("disabled", !ctx.store.entities$.getValue().length);
|
|
29186
29454
|
i0__namespace.ɵɵadvance(1);
|
|
29187
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26,
|
|
29455
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 40, "igo.geo.spatialFilter.exportLayer"), " ");
|
|
29456
|
+
i0__namespace.ɵɵadvance(2);
|
|
29457
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.store.all().length && ctx.tableTemplate && !ctx.listIsVisible);
|
|
29458
|
+
i0__namespace.ɵɵadvance(1);
|
|
29459
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.store.all().length && ctx.tableTemplate && ctx.listIsVisible);
|
|
29188
29460
|
}
|
|
29189
|
-
}, styles: [".header[_ngcontent-%COMP%]{margin-top:5px;width:100%}.mat-slide-toggle[_ngcontent-%COMP%]{padding:5px;margin-bottom:15px;width:98%}.mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 20px)}.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}.mat-form-field[_ngcontent-%COMP%]{margin-top:5px}.mat-column-select[_ngcontent-%COMP%]{overflow:auto}.buttons[_ngcontent-%COMP%]{margin-top:15px}.search-button[_ngcontent-%COMP%]{left:15px;width:
|
|
29461
|
+
}, styles: [".header[_ngcontent-%COMP%]{margin-top:5px;width:100%}.mat-slide-toggle[_ngcontent-%COMP%]{padding:5px;margin-bottom:15px;width:98%}.mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 20px)}.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}.mat-form-field[_ngcontent-%COMP%]{margin-top:5px}.mat-column-select[_ngcontent-%COMP%]{overflow:auto}.buttons[_ngcontent-%COMP%]{margin-top:15px}.search-button[_ngcontent-%COMP%]{left:15px;width:46%}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.search-button[_ngcontent-%COMP%]{left:10px;width:45%;min-height:35px;white-space:normal;line-height:normal}}.export-button[_ngcontent-%COMP%]{left:15px;width:46%;margin-bottom:5px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.export-button[_ngcontent-%COMP%]{left:10px;margin-top:10px;width:45%;min-height:35px;white-space:normal;line-height:normal}}.remove-button[_ngcontent-%COMP%]{margin-top:12px;left:5px;width:46%}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.remove-button[_ngcontent-%COMP%]{margin:0;width:45%;min-height:35px;white-space:normal;line-height:normal}}.clear-form-button[_ngcontent-%COMP%]{left:5px;width:46%}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.clear-form-button[_ngcontent-%COMP%]{width:45%;min-height:35px;white-space:normal;line-height:normal}}.clear-search-button[_ngcontent-%COMP%]{left:5px;width:46%}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.clear-search-button[_ngcontent-%COMP%]{width:45%;min-height:35px;white-space:normal;line-height:normal}}.thematics[_ngcontent-%COMP%]{max-height:35%;overflow:auto;margin-top:5px;width:98%}.results[_ngcontent-%COMP%]{overflow:auto;max-height:250px;width:98%}.mat-column-typeResults[_ngcontent-%COMP%]{max-width:100px;margin-right:5px}.buffer-unit[_ngcontent-%COMP%], .radius-unit[_ngcontent-%COMP%]{display:flex;width:100%;margin-left:2px;padding:5px}.radius[_ngcontent-%COMP%], .buffer[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;width:110%}.unit-field[_ngcontent-%COMP%]{width:110px;margin-left:30px}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.tree-ul[_ngcontent-%COMP%]{margin:0;padding:0 0 0 20px;list-style-type:none}.tree-check[_ngcontent-%COMP%], .tree-check-2[_ngcontent-%COMP%]{position:relative;margin-left:auto;margin-right:5px}.thematics-header[_ngcontent-%COMP%]{max-width:250px}.checks-header[_ngcontent-%COMP%]{padding:none;max-width:calc(100% - 316px);overflow:hidden}.mat-checkbox[_ngcontent-%COMP%]{padding:5px}.mat-tree-node[_ngcontent-%COMP%]{position:relative;min-height:42px;width:280px}.mat-header-cell[_ngcontent-%COMP%]{height:56px}.results[_ngcontent-%COMP%]{max-height:45%;width:98%}.results[_ngcontent-%COMP%] igo-entity-table[_ngcontent-%COMP%] div.table-container{overflow:unset}"], changeDetection: 0 });
|
|
29190
29462
|
(function () {
|
|
29191
29463
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SpatialFilterItemComponent, [{
|
|
29192
29464
|
type: i0.Component,
|
|
@@ -29240,6 +29512,8 @@
|
|
|
29240
29512
|
type: i0.Output
|
|
29241
29513
|
}], openWorkspace: [{
|
|
29242
29514
|
type: i0.Output
|
|
29515
|
+
}], entityChange: [{
|
|
29516
|
+
type: i0.Output
|
|
29243
29517
|
}] });
|
|
29244
29518
|
})();
|
|
29245
29519
|
|
|
@@ -30340,6 +30614,7 @@
|
|
|
30340
30614
|
IgoLayerModule,
|
|
30341
30615
|
i6$1.IgoCollapsibleModule,
|
|
30342
30616
|
i6$1.IgoListModule,
|
|
30617
|
+
i6$1.IgoEntityModule,
|
|
30343
30618
|
i6$1.IgoKeyValueModule,
|
|
30344
30619
|
IgoGeometryModule,
|
|
30345
30620
|
i9$1.MatBadgeModule
|
|
@@ -30378,6 +30653,7 @@
|
|
|
30378
30653
|
IgoLayerModule,
|
|
30379
30654
|
i6$1.IgoCollapsibleModule,
|
|
30380
30655
|
i6$1.IgoListModule,
|
|
30656
|
+
i6$1.IgoEntityModule,
|
|
30381
30657
|
i6$1.IgoKeyValueModule,
|
|
30382
30658
|
IgoGeometryModule,
|
|
30383
30659
|
i9$1.MatBadgeModule
|
|
@@ -30473,6 +30749,7 @@
|
|
|
30473
30749
|
IgoLayerModule,
|
|
30474
30750
|
i6$1.IgoCollapsibleModule,
|
|
30475
30751
|
i6$1.IgoListModule,
|
|
30752
|
+
i6$1.IgoEntityModule,
|
|
30476
30753
|
i6$1.IgoKeyValueModule,
|
|
30477
30754
|
IgoGeometryModule,
|
|
30478
30755
|
i9$1.MatBadgeModule], exports: [FilterableDataSourcePipe,
|
|
@@ -30504,7 +30781,7 @@
|
|
|
30504
30781
|
i0__namespace.ɵɵsetComponentScope(OgcFilterableItemComponent, [i1__namespace$3.MatListItem, i1__namespace$1.NgIf, i4__namespace.MatIcon, i1__namespace$3.MatListAvatarCssMatStyler, i6__namespace$1.CollapseDirective, i9__namespace.MatLine, i1__namespace$1.NgStyle, i3__namespace.MatTooltip, i2__namespace.MatButton, i1__namespace$1.NgClass, LayerLegendComponent, OgcFilterableFormComponent, i10__namespace.MatDivider, i11__namespace.MatCheckbox, i16__namespace.NgControlStatus, i16__namespace.NgModel], [i7__namespace.TranslatePipe, i1__namespace$1.AsyncPipe]);
|
|
30505
30782
|
i0__namespace.ɵɵsetComponentScope(OgcFilterableListComponent, [i6__namespace$1.ListComponent, i1__namespace$1.NgForOf, OgcFilterableItemComponent, i6__namespace$1.ListItemDirective], [FilterableDataSourcePipe]);
|
|
30506
30783
|
i0__namespace.ɵɵsetComponentScope(SpatialFilterTypeComponent, [i20__namespace.MatTabGroup, i20__namespace.MatTab, i12__namespace.MatFormField, i12__namespace.MatLabel, i13__namespace.MatSelect, i1__namespace$1.NgForOf, i9__namespace.MatOption, SpatialFilterListComponent, i18__namespace.MatButtonToggleGroup, i18__namespace.MatButtonToggle, i3__namespace.MatTooltip, i4__namespace.MatIcon], [i7__namespace.TranslatePipe]);
|
|
30507
|
-
i0__namespace.ɵɵsetComponentScope(SpatialFilterItemComponent, [GeometryFormFieldInputComponent, i16__namespace.NgControlStatus, i16__namespace.FormControlDirective, i1__namespace$1.NgIf, i22__namespace.MatSlideToggle, i16__namespace.ɵNgNoValidate, i16__namespace.NgControlStatusGroup, i16__namespace.NgForm, i12__namespace.MatFormField, i16__namespace.NumberValueAccessor, i5__namespace.MatInput, i16__namespace.DefaultValueAccessor, i13__namespace.MatSelect, i1__namespace$1.NgForOf, i9__namespace.MatOption, i12__namespace.MatLabel, i19__namespace.MatRadioGroup, i19__namespace.MatRadioButton, i23__namespace.MatTable, i23__namespace.MatColumnDef, i23__namespace.MatHeaderCellDef, i23__namespace.MatHeaderCell, i11__namespace.MatCheckbox, i23__namespace.MatHeaderRowDef, i23__namespace.MatHeaderRow, i23__namespace.MatRowDef, i23__namespace.MatRow, i24__namespace.MatTree, i24__namespace.MatTreeNodeDef, i24__namespace.MatTreeNode, i24__namespace.MatTreeNodeToggle, i2__namespace.MatButton, i24__namespace.MatNestedTreeNode, i4__namespace.MatIcon, i24__namespace.MatTreeNodeOutlet], [i1__namespace$1.AsyncPipe, i7__namespace.TranslatePipe]);
|
|
30784
|
+
i0__namespace.ɵɵsetComponentScope(SpatialFilterItemComponent, [GeometryFormFieldInputComponent, i16__namespace.NgControlStatus, i16__namespace.FormControlDirective, i1__namespace$1.NgIf, i22__namespace.MatSlideToggle, i16__namespace.ɵNgNoValidate, i16__namespace.NgControlStatusGroup, i16__namespace.NgForm, i12__namespace.MatFormField, i16__namespace.NumberValueAccessor, i5__namespace.MatInput, i16__namespace.DefaultValueAccessor, i13__namespace.MatSelect, i1__namespace$1.NgForOf, i9__namespace.MatOption, i12__namespace.MatLabel, i19__namespace.MatRadioGroup, i19__namespace.MatRadioButton, i23__namespace.MatTable, i23__namespace.MatColumnDef, i23__namespace.MatHeaderCellDef, i23__namespace.MatHeaderCell, i11__namespace.MatCheckbox, i23__namespace.MatHeaderRowDef, i23__namespace.MatHeaderRow, i23__namespace.MatRowDef, i23__namespace.MatRow, i24__namespace.MatTree, i24__namespace.MatTreeNodeDef, i24__namespace.MatTreeNode, i24__namespace.MatTreeNodeToggle, i2__namespace.MatButton, i24__namespace.MatNestedTreeNode, i4__namespace.MatIcon, i24__namespace.MatTreeNodeOutlet, i3__namespace.MatTooltip, i6__namespace$1.EntityTableComponent], [i1__namespace$1.AsyncPipe, i7__namespace.TranslatePipe]);
|
|
30508
30785
|
i0__namespace.ɵɵsetComponentScope(OgcFilterTimeComponent, [i1__namespace$1.NgIf, i22__namespace.MatSlideToggle, i16__namespace.NgControlStatus, i16__namespace.NgModel, OgcFilterTimeSliderComponent, i12__namespace.MatFormField, i12__namespace.MatLabel, i5__namespace.MatInput, i25__namespace.MatDatepickerToggle, i12__namespace.MatSuffix, i25__namespace.MatDatepicker, i25__namespace.MatDatepickerInput, i13__namespace.MatSelect, i16__namespace.FormControlDirective, i1__namespace$1.NgForOf, i9__namespace.MatOption], [i7__namespace.TranslatePipe]);
|
|
30509
30786
|
|
|
30510
30787
|
function ExportButtonComponent_button_0_Template(rf, ctx) {
|
|
@@ -30700,7 +30977,7 @@
|
|
|
30700
30977
|
acc[key] = olFeature.get(key);
|
|
30701
30978
|
return acc;
|
|
30702
30979
|
}, { geometry: olFeature.getGeometry() });
|
|
30703
|
-
return new
|
|
30980
|
+
return new OlFeature__default["default"](properties);
|
|
30704
30981
|
});
|
|
30705
30982
|
};
|
|
30706
30983
|
ExportService.prototype.generateAggregatedFeature = function (olFeatures) {
|
|
@@ -30717,7 +30994,7 @@
|
|
|
30717
30994
|
}, {
|
|
30718
30995
|
geometry: olFeature.getGeometry()
|
|
30719
30996
|
});
|
|
30720
|
-
var newFeature = new
|
|
30997
|
+
var newFeature = new OlFeature__default["default"](properties);
|
|
30721
30998
|
newFeature.set('name', olFeature.getId());
|
|
30722
30999
|
newFeature.set('cmt', comment);
|
|
30723
31000
|
return newFeature;
|
|
@@ -31508,7 +31785,7 @@
|
|
|
31508
31785
|
}
|
|
31509
31786
|
function ImportExportComponent_form_12_span_9_Template(rf, ctx) {
|
|
31510
31787
|
if (rf & 1) {
|
|
31511
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
31788
|
+
i0__namespace.ɵɵelementStart(0, "span", 29);
|
|
31512
31789
|
i0__namespace.ɵɵtext(1);
|
|
31513
31790
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
31514
31791
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -31521,9 +31798,9 @@
|
|
|
31521
31798
|
}
|
|
31522
31799
|
function ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template(rf, ctx) {
|
|
31523
31800
|
if (rf & 1) {
|
|
31524
|
-
var
|
|
31525
|
-
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle",
|
|
31526
|
-
i0__namespace.ɵɵlistener("click", function ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template_mat_slide_toggle_click_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
31801
|
+
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
31802
|
+
i0__namespace.ɵɵelementStart(0, "mat-slide-toggle", 32);
|
|
31803
|
+
i0__namespace.ɵɵlistener("click", function ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template_mat_slide_toggle_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r30_1); var layer_r26 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r28 = i0__namespace.ɵɵnextContext(2); return ctx_r28.onlySelectedClick($event, layer_r26.id); })("checked", function ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template_mat_slide_toggle_checked_0_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var layer_r26 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.inLayersIdToExportSelectionOnly(layer_r26); })("change", function ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template_mat_slide_toggle_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r30_1); var layer_r26 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.onlySelected($event, layer_r26.id); });
|
|
31527
31804
|
i0__namespace.ɵɵelementStart(1, "small");
|
|
31528
31805
|
i0__namespace.ɵɵtext(2);
|
|
31529
31806
|
i0__namespace.ɵɵpipe(3, "translate");
|
|
@@ -31539,24 +31816,24 @@
|
|
|
31539
31816
|
var _c1$3 = function (a0) { return { "igo-export-layer-mat-option": a0 }; };
|
|
31540
31817
|
function ImportExportComponent_form_12_mat_option_10_Template(rf, ctx) {
|
|
31541
31818
|
if (rf & 1) {
|
|
31542
|
-
i0__namespace.ɵɵelementStart(0, "mat-option",
|
|
31819
|
+
i0__namespace.ɵɵelementStart(0, "mat-option", 30);
|
|
31543
31820
|
i0__namespace.ɵɵlistener("click", function ImportExportComponent_form_12_mat_option_10_Template_mat_option_click_0_listener($event) { return $event.stopPropagation(); });
|
|
31544
31821
|
i0__namespace.ɵɵelementStart(1, "p", 16);
|
|
31545
31822
|
i0__namespace.ɵɵtext(2);
|
|
31546
31823
|
i0__namespace.ɵɵelementEnd();
|
|
31547
31824
|
i0__namespace.ɵɵelementStart(3, "p", 16);
|
|
31548
|
-
i0__namespace.ɵɵtemplate(4, ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template, 4, 4, "mat-slide-toggle",
|
|
31825
|
+
i0__namespace.ɵɵtemplate(4, ImportExportComponent_form_12_mat_option_10_mat_slide_toggle_4_Template, 4, 4, "mat-slide-toggle", 31);
|
|
31549
31826
|
i0__namespace.ɵɵelementEnd();
|
|
31550
31827
|
i0__namespace.ɵɵelementEnd();
|
|
31551
31828
|
}
|
|
31552
31829
|
if (rf & 2) {
|
|
31553
|
-
var
|
|
31830
|
+
var layer_r26 = ctx.$implicit;
|
|
31554
31831
|
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
31555
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c1$3, ctx_r18.layerHasSelectedFeatures(
|
|
31832
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c1$3, ctx_r18.layerHasSelectedFeatures(layer_r26)))("value", layer_r26.id);
|
|
31556
31833
|
i0__namespace.ɵɵadvance(2);
|
|
31557
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
31834
|
+
i0__namespace.ɵɵtextInterpolate(layer_r26.title);
|
|
31558
31835
|
i0__namespace.ɵɵadvance(2);
|
|
31559
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r18.layerHasSelectedFeatures(
|
|
31836
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r18.layerHasSelectedFeatures(layer_r26));
|
|
31560
31837
|
}
|
|
31561
31838
|
}
|
|
31562
31839
|
function ImportExportComponent_form_12_ng_container_18_mat_option_1_Template(rf, ctx) {
|
|
@@ -31567,16 +31844,16 @@
|
|
|
31567
31844
|
i0__namespace.ɵɵelementEnd();
|
|
31568
31845
|
}
|
|
31569
31846
|
if (rf & 2) {
|
|
31570
|
-
var
|
|
31571
|
-
i0__namespace.ɵɵproperty("value",
|
|
31847
|
+
var format_r37 = ctx.$implicit;
|
|
31848
|
+
i0__namespace.ɵɵproperty("value", format_r37.key);
|
|
31572
31849
|
i0__namespace.ɵɵadvance(1);
|
|
31573
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.export.format." +
|
|
31850
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.export.format." + format_r37.value), " ");
|
|
31574
31851
|
}
|
|
31575
31852
|
}
|
|
31576
31853
|
function ImportExportComponent_form_12_ng_container_18_Template(rf, ctx) {
|
|
31577
31854
|
if (rf & 1) {
|
|
31578
31855
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
31579
|
-
i0__namespace.ɵɵtemplate(1, ImportExportComponent_form_12_ng_container_18_mat_option_1_Template, 3, 4, "mat-option",
|
|
31856
|
+
i0__namespace.ɵɵtemplate(1, ImportExportComponent_form_12_ng_container_18_mat_option_1_Template, 3, 4, "mat-option", 33);
|
|
31580
31857
|
i0__namespace.ɵɵpipe(2, "keyvalue");
|
|
31581
31858
|
i0__namespace.ɵɵpipe(3, "async");
|
|
31582
31859
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -31589,7 +31866,7 @@
|
|
|
31589
31866
|
}
|
|
31590
31867
|
function ImportExportComponent_form_12_mat_option_20_Template(rf, ctx) {
|
|
31591
31868
|
if (rf & 1) {
|
|
31592
|
-
i0__namespace.ɵɵelementStart(0, "mat-option",
|
|
31869
|
+
i0__namespace.ɵɵelementStart(0, "mat-option", 34);
|
|
31593
31870
|
i0__namespace.ɵɵtext(1);
|
|
31594
31871
|
i0__namespace.ɵɵpipe(2, "translate");
|
|
31595
31872
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -31603,7 +31880,7 @@
|
|
|
31603
31880
|
if (rf & 1) {
|
|
31604
31881
|
i0__namespace.ɵɵelementStart(0, "div", 6);
|
|
31605
31882
|
i0__namespace.ɵɵelementStart(1, "mat-form-field");
|
|
31606
|
-
i0__namespace.ɵɵelement(2, "input",
|
|
31883
|
+
i0__namespace.ɵɵelement(2, "input", 35);
|
|
31607
31884
|
i0__namespace.ɵɵpipe(3, "translate");
|
|
31608
31885
|
i0__namespace.ɵɵelementEnd();
|
|
31609
31886
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -31621,24 +31898,24 @@
|
|
|
31621
31898
|
i0__namespace.ɵɵelementEnd();
|
|
31622
31899
|
}
|
|
31623
31900
|
if (rf & 2) {
|
|
31624
|
-
var
|
|
31625
|
-
i0__namespace.ɵɵproperty("value",
|
|
31901
|
+
var encoding_r40 = ctx.$implicit;
|
|
31902
|
+
i0__namespace.ɵɵproperty("value", encoding_r40.key);
|
|
31626
31903
|
i0__namespace.ɵɵadvance(1);
|
|
31627
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.export.encoding." +
|
|
31904
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "igo.geo.export.encoding." + encoding_r40.value), " ");
|
|
31628
31905
|
}
|
|
31629
31906
|
}
|
|
31630
31907
|
function ImportExportComponent_form_12_div_23_ng_container_6_Template(rf, ctx) {
|
|
31631
31908
|
if (rf & 1) {
|
|
31632
31909
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
31633
|
-
i0__namespace.ɵɵtemplate(1, ImportExportComponent_form_12_div_23_ng_container_6_mat_option_1_Template, 3, 4, "mat-option",
|
|
31910
|
+
i0__namespace.ɵɵtemplate(1, ImportExportComponent_form_12_div_23_ng_container_6_mat_option_1_Template, 3, 4, "mat-option", 33);
|
|
31634
31911
|
i0__namespace.ɵɵpipe(2, "keyvalue");
|
|
31635
31912
|
i0__namespace.ɵɵpipe(3, "async");
|
|
31636
31913
|
i0__namespace.ɵɵelementContainerEnd();
|
|
31637
31914
|
}
|
|
31638
31915
|
if (rf & 2) {
|
|
31639
|
-
var
|
|
31916
|
+
var ctx_r38 = i0__namespace.ɵɵnextContext(3);
|
|
31640
31917
|
i0__namespace.ɵɵadvance(1);
|
|
31641
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3,
|
|
31918
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r38.encodings$)));
|
|
31642
31919
|
}
|
|
31643
31920
|
}
|
|
31644
31921
|
function ImportExportComponent_form_12_div_23_Template(rf, ctx) {
|
|
@@ -31649,7 +31926,7 @@
|
|
|
31649
31926
|
i0__namespace.ɵɵtext(3);
|
|
31650
31927
|
i0__namespace.ɵɵpipe(4, "translate");
|
|
31651
31928
|
i0__namespace.ɵɵelementEnd();
|
|
31652
|
-
i0__namespace.ɵɵelementStart(5, "mat-select",
|
|
31929
|
+
i0__namespace.ɵɵelementStart(5, "mat-select", 36);
|
|
31653
31930
|
i0__namespace.ɵɵtemplate(6, ImportExportComponent_form_12_div_23_ng_container_6_Template, 4, 5, "ng-container", 22);
|
|
31654
31931
|
i0__namespace.ɵɵpipe(7, "async");
|
|
31655
31932
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -31666,8 +31943,40 @@
|
|
|
31666
31943
|
}
|
|
31667
31944
|
function ImportExportComponent_form_12_div_24_Template(rf, ctx) {
|
|
31668
31945
|
if (rf & 1) {
|
|
31669
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
31670
|
-
i0__namespace.ɵɵelementStart(1, "mat-slide-toggle",
|
|
31946
|
+
i0__namespace.ɵɵelementStart(0, "div", 37);
|
|
31947
|
+
i0__namespace.ɵɵelementStart(1, "mat-slide-toggle", 38);
|
|
31948
|
+
i0__namespace.ɵɵtext(2);
|
|
31949
|
+
i0__namespace.ɵɵpipe(3, "translate");
|
|
31950
|
+
i0__namespace.ɵɵelementEnd();
|
|
31951
|
+
i0__namespace.ɵɵelementEnd();
|
|
31952
|
+
}
|
|
31953
|
+
if (rf & 2) {
|
|
31954
|
+
i0__namespace.ɵɵadvance(1);
|
|
31955
|
+
i0__namespace.ɵɵproperty("labelPosition", "before");
|
|
31956
|
+
i0__namespace.ɵɵadvance(1);
|
|
31957
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 2, "igo.geo.importExportForm.exportCombineResults"), " ");
|
|
31958
|
+
}
|
|
31959
|
+
}
|
|
31960
|
+
function ImportExportComponent_form_12_div_25_Template(rf, ctx) {
|
|
31961
|
+
if (rf & 1) {
|
|
31962
|
+
i0__namespace.ɵɵelementStart(0, "div", 39);
|
|
31963
|
+
i0__namespace.ɵɵelementStart(1, "mat-slide-toggle", 40);
|
|
31964
|
+
i0__namespace.ɵɵtext(2);
|
|
31965
|
+
i0__namespace.ɵɵpipe(3, "translate");
|
|
31966
|
+
i0__namespace.ɵɵelementEnd();
|
|
31967
|
+
i0__namespace.ɵɵelementEnd();
|
|
31968
|
+
}
|
|
31969
|
+
if (rf & 2) {
|
|
31970
|
+
i0__namespace.ɵɵadvance(1);
|
|
31971
|
+
i0__namespace.ɵɵproperty("labelPosition", "before");
|
|
31972
|
+
i0__namespace.ɵɵadvance(1);
|
|
31973
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 2, "igo.geo.importExportForm.exportSeparator"), " ");
|
|
31974
|
+
}
|
|
31975
|
+
}
|
|
31976
|
+
function ImportExportComponent_form_12_div_26_Template(rf, ctx) {
|
|
31977
|
+
if (rf & 1) {
|
|
31978
|
+
i0__namespace.ɵɵelementStart(0, "div", 41);
|
|
31979
|
+
i0__namespace.ɵɵelementStart(1, "mat-slide-toggle", 42);
|
|
31671
31980
|
i0__namespace.ɵɵtext(2);
|
|
31672
31981
|
i0__namespace.ɵɵpipe(3, "translate");
|
|
31673
31982
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -31682,7 +31991,7 @@
|
|
|
31682
31991
|
}
|
|
31683
31992
|
function ImportExportComponent_form_12_Template(rf, ctx) {
|
|
31684
31993
|
if (rf & 1) {
|
|
31685
|
-
var
|
|
31994
|
+
var _r42_1 = i0__namespace.ɵɵgetCurrentView();
|
|
31686
31995
|
i0__namespace.ɵɵelementStart(0, "form", 5);
|
|
31687
31996
|
i0__namespace.ɵɵelementStart(1, "div", 6);
|
|
31688
31997
|
i0__namespace.ɵɵelementStart(2, "mat-form-field");
|
|
@@ -31691,7 +32000,7 @@
|
|
|
31691
32000
|
i0__namespace.ɵɵpipe(5, "translate");
|
|
31692
32001
|
i0__namespace.ɵɵelementEnd();
|
|
31693
32002
|
i0__namespace.ɵɵelementStart(6, "mat-select", 18);
|
|
31694
|
-
i0__namespace.ɵɵlistener("valueChange", function ImportExportComponent_form_12_Template_mat_select_valueChange_6_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
32003
|
+
i0__namespace.ɵɵlistener("valueChange", function ImportExportComponent_form_12_Template_mat_select_valueChange_6_listener($event) { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.layers = $event; });
|
|
31695
32004
|
i0__namespace.ɵɵelementStart(7, "mat-select-trigger");
|
|
31696
32005
|
i0__namespace.ɵɵtext(8);
|
|
31697
32006
|
i0__namespace.ɵɵtemplate(9, ImportExportComponent_form_12_span_9_Template, 3, 4, "span", 19);
|
|
@@ -31718,17 +32027,19 @@
|
|
|
31718
32027
|
i0__namespace.ɵɵtemplate(22, ImportExportComponent_form_12_div_22_Template, 4, 3, "div", 24);
|
|
31719
32028
|
i0__namespace.ɵɵtemplate(23, ImportExportComponent_form_12_div_23_Template, 8, 6, "div", 24);
|
|
31720
32029
|
i0__namespace.ɵɵtemplate(24, ImportExportComponent_form_12_div_24_Template, 4, 4, "div", 25);
|
|
31721
|
-
i0__namespace.ɵɵ
|
|
31722
|
-
i0__namespace.ɵɵ
|
|
31723
|
-
i0__namespace.ɵɵ
|
|
31724
|
-
i0__namespace.ɵɵ
|
|
31725
|
-
i0__namespace.ɵɵ
|
|
31726
|
-
i0__namespace.ɵɵpipe(29, "
|
|
31727
|
-
i0__namespace.ɵɵ
|
|
32030
|
+
i0__namespace.ɵɵtemplate(25, ImportExportComponent_form_12_div_25_Template, 4, 4, "div", 26);
|
|
32031
|
+
i0__namespace.ɵɵtemplate(26, ImportExportComponent_form_12_div_26_Template, 4, 4, "div", 27);
|
|
32032
|
+
i0__namespace.ɵɵelementStart(27, "div", 28);
|
|
32033
|
+
i0__namespace.ɵɵelementStart(28, "button", 10);
|
|
32034
|
+
i0__namespace.ɵɵlistener("click", function ImportExportComponent_form_12_Template_button_click_28_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.handleExportFormSubmit(ctx_r43.form.value); });
|
|
32035
|
+
i0__namespace.ɵɵpipe(29, "async");
|
|
32036
|
+
i0__namespace.ɵɵtext(30);
|
|
31728
32037
|
i0__namespace.ɵɵpipe(31, "translate");
|
|
32038
|
+
i0__namespace.ɵɵpipe(32, "translate");
|
|
32039
|
+
i0__namespace.ɵɵpipe(33, "translate");
|
|
31729
32040
|
i0__namespace.ɵɵelementEnd();
|
|
31730
|
-
i0__namespace.ɵɵelement(
|
|
31731
|
-
i0__namespace.ɵɵpipe(
|
|
32041
|
+
i0__namespace.ɵɵelement(34, "igo-spinner", 11);
|
|
32042
|
+
i0__namespace.ɵɵpipe(35, "async");
|
|
31732
32043
|
i0__namespace.ɵɵelementEnd();
|
|
31733
32044
|
i0__namespace.ɵɵelementEnd();
|
|
31734
32045
|
}
|
|
@@ -31736,7 +32047,7 @@
|
|
|
31736
32047
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
31737
32048
|
i0__namespace.ɵɵproperty("formGroup", ctx_r3.form);
|
|
31738
32049
|
i0__namespace.ɵɵadvance(4);
|
|
31739
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5,
|
|
32050
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 17, "igo.geo.importExportForm.exportLayerPlaceholder"));
|
|
31740
32051
|
i0__namespace.ɵɵadvance(2);
|
|
31741
32052
|
i0__namespace.ɵɵproperty("value", ctx_r3.layers);
|
|
31742
32053
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -31744,25 +32055,29 @@
|
|
|
31744
32055
|
i0__namespace.ɵɵadvance(1);
|
|
31745
32056
|
i0__namespace.ɵɵproperty("ngIf", ctx_r3.layers.length > 1);
|
|
31746
32057
|
i0__namespace.ɵɵadvance(1);
|
|
31747
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(11,
|
|
32058
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(11, 19, ctx_r3.exportableLayers$));
|
|
31748
32059
|
i0__namespace.ɵɵadvance(5);
|
|
31749
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16,
|
|
32060
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 21, "igo.geo.importExportForm.exportFormatPlaceholder"));
|
|
31750
32061
|
i0__namespace.ɵɵadvance(3);
|
|
31751
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(19,
|
|
32062
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(19, 23, ctx_r3.formats$).length !== 0);
|
|
31752
32063
|
i0__namespace.ɵɵadvance(2);
|
|
31753
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(21,
|
|
32064
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(21, 25, ctx_r3.formats$).length === 0);
|
|
31754
32065
|
i0__namespace.ɵɵadvance(2);
|
|
31755
32066
|
i0__namespace.ɵɵproperty("ngIf", ctx_r3.forceNaming && ctx_r3.form.value.format !== "URL");
|
|
31756
32067
|
i0__namespace.ɵɵadvance(1);
|
|
31757
32068
|
i0__namespace.ɵɵproperty("ngIf", ctx_r3.form.value.format === "CSVcomma" || ctx_r3.form.value.format === "CSVsemicolon");
|
|
31758
32069
|
i0__namespace.ɵɵadvance(1);
|
|
32070
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.layers.length > 1 && (ctx_r3.form.value.format === "CSVcomma" || ctx_r3.form.value.format === "CSVsemicolon"));
|
|
32071
|
+
i0__namespace.ɵɵadvance(1);
|
|
32072
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.layers.length > 1 && (ctx_r3.form.value.format === "CSVcomma" || ctx_r3.form.value.format === "CSVsemicolon") && ctx_r3.form.value.combineLayers);
|
|
32073
|
+
i0__namespace.ɵɵadvance(1);
|
|
31759
32074
|
i0__namespace.ɵɵproperty("ngIf", ctx_r3.form.value.format !== "URL");
|
|
31760
32075
|
i0__namespace.ɵɵadvance(2);
|
|
31761
|
-
i0__namespace.ɵɵproperty("disabled", !ctx_r3.form.valid || i0__namespace.ɵɵpipeBind1(
|
|
32076
|
+
i0__namespace.ɵɵproperty("disabled", !ctx_r3.form.valid || i0__namespace.ɵɵpipeBind1(29, 27, ctx_r3.loading$));
|
|
31762
32077
|
i0__namespace.ɵɵadvance(2);
|
|
31763
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r3.form.value.format !== "URL" ? i0__namespace.ɵɵpipeBind1(
|
|
32078
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r3.form.value.format !== "URL" ? i0__namespace.ɵɵpipeBind1(31, 29, "igo.geo.importExportForm.exportButton") : ctx_r3.form.value.layers.length > 1 ? i0__namespace.ɵɵpipeBind1(32, 31, "igo.geo.importExportForm.exportButtonLinks") : i0__namespace.ɵɵpipeBind1(33, 33, "igo.geo.importExportForm.exportButtonLink"), " ");
|
|
31764
32079
|
i0__namespace.ɵɵadvance(4);
|
|
31765
|
-
i0__namespace.ɵɵproperty("shown", i0__namespace.ɵɵpipeBind1(
|
|
32080
|
+
i0__namespace.ɵɵproperty("shown", i0__namespace.ɵɵpipeBind1(35, 35, ctx_r3.loading$));
|
|
31766
32081
|
}
|
|
31767
32082
|
}
|
|
31768
32083
|
var ImportExportComponent = /** @class */ (function () {
|
|
@@ -32094,6 +32409,7 @@
|
|
|
32094
32409
|
return this.popupAllowed;
|
|
32095
32410
|
};
|
|
32096
32411
|
ImportExportComponent.prototype.handleExportFormSubmit = function (data) {
|
|
32412
|
+
var e_2, _b;
|
|
32097
32413
|
var _this = this;
|
|
32098
32414
|
this.loading$.next(true);
|
|
32099
32415
|
var ogreFormats = Object.keys(ExportService.ogreFormats);
|
|
@@ -32101,11 +32417,20 @@
|
|
|
32101
32417
|
(ogreFormats.indexOf(data.format) >= 0 || data.format === ExportFormat.URL) && !this.popupAllowed) {
|
|
32102
32418
|
this.handlePopup();
|
|
32103
32419
|
}
|
|
32104
|
-
|
|
32105
|
-
|
|
32106
|
-
|
|
32107
|
-
|
|
32108
|
-
|
|
32420
|
+
var geomTypesCSV = [];
|
|
32421
|
+
var featuresCSV = [];
|
|
32422
|
+
var filename = "";
|
|
32423
|
+
var _loop_2 = function (layerIndex, layer) {
|
|
32424
|
+
var lay = this_2.map.getLayerById(layer);
|
|
32425
|
+
if (!(data.format === ExportFormat.CSVsemicolon || data.format === ExportFormat.CSVcomma)
|
|
32426
|
+
|| !data.combineLayers || data.layers.length === 1) {
|
|
32427
|
+
filename = lay.title;
|
|
32428
|
+
if (data.name) {
|
|
32429
|
+
filename = data.name;
|
|
32430
|
+
}
|
|
32431
|
+
}
|
|
32432
|
+
else {
|
|
32433
|
+
filename = this_2.languageService.translate.instant('igo.geo.export.combinedLayers');
|
|
32109
32434
|
}
|
|
32110
32435
|
var dSOptions = lay.dataSource.options;
|
|
32111
32436
|
if (data.format === ExportFormat.URL && dSOptions.download && (dSOptions.download.url || dSOptions.download.dynamicUrl)) {
|
|
@@ -32115,10 +32440,10 @@
|
|
|
32115
32440
|
url.match(/service=wfs/gi) ? _this.downloadService.open(lay) : window.open(url, '_blank');
|
|
32116
32441
|
_this.loading$.next(false);
|
|
32117
32442
|
}, 500);
|
|
32118
|
-
return;
|
|
32443
|
+
return { value: void 0 };
|
|
32119
32444
|
}
|
|
32120
|
-
var wks =
|
|
32121
|
-
var olFeatures;
|
|
32445
|
+
var wks = this_2.getWorkspaceByLayerId(layer);
|
|
32446
|
+
var olFeatures = void 0;
|
|
32122
32447
|
if (wks && wks.entityStore && wks.entityStore.stateView.all().length) {
|
|
32123
32448
|
if (data.layersWithSelection.indexOf(layer) !== -1 && data.featureInMapExtent) {
|
|
32124
32449
|
// Only export selected feature && into map extent
|
|
@@ -32152,7 +32477,7 @@
|
|
|
32152
32477
|
olFeatures = olFeatures.flatMap(function (cluster) { return cluster.get('features'); });
|
|
32153
32478
|
}
|
|
32154
32479
|
}
|
|
32155
|
-
var translate =
|
|
32480
|
+
var translate = this_2.languageService.translate;
|
|
32156
32481
|
var geomTypes = [];
|
|
32157
32482
|
if (data.format === ExportFormat.Shapefile || data.format === ExportFormat.GPX) {
|
|
32158
32483
|
olFeatures.forEach(function (olFeature) {
|
|
@@ -32187,31 +32512,113 @@
|
|
|
32187
32512
|
if (gpxFeatureCnt > gpxFeatureCntPointOrPoly) {
|
|
32188
32513
|
var title = translate.instant('igo.geo.export.gpx.error.poly.title');
|
|
32189
32514
|
var message = translate.instant('igo.geo.export.gpx.error.poly.text');
|
|
32190
|
-
|
|
32515
|
+
this_2.messageService.error(message, title, { timeOut: 20000 });
|
|
32516
|
+
}
|
|
32517
|
+
}
|
|
32518
|
+
else if ((data.format === ExportFormat.CSVsemicolon || data.format === ExportFormat.CSVcomma) && data.combineLayers) {
|
|
32519
|
+
geomTypes.forEach(function (geomType) { return geomTypesCSV.push(geomType); });
|
|
32520
|
+
if (layerIndex !== data.layers.length - 1) {
|
|
32521
|
+
return "continue";
|
|
32522
|
+
}
|
|
32523
|
+
else {
|
|
32524
|
+
var previousFeature_1 = undefined;
|
|
32525
|
+
geomTypesCSV.forEach(function (geomType) {
|
|
32526
|
+
geomType.features.forEach(function (currentFeature) {
|
|
32527
|
+
if (data.separator) {
|
|
32528
|
+
if (previousFeature_1) {
|
|
32529
|
+
if (currentFeature.get('_featureStore').layer.options.title !==
|
|
32530
|
+
previousFeature_1.get('_featureStore').layer.options.title) {
|
|
32531
|
+
var titleEmptyRows = _this.createTitleEmptyRows(previousFeature_1, currentFeature);
|
|
32532
|
+
featuresCSV.push(titleEmptyRows[2]);
|
|
32533
|
+
featuresCSV.push(titleEmptyRows[1]);
|
|
32534
|
+
}
|
|
32535
|
+
}
|
|
32536
|
+
else {
|
|
32537
|
+
var titleEmptyRows = _this.createTitleEmptyRows(currentFeature, currentFeature);
|
|
32538
|
+
featuresCSV.push(titleEmptyRows[0]);
|
|
32539
|
+
}
|
|
32540
|
+
}
|
|
32541
|
+
featuresCSV.push(currentFeature);
|
|
32542
|
+
previousFeature_1 = currentFeature;
|
|
32543
|
+
});
|
|
32544
|
+
});
|
|
32191
32545
|
}
|
|
32192
32546
|
}
|
|
32193
32547
|
if (geomTypes.length === 0) {
|
|
32194
|
-
|
|
32548
|
+
this_2.loading$.next(false);
|
|
32195
32549
|
var title = translate.instant('igo.geo.export.nothing.title');
|
|
32196
32550
|
var message = translate.instant('igo.geo.export.nothing.text');
|
|
32197
|
-
|
|
32551
|
+
this_2.messageService.error(message, title, { timeOut: 20000 });
|
|
32198
32552
|
}
|
|
32199
32553
|
else {
|
|
32200
|
-
|
|
32201
|
-
.
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32211
|
-
|
|
32212
|
-
|
|
32554
|
+
if (!(data.format === ExportFormat.CSVsemicolon || data.format === ExportFormat.CSVcomma) || !data.combineLayers) {
|
|
32555
|
+
geomTypes.map(function (geomType) { return _this.exportService.export(geomType.features, data.format, filename + geomType.geometryType, data.encoding, _this.map.projection)
|
|
32556
|
+
.subscribe(function () { }, function (error) { return _this.onFileExportError(error); }, function () {
|
|
32557
|
+
_this.onFileExportSuccess();
|
|
32558
|
+
geomType.features.forEach(function (feature) {
|
|
32559
|
+
_this.circleToPoint(feature);
|
|
32560
|
+
});
|
|
32561
|
+
_this.loading$.next(false);
|
|
32562
|
+
}); });
|
|
32563
|
+
}
|
|
32564
|
+
}
|
|
32565
|
+
};
|
|
32566
|
+
var this_2 = this;
|
|
32567
|
+
try {
|
|
32568
|
+
for (var _c = __values(data.layers.entries()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
32569
|
+
var _e = __read(_d.value, 2), layerIndex = _e[0], layer = _e[1];
|
|
32570
|
+
var state_1 = _loop_2(layerIndex, layer);
|
|
32571
|
+
if (typeof state_1 === "object")
|
|
32572
|
+
return state_1.value;
|
|
32573
|
+
}
|
|
32574
|
+
}
|
|
32575
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
32576
|
+
finally {
|
|
32577
|
+
try {
|
|
32578
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
32579
|
+
}
|
|
32580
|
+
finally { if (e_2) throw e_2.error; }
|
|
32581
|
+
}
|
|
32582
|
+
;
|
|
32583
|
+
if ((data.format === ExportFormat.CSVsemicolon || data.format === ExportFormat.CSVcomma) && data.combineLayers) {
|
|
32584
|
+
this.exportService.export(featuresCSV, data.format, filename, data.encoding, this.map.projection)
|
|
32585
|
+
.subscribe(function () { }, function (error) { return _this.onFileExportError(error); }, function () {
|
|
32586
|
+
_this.onFileExportSuccess();
|
|
32587
|
+
featuresCSV.forEach(function (feature) {
|
|
32588
|
+
_this.circleToPoint(feature);
|
|
32589
|
+
});
|
|
32590
|
+
_this.loading$.next(false);
|
|
32591
|
+
});
|
|
32592
|
+
}
|
|
32593
|
+
};
|
|
32594
|
+
ImportExportComponent.prototype.createTitleEmptyRows = function (previousFeature, currentFeature) {
|
|
32595
|
+
var titleRow = previousFeature.clone();
|
|
32596
|
+
var titleRowWithArrow = previousFeature.clone();
|
|
32597
|
+
var emptyRow = previousFeature.clone();
|
|
32598
|
+
var previousFeatureKeys = previousFeature.getKeys();
|
|
32599
|
+
var firstKey = previousFeatureKeys[1];
|
|
32600
|
+
previousFeatureKeys.forEach(function (key) {
|
|
32601
|
+
if (key === firstKey) {
|
|
32602
|
+
titleRow.set(key, currentFeature.get('_featureStore').layer.options.title, true);
|
|
32603
|
+
titleRowWithArrow.set(key, currentFeature.get('_featureStore').layer.options.title + " ===================>", true);
|
|
32604
|
+
emptyRow.unset(key, true);
|
|
32605
|
+
}
|
|
32606
|
+
else {
|
|
32607
|
+
titleRow.unset(key, true);
|
|
32608
|
+
titleRowWithArrow.unset(key, true);
|
|
32609
|
+
emptyRow.unset(key, true);
|
|
32213
32610
|
}
|
|
32214
32611
|
});
|
|
32612
|
+
var titleEmptyRows = [titleRow, titleRowWithArrow, emptyRow];
|
|
32613
|
+
return titleEmptyRows;
|
|
32614
|
+
};
|
|
32615
|
+
ImportExportComponent.prototype.circleToPoint = function (feature) {
|
|
32616
|
+
var radius = feature.get('rad');
|
|
32617
|
+
if (radius) {
|
|
32618
|
+
var point = new OlPoint__default["default"]([feature.get('longitude'), feature.get('latitude')]);
|
|
32619
|
+
point.transform('EPSG:4326', feature.get('_projection'));
|
|
32620
|
+
feature.setGeometry(point);
|
|
32621
|
+
}
|
|
32215
32622
|
};
|
|
32216
32623
|
ImportExportComponent.prototype.buildForm = function () {
|
|
32217
32624
|
this.importForm = this.formBuilder.group({
|
|
@@ -32223,6 +32630,8 @@
|
|
|
32223
32630
|
layers: [[], [i16.Validators.required]],
|
|
32224
32631
|
layersWithSelection: [[]],
|
|
32225
32632
|
encoding: [EncodingFormat.UTF8, [i16.Validators.required]],
|
|
32633
|
+
combineLayers: [true, [i16.Validators.required]],
|
|
32634
|
+
separator: [false, [i16.Validators.required]],
|
|
32226
32635
|
featureInMapExtent: [false, [i16.Validators.required]],
|
|
32227
32636
|
name: ['', [i16.Validators.required]]
|
|
32228
32637
|
});
|
|
@@ -32233,6 +32642,8 @@
|
|
|
32233
32642
|
layers: [[], [i16.Validators.required]],
|
|
32234
32643
|
layersWithSelection: [[]],
|
|
32235
32644
|
encoding: [EncodingFormat.UTF8, [i16.Validators.required]],
|
|
32645
|
+
combineLayers: [true, [i16.Validators.required]],
|
|
32646
|
+
separator: [false, [i16.Validators.required]],
|
|
32236
32647
|
featureInMapExtent: [false, [i16.Validators.required]],
|
|
32237
32648
|
});
|
|
32238
32649
|
}
|
|
@@ -32432,7 +32843,7 @@
|
|
|
32432
32843
|
return ImportExportComponent;
|
|
32433
32844
|
}());
|
|
32434
32845
|
ImportExportComponent.ɵfac = function ImportExportComponent_Factory(t) { return new (t || ImportExportComponent)(i0__namespace.ɵɵdirectiveInject(ImportService), i0__namespace.ɵɵdirectiveInject(ExportService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MessageService), i0__namespace.ɵɵdirectiveInject(StyleListService), i0__namespace.ɵɵdirectiveInject(StyleService), i0__namespace.ɵɵdirectiveInject(i16__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ConfigService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.StorageService), i0__namespace.ɵɵdirectiveInject(DownloadService)); };
|
|
32435
|
-
ImportExportComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ImportExportComponent, selectors: [["igo-import-export"]], inputs: { selectFirstProj: "selectFirstProj", map: "map", projectionsLimitations: "projectionsLimitations", store: "store", selectedMode: "selectedMode", exportOptions$: "exportOptions$" }, outputs: { selectMode: "selectMode", exportOptionsChange: "exportOptionsChange" }, decls: 14, vars: 17, consts: [[1, "import-export-toggle", "mat-typography"], [3, "value", "change"], [3, "value"], ["class", "igo-form", 3, "formGroup", 4, "ngIf"], ["class", "mat-typography", 4, "ngIf"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], [3, "value", "click", 4, "ngFor", "ngForOf"], ["tooltip-position", "below", "matTooltipShowDelay", "500", 1, "igo-form-button-group", 3, "matTooltip"], ["mat-raised-button", "", "type", "button", 3, "disabled", "click"], [3, "shown"], ["hidden", "", "type", "file", 3, "click", "change"], ["fileInput", ""], [3, "value", "click"], ["mat-line", "", 4, "ngIf"], ["mat-line", ""], [1, "mat-typography"], ["multiple", "", 3, "value", "valueChange"], ["class", "export-select-trigger", 4, "ngIf"], [3, "ngClass", "value", "click", 4, "ngFor", "ngForOf"], ["formControlName", "format"], [4, "ngIf"], ["disabled", "true", 4, "ngIf"], ["class", "igo-input-container", 4, "ngIf"], ["class", "export-options mat-typography", 4, "ngIf"], [1, "igo-form-button-group"], [1, "export-select-trigger"], [3, "ngClass", "value", "click"], [3, "labelPosition", "click", "checked", "change", 4, "ngIf"], [3, "labelPosition", "click", "checked", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "true"], ["matInput", "", "formControlName", "name", 3, "placeholder"], ["formControlName", "encoding"], [1, "export-options", "mat-typography"], ["formControlName", "featureInMapExtent", 3, "labelPosition"]], template: function ImportExportComponent_Template(rf, ctx) {
|
|
32846
|
+
ImportExportComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ImportExportComponent, selectors: [["igo-import-export"]], inputs: { selectFirstProj: "selectFirstProj", map: "map", projectionsLimitations: "projectionsLimitations", store: "store", selectedMode: "selectedMode", exportOptions$: "exportOptions$" }, outputs: { selectMode: "selectMode", exportOptionsChange: "exportOptionsChange" }, decls: 14, vars: 17, consts: [[1, "import-export-toggle", "mat-typography"], [3, "value", "change"], [3, "value"], ["class", "igo-form", 3, "formGroup", 4, "ngIf"], ["class", "mat-typography", 4, "ngIf"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], [3, "value", "click", 4, "ngFor", "ngForOf"], ["tooltip-position", "below", "matTooltipShowDelay", "500", 1, "igo-form-button-group", 3, "matTooltip"], ["mat-raised-button", "", "type", "button", 3, "disabled", "click"], [3, "shown"], ["hidden", "", "type", "file", 3, "click", "change"], ["fileInput", ""], [3, "value", "click"], ["mat-line", "", 4, "ngIf"], ["mat-line", ""], [1, "mat-typography"], ["multiple", "", 3, "value", "valueChange"], ["class", "export-select-trigger", 4, "ngIf"], [3, "ngClass", "value", "click", 4, "ngFor", "ngForOf"], ["formControlName", "format"], [4, "ngIf"], ["disabled", "true", 4, "ngIf"], ["class", "igo-input-container", 4, "ngIf"], ["class", "export-combine-layers mat-typography", 4, "ngIf"], ["class", "export-separator mat-typography", 4, "ngIf"], ["class", "export-options mat-typography", 4, "ngIf"], [1, "igo-form-button-group"], [1, "export-select-trigger"], [3, "ngClass", "value", "click"], [3, "labelPosition", "click", "checked", "change", 4, "ngIf"], [3, "labelPosition", "click", "checked", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "true"], ["matInput", "", "formControlName", "name", 3, "placeholder"], ["formControlName", "encoding"], [1, "export-combine-layers", "mat-typography"], ["formControlName", "combineLayers", 3, "labelPosition"], [1, "export-separator", "mat-typography"], ["formControlName", "separator", 3, "labelPosition"], [1, "export-options", "mat-typography"], ["formControlName", "featureInMapExtent", 3, "labelPosition"]], template: function ImportExportComponent_Template(rf, ctx) {
|
|
32436
32847
|
if (rf & 1) {
|
|
32437
32848
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
32438
32849
|
i0__namespace.ɵɵelementStart(1, "mat-button-toggle-group", 1);
|
|
@@ -32451,7 +32862,7 @@
|
|
|
32451
32862
|
i0__namespace.ɵɵtemplate(9, ImportExportComponent_section_9_Template, 14, 15, "section", 4);
|
|
32452
32863
|
i0__namespace.ɵɵtemplate(10, ImportExportComponent_section_10_Template, 4, 3, "section", 4);
|
|
32453
32864
|
i0__namespace.ɵɵpipe(11, "async");
|
|
32454
|
-
i0__namespace.ɵɵtemplate(12, ImportExportComponent_form_12_Template,
|
|
32865
|
+
i0__namespace.ɵɵtemplate(12, ImportExportComponent_form_12_Template, 36, 37, "form", 3);
|
|
32455
32866
|
i0__namespace.ɵɵpipe(13, "async");
|
|
32456
32867
|
}
|
|
32457
32868
|
if (rf & 2) {
|
|
@@ -32474,7 +32885,7 @@
|
|
|
32474
32885
|
i0__namespace.ɵɵadvance(2);
|
|
32475
32886
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(13, 15, ctx.exportableLayers$).length > 0 && ctx.selectedMode === "export");
|
|
32476
32887
|
}
|
|
32477
|
-
}, directives: [i18__namespace.MatButtonToggleGroup, i18__namespace.MatButtonToggle, i1__namespace$1.NgIf, i16__namespace.ɵNgNoValidate, i16__namespace.NgControlStatusGroup, i16__namespace.FormGroupDirective, i12__namespace.MatFormField, i12__namespace.MatLabel, i13__namespace.MatSelect, i1__namespace$1.NgForOf, i3__namespace.MatTooltip, i2__namespace.MatButton, i6__namespace$1.SpinnerComponent, i9__namespace.MatOption, i13__namespace.MatSelectTrigger, i16__namespace.NgControlStatus, i16__namespace.FormControlName, i1__namespace$1.NgClass, i22__namespace.MatSlideToggle, i5__namespace.MatInput, i16__namespace.DefaultValueAccessor], pipes: [i7__namespace.TranslatePipe, i1__namespace$1.AsyncPipe, i6__namespace$1.KeyValuePipe], styles: ["mat-option.igo-export-layer-mat-option[_ngcontent-%COMP%]{height:5em;line-height:1em}.import-export-toggle[_ngcontent-%COMP%]{padding:10px;text-align:center}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{width:100%}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:50%}h4[_ngcontent-%COMP%]{padding:0 5px}.igo-form[_ngcontent-%COMP%]{padding:15px 5px}.igo-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}igo-spinner[_ngcontent-%COMP%]{position:absolute;padding-left:10px}.export-options[_ngcontent-%COMP%]{overflow-x:hidden}.export-options[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%]{width:100%;margin:10px}.export-options[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 60px)}.export-select-trigger[_ngcontent-%COMP%]{opacity:.75;font-size:.75em}"] });
|
|
32888
|
+
}, directives: [i18__namespace.MatButtonToggleGroup, i18__namespace.MatButtonToggle, i1__namespace$1.NgIf, i16__namespace.ɵNgNoValidate, i16__namespace.NgControlStatusGroup, i16__namespace.FormGroupDirective, i12__namespace.MatFormField, i12__namespace.MatLabel, i13__namespace.MatSelect, i1__namespace$1.NgForOf, i3__namespace.MatTooltip, i2__namespace.MatButton, i6__namespace$1.SpinnerComponent, i9__namespace.MatOption, i13__namespace.MatSelectTrigger, i16__namespace.NgControlStatus, i16__namespace.FormControlName, i1__namespace$1.NgClass, i22__namespace.MatSlideToggle, i5__namespace.MatInput, i16__namespace.DefaultValueAccessor], pipes: [i7__namespace.TranslatePipe, i1__namespace$1.AsyncPipe, i6__namespace$1.KeyValuePipe], styles: ["mat-option.igo-export-layer-mat-option[_ngcontent-%COMP%]{height:5em;line-height:1em}.import-export-toggle[_ngcontent-%COMP%]{padding:10px;text-align:center}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{width:100%}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:50%}h4[_ngcontent-%COMP%]{padding:0 5px}.igo-form[_ngcontent-%COMP%]{padding:15px 5px}.igo-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}igo-spinner[_ngcontent-%COMP%]{position:absolute;padding-left:10px}.export-options[_ngcontent-%COMP%], .export-combine-layers[_ngcontent-%COMP%], .export-separator[_ngcontent-%COMP%]{overflow-x:hidden}.export-options[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%], .export-combine-layers[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%], .export-separator[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%]{width:100%;margin:10px}.export-options[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content, .export-combine-layers[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content, .export-separator[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 60px)}.export-select-trigger[_ngcontent-%COMP%]{opacity:.75;font-size:.75em}"] });
|
|
32478
32889
|
(function () {
|
|
32479
32890
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ImportExportComponent, [{
|
|
32480
32891
|
type: i0.Component,
|
|
@@ -35271,7 +35682,7 @@
|
|
|
35271
35682
|
id: stop.id,
|
|
35272
35683
|
revision: previousStopRevision + 1
|
|
35273
35684
|
},
|
|
35274
|
-
ol: new
|
|
35685
|
+
ol: new OlFeature__default["default"]({ geometry: geometry })
|
|
35275
35686
|
};
|
|
35276
35687
|
stopsFeatureStore.update(stopFeatureStore);
|
|
35277
35688
|
}
|
|
@@ -35303,7 +35714,7 @@
|
|
|
35303
35714
|
id: direction.id,
|
|
35304
35715
|
revision: previousRouteRevision + 1
|
|
35305
35716
|
},
|
|
35306
|
-
ol: new
|
|
35717
|
+
ol: new OlFeature__default["default"]({ geometry: geometry })
|
|
35307
35718
|
};
|
|
35308
35719
|
routesFeatureStore.update(routeFeatureStore);
|
|
35309
35720
|
}
|
|
@@ -36516,7 +36927,7 @@
|
|
|
36516
36927
|
var routeSegmentCoordinates = geometryMapProjection.getCoordinates();
|
|
36517
36928
|
var lastPoint = routeSegmentCoordinates[0];
|
|
36518
36929
|
var geometry = new olgeom__namespace.Point(lastPoint);
|
|
36519
|
-
var feature = new
|
|
36930
|
+
var feature = new OlFeature__default["default"]({ geometry: geometry });
|
|
36520
36931
|
var geojsonGeom = new OlGeoJSON__default["default"]().writeGeometryObject(geometry, {
|
|
36521
36932
|
featureProjection: this.stepFeatureStore.layer.map.projection,
|
|
36522
36933
|
dataProjection: this.stepFeatureStore.layer.map.projection
|
|
@@ -37719,7 +38130,8 @@
|
|
|
37719
38130
|
id: id,
|
|
37720
38131
|
title: data.properties.nom,
|
|
37721
38132
|
titleHtml: titleHtml + subtitleHtml,
|
|
37722
|
-
icon: data.icon || 'map-marker'
|
|
38133
|
+
icon: data.icon || 'map-marker',
|
|
38134
|
+
pointerSummaryTitle: this.getSubtitle(data) + ': ' + data.properties.nom
|
|
37723
38135
|
}
|
|
37724
38136
|
};
|
|
37725
38137
|
};
|
|
@@ -40627,11 +41039,13 @@
|
|
|
40627
41039
|
if (closestResultByType.hasOwnProperty(result.data.properties.type)) {
|
|
40628
41040
|
var prevDistance = closestResultByType[result.data.properties.type].distance;
|
|
40629
41041
|
if (result.data.properties.distance < prevDistance) {
|
|
40630
|
-
|
|
41042
|
+
var title = result.meta.pointerSummaryTitle || result.meta.title;
|
|
41043
|
+
closestResultByType[result.data.properties.type] = { distance: result.data.properties.distance, title: title };
|
|
40631
41044
|
}
|
|
40632
41045
|
}
|
|
40633
41046
|
else {
|
|
40634
|
-
|
|
41047
|
+
var title = result.meta.pointerSummaryTitle || result.meta.title;
|
|
41048
|
+
closestResultByType[result.data.properties.type] = { distance: result.data.properties.distance, title: title };
|
|
40635
41049
|
}
|
|
40636
41050
|
}
|
|
40637
41051
|
});
|
|
@@ -40655,7 +41069,7 @@
|
|
|
40655
41069
|
}
|
|
40656
41070
|
else {
|
|
40657
41071
|
if (processedSummarizedClosestType.indexOf(result.data.properties.type) === -1) {
|
|
40658
|
-
summary.push(result.meta.title);
|
|
41072
|
+
summary.push(result.meta.pointerSummaryTitle || result.meta.title);
|
|
40659
41073
|
}
|
|
40660
41074
|
}
|
|
40661
41075
|
});
|
|
@@ -40714,6 +41128,14 @@
|
|
|
40714
41128
|
_this.onSearchCoordinate();
|
|
40715
41129
|
}, this.igoSearchPointerSummaryDelay);
|
|
40716
41130
|
};
|
|
41131
|
+
/**
|
|
41132
|
+
* Sort the results by display order.
|
|
41133
|
+
* @param r1 First result
|
|
41134
|
+
* @param r2 Second result
|
|
41135
|
+
*/
|
|
41136
|
+
SearchPointerSummaryDirective.prototype.sortByOrder = function (r1, r2) {
|
|
41137
|
+
return r1.source.displayOrder - r2.source.displayOrder;
|
|
41138
|
+
};
|
|
40717
41139
|
SearchPointerSummaryDirective.prototype.onSearchCoordinate = function () {
|
|
40718
41140
|
var _this = this;
|
|
40719
41141
|
this.pointerSearchStore.clear();
|
|
@@ -40735,7 +41157,7 @@
|
|
|
40735
41157
|
var newResults = this.pointerSearchStore.all()
|
|
40736
41158
|
.filter(function (result) { return result.source !== event.research.source; })
|
|
40737
41159
|
.concat(results);
|
|
40738
|
-
this.pointerSearchStore.load(newResults);
|
|
41160
|
+
this.pointerSearchStore.load(newResults.sort(this.sortByOrder));
|
|
40739
41161
|
};
|
|
40740
41162
|
/**
|
|
40741
41163
|
* Add a feature to the pointer store
|
|
@@ -40744,7 +41166,7 @@
|
|
|
40744
41166
|
SearchPointerSummaryDirective.prototype.addPointerOverlay = function (text) {
|
|
40745
41167
|
this.clearLayer();
|
|
40746
41168
|
var geometry = new olgeom__namespace.Point(olproj.transform(this.lonLat, 'EPSG:4326', this.mapProjection));
|
|
40747
|
-
var feature = new
|
|
41169
|
+
var feature = new OlFeature__default["default"]({ geometry: geometry });
|
|
40748
41170
|
var geojsonGeom = new OlGeoJSON__default["default"]().writeGeometryObject(geometry, {
|
|
40749
41171
|
featureProjection: this.mapProjection,
|
|
40750
41172
|
dataProjection: this.mapProjection
|
|
@@ -43402,6 +43824,7 @@
|
|
|
43402
43824
|
exports.computeBestAreaUnit = computeBestAreaUnit;
|
|
43403
43825
|
exports.computeBestLengthUnit = computeBestLengthUnit;
|
|
43404
43826
|
exports.computeLayerTitleFromFile = computeLayerTitleFromFile;
|
|
43827
|
+
exports.computeMVTOptionsOnHover = computeMVTOptionsOnHover;
|
|
43405
43828
|
exports.computeOlFeatureExtent = computeOlFeatureExtent;
|
|
43406
43829
|
exports.computeOlFeaturesDiff = computeOlFeaturesDiff;
|
|
43407
43830
|
exports.computeOlFeaturesExtent = computeOlFeaturesExtent;
|