@igo2/geo 18.0.0-next.9 → 18.0.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/esm2022/lib/catalog/catalog-browser/catalog-browser-layer.component.mjs +4 -6
- package/esm2022/lib/catalog/catalog-browser/catalog-browser.component.mjs +13 -10
- package/esm2022/lib/datasource/shared/capabilities.service.mjs +1 -1
- package/esm2022/lib/datasource/shared/datasources/datasource.mjs +2 -1
- package/esm2022/lib/datasource/shared/datasources/wfs-datasource.interface.mjs +1 -1
- package/esm2022/lib/datasource/shared/datasources/wms-datasource.interface.mjs +1 -1
- package/esm2022/lib/directions/directions-buttons/directions-buttons.component.mjs +151 -102
- package/esm2022/lib/directions/directions-inputs/directions-inputs.component.mjs +177 -83
- package/esm2022/lib/directions/directions-results/directions-results.component.mjs +93 -44
- package/esm2022/lib/directions/directions-sources/directions-source.mjs +1 -1
- package/esm2022/lib/directions/directions-sources/osrm-directions-source.mjs +1 -1
- package/esm2022/lib/directions/directions.component.mjs +55 -31
- package/esm2022/lib/directions/shared/directions.enum.mjs +51 -7
- package/esm2022/lib/directions/shared/directions.interface.mjs +1 -1
- package/esm2022/lib/directions/shared/directions.service.mjs +122 -96
- package/esm2022/lib/directions/shared/directions.utils.mjs +281 -318
- package/esm2022/lib/directions/shared/store.mjs +2 -2
- package/esm2022/lib/download/download-button/download-button.component.mjs +8 -20
- package/esm2022/lib/download/shared/download.service.mjs +1 -1
- package/esm2022/lib/draw/draw/draw-popup.component.mjs +1 -1
- package/esm2022/lib/draw/draw/draw.component.mjs +5 -12
- package/esm2022/lib/draw/shared/draw.utils.mjs +1 -1
- package/esm2022/lib/environment/environment.interface.mjs +1 -1
- package/esm2022/lib/feature/feature-details/feature-details.component.mjs +2 -2
- package/esm2022/lib/feature/shared/feature-store.utils.mjs +7 -6
- package/esm2022/lib/feature/shared/feature.interfaces.mjs +1 -1
- package/esm2022/lib/feature/shared/store.mjs +1 -1
- package/esm2022/lib/feature/shared/strategies/geo-properties.mjs +3 -3
- package/esm2022/lib/feature/shared/strategies/in-map-extent.mjs +7 -4
- package/esm2022/lib/feature/shared/strategies/selection.mjs +5 -4
- package/esm2022/lib/filter/ogc-filter-button/ogc-filter-button.component.mjs +3 -3
- package/esm2022/lib/filter/ogc-filterable-item/ogc-filterable-item.component.mjs +2 -2
- package/esm2022/lib/filter/ogc-filterable-list/ogc-filterable-list-binding.directive.mjs +5 -3
- package/esm2022/lib/filter/ogc-filterable-list/ogc-filterable-list.component.mjs +1 -1
- package/esm2022/lib/filter/shared/filterable-datasource.pipe.mjs +8 -1
- package/esm2022/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.mjs +1 -1
- package/esm2022/lib/filter/spatial-filter/spatial-filter-list/spatial-filter-list.component.mjs +2 -8
- package/esm2022/lib/filter/spatial-filter/spatial-filter-type/spatial-filter-type.component.mjs +2 -8
- package/esm2022/lib/filter/time-filter-button/time-filter-button.component.mjs +2 -2
- package/esm2022/lib/filter/time-filter-form/time-filter-form.component.mjs +13 -10
- package/esm2022/lib/filter/time-filter-item/time-filter-item.component.mjs +2 -2
- package/esm2022/lib/filter/time-filter-list/time-filter-list-binding.directive.mjs +4 -2
- package/esm2022/lib/filter/time-filter-list/time-filter-list.component.mjs +5 -16
- package/esm2022/lib/import-export/export-button/export-button.component.mjs +4 -17
- package/esm2022/lib/import-export/import-export/import-export.component.mjs +23 -12
- package/esm2022/lib/import-export/shared/export.service.mjs +7 -4
- package/esm2022/lib/import-export/shared/import.utils.mjs +3 -3
- package/esm2022/lib/layer/index.mjs +10 -5
- package/esm2022/lib/layer/layer-group/index.mjs +2 -0
- package/esm2022/lib/layer/layer-group/layer-group.component.mjs +103 -0
- package/esm2022/lib/layer/layer-item/layer-item.component.mjs +76 -161
- package/esm2022/lib/layer/layer-legend/layer-legend.component.mjs +5 -8
- package/esm2022/lib/layer/layer-legend-list/layer-legend-list-binding.directive.mjs +5 -6
- package/esm2022/lib/layer/layer-legend-list/layer-legend-list.component.mjs +14 -21
- package/esm2022/lib/layer/layer-list/index.mjs +1 -3
- package/esm2022/lib/layer/layer-list/layer-list.component.mjs +176 -785
- package/esm2022/lib/layer/layer-list-tool/index.mjs +1 -2
- package/esm2022/lib/layer/layer-list-tool/layer-list-tool.component.mjs +51 -84
- package/esm2022/lib/layer/layer-list-tool/layer-list-tool.interface.mjs +7 -2
- package/esm2022/lib/layer/layer-list-tool/layer-list-tool.service.mjs +56 -16
- package/esm2022/lib/layer/layer-search/index.mjs +2 -0
- package/esm2022/lib/layer/layer-search/layer-search.component.mjs +65 -0
- package/esm2022/lib/layer/layer-unavailable/index.mjs +3 -0
- package/esm2022/lib/layer/layer-unavailable/layer-unavailable-list/layer-unavailable-list.component.mjs +25 -0
- package/esm2022/lib/layer/layer-unavailable/layer-unavailable.component.mjs +35 -0
- package/esm2022/lib/layer/layer-viewer/index.mjs +3 -0
- package/esm2022/lib/layer/layer-viewer/layer-viewer.component.mjs +226 -0
- package/esm2022/lib/layer/layer-viewer/layer-viewer.interface.mjs +2 -0
- package/esm2022/lib/layer/layer-viewer-bottom-actions/index.mjs +2 -0
- package/esm2022/lib/layer/layer-viewer-bottom-actions/layer-viewer-bottom-actions.component.mjs +207 -0
- package/esm2022/lib/layer/layer-visibility-button/index.mjs +2 -0
- package/esm2022/lib/layer/layer-visibility-button/layer-visibility-button.component.mjs +83 -0
- package/esm2022/lib/layer/layer.module.mjs +51 -33
- package/esm2022/lib/layer/shared/index.mjs +2 -1
- package/esm2022/lib/layer/shared/layer-controller.mjs +316 -0
- package/esm2022/lib/layer/shared/layer-selection.mjs +38 -0
- package/esm2022/lib/layer/shared/layer.service.mjs +31 -16
- package/esm2022/lib/layer/shared/layers/any-layer.interface.mjs +1 -1
- package/esm2022/lib/layer/shared/layers/any-layer.mjs +1 -1
- package/esm2022/lib/layer/shared/layers/image-layer.interface.mjs +1 -1
- package/esm2022/lib/layer/shared/layers/image-layer.mjs +8 -3
- package/esm2022/lib/layer/shared/layers/index.mjs +6 -1
- package/esm2022/lib/layer/shared/layers/layer-base.mjs +199 -0
- package/esm2022/lib/layer/shared/layers/layer-group.interface.mjs +2 -0
- package/esm2022/lib/layer/shared/layers/layer-group.mjs +120 -0
- package/esm2022/lib/layer/shared/layers/layer.interface.mjs +1 -11
- package/esm2022/lib/layer/shared/layers/layer.mjs +108 -117
- package/esm2022/lib/layer/shared/layers/linked/index.mjs +4 -0
- package/esm2022/lib/layer/shared/layers/linked/linked-layer.interface.mjs +12 -0
- package/esm2022/lib/layer/shared/layers/linked/linked-layer.mjs +242 -0
- package/esm2022/lib/layer/shared/layers/linked/linked-layer.utils.mjs +70 -0
- package/esm2022/lib/layer/shared/layers/tile-layer.mjs +8 -3
- package/esm2022/lib/layer/shared/layers/vector-layer.mjs +9 -3
- package/esm2022/lib/layer/shared/layers/vectortile-layer.mjs +8 -3
- package/esm2022/lib/layer/utils/layer.utils.mjs +47 -1
- package/esm2022/lib/layer/utils/outputLegend.mjs +5 -1
- package/esm2022/lib/map/baselayers-switcher/baselayers-switcher.component.mjs +3 -3
- package/esm2022/lib/map/baselayers-switcher/mini-basemap.component.mjs +8 -6
- package/esm2022/lib/map/map-center/map-center.component.mjs +1 -2
- package/esm2022/lib/map/shared/controllers/geolocation.interface.mjs +1 -1
- package/esm2022/lib/map/shared/controllers/view.mjs +1 -1
- package/esm2022/lib/map/shared/hover-feature.directive.mjs +1 -9
- package/esm2022/lib/map/shared/linkedLayers.utils.mjs +113 -123
- package/esm2022/lib/map/shared/map.abstract.mjs +4 -3
- package/esm2022/lib/map/shared/map.mjs +7 -243
- package/esm2022/lib/map/shared/map.service.mjs +1 -1
- package/esm2022/lib/map/shared/map.utils.mjs +3 -3
- package/esm2022/lib/map/shared/mapOffline.directive.mjs +9 -5
- package/esm2022/lib/map/swipe-control/swipe-control.component.mjs +1 -3
- package/esm2022/lib/map/utils/index.mjs +2 -0
- package/esm2022/lib/map/utils/layer-watcher.mjs +45 -13
- package/esm2022/lib/measure/measurer/measurer.component.mjs +7 -25
- package/esm2022/lib/metadata/metadata-button/metadata-button.component.mjs +6 -18
- package/esm2022/lib/offline/offline.provider.mjs +10 -11
- package/esm2022/lib/print/shared/print.service.mjs +3 -3
- package/esm2022/lib/query/shared/query.directive.mjs +9 -5
- package/esm2022/lib/query/shared/query.service.mjs +7 -7
- package/esm2022/lib/query/shared/query.utils.mjs +5 -1
- package/esm2022/lib/search/search-results/search-results-add-button.component.mjs +15 -9
- package/esm2022/lib/search/shared/search-pointer-summary.directive.mjs +1 -10
- package/esm2022/lib/search/shared/sources/workspace.interfaces.mjs +1 -1
- package/esm2022/lib/search/shared/sources/workspace.mjs +1 -1
- package/esm2022/lib/workspace/shared/edition-workspace.mjs +6 -4
- package/esm2022/lib/workspace/shared/edition-workspace.service.mjs +19 -17
- package/esm2022/lib/workspace/shared/wfs-workspace.service.mjs +17 -2
- package/esm2022/lib/workspace/shared/wms-workspace.service.mjs +22 -4
- package/esm2022/lib/workspace/shared/workspace.utils.mjs +6 -3
- package/esm2022/lib/workspace/widgets/ogc-filter/ogc-filter.component.mjs +2 -2
- package/esm2022/lib/workspace/workspace-selector/workspace-selector.directive.mjs +6 -2
- package/esm2022/lib/workspace/workspace-updator/workspace-updator.directive.mjs +4 -3
- package/fesm2022/igo2-geo.mjs +22952 -22018
- package/fesm2022/igo2-geo.mjs.map +1 -1
- package/lib/datasource/shared/capabilities.service.d.ts +7 -2
- package/lib/datasource/shared/datasources/wfs-datasource.interface.d.ts +2 -2
- package/lib/datasource/shared/datasources/wms-datasource.interface.d.ts +5 -5
- package/lib/directions/directions-buttons/directions-buttons.component.d.ts +57 -20
- package/lib/directions/directions-inputs/directions-inputs.component.d.ts +115 -13
- package/lib/directions/directions-results/directions-results.component.d.ts +50 -16
- package/lib/directions/directions-sources/directions-source.d.ts +2 -2
- package/lib/directions/directions-sources/osrm-directions-source.d.ts +2 -2
- package/lib/directions/directions.component.d.ts +5 -5
- package/lib/directions/shared/directions.enum.d.ts +42 -1
- package/lib/directions/shared/directions.interface.d.ts +50 -25
- package/lib/directions/shared/directions.service.d.ts +46 -8
- package/lib/directions/shared/directions.utils.d.ts +102 -23
- package/lib/directions/shared/store.d.ts +3 -3
- package/lib/download/download-button/download-button.component.d.ts +4 -8
- package/lib/download/shared/download.service.d.ts +1 -1
- package/lib/draw/draw/draw.component.d.ts +2 -2
- package/lib/draw/shared/draw.utils.d.ts +2 -1
- package/lib/environment/environment.interface.d.ts +2 -0
- package/lib/feature/shared/feature-store.utils.d.ts +1 -1
- package/lib/feature/shared/feature.interfaces.d.ts +1 -1
- package/lib/feature/shared/store.d.ts +1 -1
- package/lib/filter/ogc-filter-button/ogc-filter-button.component.d.ts +1 -1
- package/lib/filter/ogc-filterable-item/ogc-filterable-item.component.d.ts +1 -1
- package/lib/filter/ogc-filterable-list/ogc-filterable-list.component.d.ts +2 -2
- package/lib/filter/shared/filterable-datasource.pipe.d.ts +2 -2
- package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +3 -3
- package/lib/filter/spatial-filter/spatial-filter-list/spatial-filter-list.component.d.ts +3 -5
- package/lib/filter/spatial-filter/spatial-filter-type/spatial-filter-type.component.d.ts +3 -5
- package/lib/filter/time-filter-button/time-filter-button.component.d.ts +1 -1
- package/lib/filter/time-filter-form/time-filter-form.component.d.ts +5 -5
- package/lib/filter/time-filter-item/time-filter-item.component.d.ts +1 -1
- package/lib/filter/time-filter-list/time-filter-list.component.d.ts +2 -7
- package/lib/import-export/export-button/export-button.component.d.ts +3 -7
- package/lib/import-export/import-export/import-export.component.d.ts +1 -2
- package/lib/import-export/shared/export.service.d.ts +2 -2
- package/lib/layer/index.d.ts +9 -4
- package/lib/layer/layer-group/index.d.ts +1 -0
- package/lib/layer/layer-group/layer-group.component.d.ts +30 -0
- package/lib/layer/layer-item/layer-item.component.d.ts +19 -42
- package/lib/layer/layer-legend/layer-legend.component.d.ts +2 -5
- package/lib/layer/layer-legend-list/layer-legend-list.component.d.ts +6 -7
- package/lib/layer/layer-list/index.d.ts +0 -2
- package/lib/layer/layer-list/layer-list.component.d.ts +51 -128
- package/lib/layer/layer-list-tool/index.d.ts +0 -1
- package/lib/layer/layer-list-tool/layer-list-tool.component.d.ts +19 -26
- package/lib/layer/layer-list-tool/layer-list-tool.interface.d.ts +5 -1
- package/lib/layer/layer-list-tool/layer-list-tool.service.d.ts +9 -8
- package/lib/layer/layer-search/index.d.ts +1 -0
- package/lib/layer/layer-search/layer-search.component.d.ts +16 -0
- package/lib/layer/layer-unavailable/index.d.ts +2 -0
- package/lib/layer/layer-unavailable/layer-unavailable-list/layer-unavailable-list.component.d.ts +10 -0
- package/lib/layer/layer-unavailable/layer-unavailable.component.d.ts +11 -0
- package/lib/layer/layer-viewer/index.d.ts +2 -0
- package/lib/layer/layer-viewer/layer-viewer.component.d.ts +52 -0
- package/lib/layer/layer-viewer/layer-viewer.interface.d.ts +22 -0
- package/lib/layer/layer-viewer-bottom-actions/index.d.ts +1 -0
- package/lib/layer/layer-viewer-bottom-actions/layer-viewer-bottom-actions.component.d.ts +44 -0
- package/lib/layer/layer-visibility-button/index.d.ts +1 -0
- package/lib/layer/layer-visibility-button/layer-visibility-button.component.d.ts +22 -0
- package/lib/layer/layer.module.d.ts +18 -6
- package/lib/layer/shared/index.d.ts +1 -0
- package/lib/layer/shared/layer-controller.d.ts +81 -0
- package/lib/layer/shared/layer-selection.d.ts +14 -0
- package/lib/layer/shared/layer.service.d.ts +9 -5
- package/lib/layer/shared/layers/any-layer.d.ts +3 -6
- package/lib/layer/shared/layers/any-layer.interface.d.ts +8 -6
- package/lib/layer/shared/layers/image-layer.d.ts +5 -2
- package/lib/layer/shared/layers/image-layer.interface.d.ts +1 -4
- package/lib/layer/shared/layers/index.d.ts +5 -0
- package/lib/layer/shared/layers/layer-base.d.ts +75 -0
- package/lib/layer/shared/layers/layer-group.d.ts +32 -0
- package/lib/layer/shared/layers/layer-group.interface.d.ts +8 -0
- package/lib/layer/shared/layers/layer.d.ts +27 -45
- package/lib/layer/shared/layers/layer.interface.d.ts +23 -41
- package/lib/layer/shared/layers/linked/index.d.ts +3 -0
- package/lib/layer/shared/layers/linked/linked-layer.d.ts +35 -0
- package/lib/layer/shared/layers/linked/linked-layer.interface.d.ts +32 -0
- package/lib/layer/shared/layers/linked/linked-layer.utils.d.ts +9 -0
- package/lib/layer/shared/layers/tile-layer.d.ts +5 -2
- package/lib/layer/shared/layers/vector-layer.d.ts +7 -3
- package/lib/layer/shared/layers/vectortile-layer.d.ts +5 -2
- package/lib/layer/utils/layer.utils.d.ts +12 -2
- package/lib/layer/utils/outputLegend.d.ts +2 -2
- package/lib/map/shared/controllers/geolocation.interface.d.ts +2 -1
- package/lib/map/shared/hover-feature.directive.d.ts +0 -1
- package/lib/map/shared/linkedLayers.utils.d.ts +13 -17
- package/lib/map/shared/map.abstract.d.ts +12 -29
- package/lib/map/shared/map.d.ts +10 -85
- package/lib/map/shared/map.service.d.ts +1 -1
- package/lib/map/shared/map.utils.d.ts +5 -3
- package/lib/map/utils/index.d.ts +1 -0
- package/lib/map/utils/layer-watcher.d.ts +18 -8
- package/lib/measure/measurer/measurer.component.d.ts +0 -8
- package/lib/metadata/metadata-button/metadata-button.component.d.ts +3 -7
- package/lib/offline/offline.provider.d.ts +1 -1
- package/lib/query/shared/query.service.d.ts +1 -1
- package/lib/query/shared/query.utils.d.ts +2 -1
- package/lib/search/search-results/search-results-add-button.component.d.ts +1 -1
- package/lib/search/shared/search-pointer-summary.directive.d.ts +0 -1
- package/lib/search/shared/sources/workspace.interfaces.d.ts +1 -1
- package/lib/workspace/widgets/ogc-filter/ogc-filter.component.d.ts +1 -1
- package/locale/en.geo.json +104 -89
- package/locale/fr.geo.json +103 -89
- package/package.json +5 -5
- package/src/geo-theme.scss +1 -1
- package/src/lib/directions/directions-inputs/directions-inputs.theming.scss +21 -0
- package/src/lib/directions/directions.theming.scss +2 -0
- package/src/lib/layer/layer-group/layer-group.theme.scss +28 -0
- package/src/lib/layer/layer-item/layer-item.theme.scss +4 -9
- package/src/lib/layer/layer-legend/layer-legend.theme.scss +30 -0
- package/src/lib/layer/layer-list/layer-list.theme.scss +50 -0
- package/src/lib/layer/layer-unavailable/layer-unavailable.theme.scss +19 -0
- package/src/lib/layer/layer-viewer/_layer-viewer.theme.scss +16 -0
- package/src/lib/layer/layer-visibility-button/layer-visibility-button.theme.scss +27 -0
- package/src/lib/layer/layer.theming.scss +14 -3
- package/esm2022/lib/layer/layer-list/layer-list-binding.directive.mjs +0 -70
- package/esm2022/lib/layer/layer-list/layer-list.enum.mjs +0 -19
- package/esm2022/lib/layer/layer-list-tool/layer-list-tool.enum.mjs +0 -7
- package/lib/layer/layer-list/layer-list-binding.directive.d.ts +0 -19
- package/lib/layer/layer-list/layer-list.enum.d.ts +0 -15
- package/lib/layer/layer-list-tool/layer-list-tool.enum.d.ts +0 -5
- package/src/lib/layer/layer-legend/layer-legend.theming.scss +0 -10
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Coordinate } from 'ol/coordinate';
|
|
1
2
|
import { GeoJsonGeometryTypes } from 'geojson';
|
|
2
3
|
import { Feature } from '../../feature/shared/feature.interfaces';
|
|
3
4
|
import { SearchMeta } from '../../search';
|
|
4
5
|
import { SearchSource } from '../../search/shared/sources/source';
|
|
5
|
-
import { DirectionRelativePositionType,
|
|
6
|
+
import { DirectionRelativePositionType, DirectionsFormat, DirectionsType, LaneType, ManeuverModifier, ManeuverType, ProposalType, SourceDirectionsType } from './directions.enum';
|
|
6
7
|
export interface DirectionOptions {
|
|
7
8
|
overview?: boolean;
|
|
8
9
|
steps?: boolean;
|
|
@@ -11,23 +12,23 @@ export interface DirectionOptions {
|
|
|
11
12
|
continue_straight?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export type FeatureWithStop = Feature<FeatureWithStopProperties>;
|
|
14
|
-
export type
|
|
15
|
+
export type FeatureWithDirections = Feature<FeatureWithDirectionsProperties>;
|
|
15
16
|
export type FeatureWithStep = Feature<FeatureWithStepProperties>;
|
|
16
17
|
export interface FeatureWithStepProperties {
|
|
17
18
|
id: string;
|
|
18
19
|
step: IgoStep;
|
|
19
|
-
type:
|
|
20
|
+
type: DirectionsType;
|
|
20
21
|
}
|
|
21
|
-
export interface
|
|
22
|
+
export interface FeatureWithDirectionsProperties {
|
|
22
23
|
id: string;
|
|
23
|
-
|
|
24
|
-
type:
|
|
24
|
+
directions: Directions;
|
|
25
|
+
type: DirectionsType;
|
|
25
26
|
active: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface FeatureWithStopProperties {
|
|
28
29
|
id: string;
|
|
29
30
|
stop: Stop;
|
|
30
|
-
type:
|
|
31
|
+
type: DirectionsType;
|
|
31
32
|
stopText: string;
|
|
32
33
|
stopColor: string;
|
|
33
34
|
stopOpacity: 1;
|
|
@@ -36,13 +37,12 @@ export interface Stop {
|
|
|
36
37
|
id: string;
|
|
37
38
|
text?: string;
|
|
38
39
|
searchProposals?: SourceProposal[];
|
|
39
|
-
coordinates?:
|
|
40
|
+
coordinates?: Coordinate;
|
|
40
41
|
position: number;
|
|
41
42
|
relativePosition: DirectionRelativePositionType;
|
|
42
43
|
stopPoint?: string;
|
|
43
44
|
stopProposals?: [];
|
|
44
45
|
directionsText?: string;
|
|
45
|
-
stopCoordinates?: [number, number];
|
|
46
46
|
}
|
|
47
47
|
export interface SourceProposal {
|
|
48
48
|
type: ProposalType;
|
|
@@ -50,7 +50,7 @@ export interface SourceProposal {
|
|
|
50
50
|
results: Record<string, any>[];
|
|
51
51
|
meta: SearchMeta;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface Directions {
|
|
54
54
|
id: string;
|
|
55
55
|
source: string;
|
|
56
56
|
sourceType?: SourceDirectionsType;
|
|
@@ -63,19 +63,19 @@ export interface Direction {
|
|
|
63
63
|
distance?: number;
|
|
64
64
|
duration?: number;
|
|
65
65
|
geometry?: DirectionsGeometry;
|
|
66
|
-
legs?:
|
|
66
|
+
legs?: OsrmRouteLeg[];
|
|
67
67
|
steps?: IgoStep[];
|
|
68
68
|
weight?: number;
|
|
69
69
|
weight_name?: string;
|
|
70
70
|
}
|
|
71
71
|
export interface DirectionsGeometry {
|
|
72
72
|
type: GeoJsonGeometryTypes;
|
|
73
|
-
coordinates:
|
|
73
|
+
coordinates: Coordinate;
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface OsrmRouteLeg {
|
|
76
76
|
distance?: number;
|
|
77
77
|
duration?: number;
|
|
78
|
-
steps?:
|
|
78
|
+
steps?: OsrmRouteStep[];
|
|
79
79
|
summary: string;
|
|
80
80
|
weight?: number;
|
|
81
81
|
}
|
|
@@ -85,30 +85,55 @@ export interface IgoStep {
|
|
|
85
85
|
duration?: number;
|
|
86
86
|
geometry?: DirectionsGeometry;
|
|
87
87
|
intersections?: OsrmIntersection[];
|
|
88
|
-
maneuver?:
|
|
88
|
+
maneuver?: OsrmStepManeuver;
|
|
89
89
|
mode?: string;
|
|
90
90
|
name?: string;
|
|
91
91
|
}
|
|
92
|
-
export interface
|
|
92
|
+
export interface FormattedStep {
|
|
93
|
+
instruction: string;
|
|
94
|
+
iconName: string;
|
|
95
|
+
}
|
|
96
|
+
export interface OsrmRouteStep {
|
|
97
|
+
destinations?: string[];
|
|
93
98
|
distance?: number;
|
|
94
99
|
driving_side?: string;
|
|
95
100
|
duration?: number;
|
|
101
|
+
exits: number[] | string[];
|
|
96
102
|
geometry?: DirectionsGeometry;
|
|
97
103
|
intersections?: OsrmIntersection[];
|
|
98
|
-
maneuver?:
|
|
104
|
+
maneuver?: OsrmStepManeuver;
|
|
99
105
|
mode?: string;
|
|
100
106
|
name?: string;
|
|
107
|
+
pronunciation?: string;
|
|
108
|
+
rotary_name?: string;
|
|
109
|
+
rotary_pronunciation?: string;
|
|
110
|
+
ref?: number | string;
|
|
111
|
+
weight?: number;
|
|
112
|
+
}
|
|
113
|
+
export interface OsrmStepManeuver {
|
|
114
|
+
bearing_after?: number;
|
|
115
|
+
bearing_before?: number;
|
|
116
|
+
exit?: number;
|
|
117
|
+
location?: [number, number];
|
|
118
|
+
modifier?: ManeuverModifier;
|
|
119
|
+
type?: ManeuverType;
|
|
120
|
+
}
|
|
121
|
+
export interface OsrmLane {
|
|
122
|
+
indications: LaneType[];
|
|
123
|
+
valid: boolean;
|
|
101
124
|
}
|
|
102
125
|
export interface OsrmIntersection {
|
|
103
|
-
|
|
104
|
-
|
|
126
|
+
bearings?: number[];
|
|
127
|
+
classes?: string[];
|
|
128
|
+
entry?: boolean[];
|
|
129
|
+
in?: number;
|
|
130
|
+
lanes?: OsrmLane[];
|
|
105
131
|
location?: [number, number];
|
|
106
132
|
out?: number;
|
|
107
133
|
}
|
|
108
|
-
export interface
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
location
|
|
112
|
-
|
|
113
|
-
type?: string;
|
|
134
|
+
export interface OsrmWaypoint {
|
|
135
|
+
distance?: number;
|
|
136
|
+
hint?: string;
|
|
137
|
+
location: [number, number];
|
|
138
|
+
name?: string;
|
|
114
139
|
}
|
|
@@ -7,8 +7,7 @@ import 'jspdf-autotable';
|
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { IgoMap } from '../../map/shared/map';
|
|
9
9
|
import { PrintService } from '../../print/shared/print.service';
|
|
10
|
-
import {
|
|
11
|
-
import { Direction, DirectionOptions } from '../shared/directions.interface';
|
|
10
|
+
import { DirectionOptions, Directions } from '../shared/directions.interface';
|
|
12
11
|
import { DirectionsSourceService } from './directions-source.service';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
export declare class DirectionsService {
|
|
@@ -19,13 +18,52 @@ export declare class DirectionsService {
|
|
|
19
18
|
private document;
|
|
20
19
|
private activityService;
|
|
21
20
|
constructor(directionsSourceService: DirectionsSourceService, configService: ConfigService, languageService: LanguageService, printService: PrintService, document: Document, activityService: ActivityService);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Routes the given coordinates using the specified directions source and options.
|
|
23
|
+
*
|
|
24
|
+
* @param {DirectionsSource} source - The directions source to use for routing.
|
|
25
|
+
* @param {Position[]} coordinates - The array of coordinates to route.
|
|
26
|
+
* @param {DirectionOptions} [directionsOptions={}] - The optional direction options.
|
|
27
|
+
* @return {Observable<Directions[]>} An observable that emits an array of directions.
|
|
28
|
+
*/
|
|
29
|
+
route(coordinates: Position[], directionsOptions?: DirectionOptions): Observable<Directions[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Downloads directions for a given map and directions object.
|
|
32
|
+
*
|
|
33
|
+
* @param {IgoMap} map - The map object to download directions for.
|
|
34
|
+
* @param {Directions} directions - The directions object containing the route information.
|
|
35
|
+
* @return {Observable<SubjectStatus>} An observable that emits the status of the download process.
|
|
36
|
+
*/
|
|
37
|
+
downloadDirections(map: IgoMap, directions: Directions): Observable<SubjectStatus>;
|
|
38
|
+
/**
|
|
39
|
+
* Generates an HTML table element with directions steps.
|
|
40
|
+
*
|
|
41
|
+
* @param {Directions} directions - The directions object containing the steps.
|
|
42
|
+
* @return {Promise<HTMLTableElement>} - A promise that resolves to the generated HTML table element.
|
|
43
|
+
*/
|
|
44
|
+
private setHTMLTableDirections;
|
|
45
|
+
/**
|
|
46
|
+
* Generates formatted steps for the given directions.
|
|
47
|
+
*
|
|
48
|
+
* @param {Directions} directions - The directions object containing the steps.
|
|
49
|
+
* @return {Promise<{ instruction: string; icon: string; distanceDuration: string }[]>}
|
|
50
|
+
* A promise that resolves to an array of formatted steps.
|
|
51
|
+
*/
|
|
52
|
+
private directionsSteps;
|
|
53
|
+
/**
|
|
54
|
+
* Adds instructions to the given jsPDF document.
|
|
55
|
+
*
|
|
56
|
+
* @param {jsPDF} doc - The jsPDF document to add instructions to.
|
|
57
|
+
* @param {Directions} directions - The directions object containing the instructions.
|
|
58
|
+
* @param {string} title - The title of the instructions.
|
|
59
|
+
* @return {Promise<void>} A promise that resolves when the instructions are added to the document.
|
|
60
|
+
*/
|
|
28
61
|
private addInstructions;
|
|
62
|
+
/**
|
|
63
|
+
* Sets the header and footer of each page in the given jsPDF document.
|
|
64
|
+
*
|
|
65
|
+
* @param {jsPDF} doc - The jsPDF document to modify.
|
|
66
|
+
*/
|
|
29
67
|
private setPageHeaderFooter;
|
|
30
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<DirectionsService, never>;
|
|
31
69
|
static ɵprov: i0.ɵɵInjectableDeclaration<DirectionsService>;
|
|
@@ -2,41 +2,120 @@ import { LanguageService } from '@igo2/core/language';
|
|
|
2
2
|
import olFeature from 'ol/Feature';
|
|
3
3
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
4
4
|
import * as olStyle from 'ol/style';
|
|
5
|
-
import { DirectionRelativePositionType } from './directions.enum';
|
|
6
|
-
import {
|
|
7
|
-
import { RoutesFeatureStore,
|
|
5
|
+
import { DirectionRelativePositionType, ManeuverModifier } from './directions.enum';
|
|
6
|
+
import { Directions, IgoStep, Stop } from './directions.interface';
|
|
7
|
+
import { RoutesFeatureStore, StepsFeatureStore, StopsFeatureStore, StopsStore } from './store';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
9
|
+
* Updates the sorting of the stops in the provided StopsStore based on the specified field and direction.
|
|
10
|
+
*
|
|
11
|
+
* @param {StopsStore} stopsStore - The StopsStore to update the sorting for.
|
|
12
|
+
* @param {'asc' | 'desc'} [direction='asc'] - The direction of sorting ('asc' for ascending, 'desc' for descending).
|
|
13
|
+
* @param {string} [field='position'] - The field to sort the stops by.
|
|
13
14
|
*/
|
|
14
15
|
export declare function updateStoreSorting(stopsStore: StopsStore, direction?: 'asc' | 'desc', field?: string): void;
|
|
15
|
-
export declare function computeRelativePosition(index: number, totalLength: any): DirectionRelativePositionType;
|
|
16
|
-
export declare function computeStopsPosition(stopsStore: StopsStore): void;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* Computes the relative position of a stop in a list of stops.
|
|
18
|
+
*
|
|
19
|
+
* @param {number} stopIndex - The index of the stop.
|
|
20
|
+
* @param {number} stopListLength - The total number of stops.
|
|
21
|
+
* @return {DirectionRelativePositionType} The relative position of the stop.
|
|
22
|
+
*/
|
|
23
|
+
export declare function computeRelativePosition(stopIndex: number, stopListLength: number): DirectionRelativePositionType;
|
|
24
|
+
/**
|
|
25
|
+
* Computes the position and relative position of stops in the given stopsStore.
|
|
26
|
+
*
|
|
27
|
+
* @param {StopsStore} stopsStore - The store containing the stops.
|
|
28
|
+
*/
|
|
29
|
+
export declare function computeStopsPosition(deletedStopIndex: number, stopsStore: StopsStore): void;
|
|
30
|
+
/**
|
|
31
|
+
* Adds a stop to the given stopsStore. The stop is always added as the last stop.
|
|
32
|
+
*
|
|
33
|
+
* @param {StopsStore} stopsStore - The store containing the stops.
|
|
34
|
+
* @return {Stop} The newly added stop.
|
|
20
35
|
*/
|
|
21
36
|
export declare function addStopToStore(stopsStore: StopsStore): Stop;
|
|
37
|
+
/**
|
|
38
|
+
* Removes a stop from the given stopsStore and updates the positions of the remaining stops.
|
|
39
|
+
*
|
|
40
|
+
* @param {StopsStore} stopsStore - The store containing the stops.
|
|
41
|
+
* @param {Stop} stop - The stop to be removed.
|
|
42
|
+
*/
|
|
22
43
|
export declare function removeStopFromStore(stopsStore: StopsStore, stop: Stop): void;
|
|
23
44
|
/**
|
|
24
|
-
* Create a style for the directions stops and
|
|
45
|
+
* Create a style for the directions steps, stops and route
|
|
25
46
|
* @param feature OlFeature
|
|
26
47
|
* @returns OL style function
|
|
27
48
|
*/
|
|
28
49
|
export declare function directionsStyle(feature: olFeature<OlGeometry>): olStyle.Style | olStyle.Style[];
|
|
50
|
+
/**
|
|
51
|
+
* Initializes the stops feature store with the provided language service.
|
|
52
|
+
*
|
|
53
|
+
* @param {StopsFeatureStore} stopsFeatureStore - The stops feature store to initialize.
|
|
54
|
+
* @param {LanguageService} languageService - The language service used for translations.
|
|
55
|
+
*/
|
|
29
56
|
export declare function initStopsFeatureStore(stopsFeatureStore: StopsFeatureStore, languageService: LanguageService): void;
|
|
57
|
+
/**
|
|
58
|
+
* Initializes the routes feature store with the provided language service.
|
|
59
|
+
*
|
|
60
|
+
* @param {StopsFeatureStore} routesFeatureStore - The routes feature store to initialize.
|
|
61
|
+
* @param {LanguageService} languageService - The language service used for translations.
|
|
62
|
+
*/
|
|
30
63
|
export declare function initRoutesFeatureStore(routesFeatureStore: RoutesFeatureStore, languageService: LanguageService): void;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Initializes the routes feature store.
|
|
66
|
+
*
|
|
67
|
+
* @param {StopsFeatureStore} stepsFeatureStore - The steps feature store to initialize.
|
|
68
|
+
*/
|
|
69
|
+
export declare function initStepsFeatureStore(stepsFeatureStore: StepsFeatureStore): void;
|
|
70
|
+
/**
|
|
71
|
+
* Adds a stop to the stopsFeatureStore.
|
|
72
|
+
*
|
|
73
|
+
* @param {Stop} stop - The stop to be added.
|
|
74
|
+
* @param {StopsFeatureStore} stopsFeatureStore - The stopsFeatureStore to add the stop to.
|
|
75
|
+
* @param {string} projection - The projection of the stop coordinates.
|
|
76
|
+
* @param {LanguageService} languageService - The language service for translating stop text.
|
|
77
|
+
*/
|
|
78
|
+
export declare function addStopToStopsFeatureStore(stop: Stop, stopsFeatureStore: StopsFeatureStore, projection: string, languageService: LanguageService): void;
|
|
79
|
+
/**
|
|
80
|
+
* Adds a route to the routes feature store.
|
|
81
|
+
*
|
|
82
|
+
* @param {RoutesFeatureStore} routesFeatureStore - The routes feature store to add the route to.
|
|
83
|
+
* @param {Directions} directions - The directions object containing the geometry and other information.
|
|
84
|
+
* @param {string} projection - The projection of the geometry coordinates.
|
|
85
|
+
* @param {boolean} [active=false] - Indicates whether the direction is active or not. Default is false.
|
|
86
|
+
*/
|
|
87
|
+
export declare function addRouteToRoutesFeatureStore(routesFeatureStore: RoutesFeatureStore, directions: Directions, projection: string, active?: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
* Formats the given distance in meters to a human-readable string.
|
|
90
|
+
*
|
|
91
|
+
* @param {number} meters - The distance in meters to be formatted.
|
|
92
|
+
* @return {string | undefined} The formatted distance string.
|
|
93
|
+
*/
|
|
94
|
+
export declare function formatDistance(meters: number): string;
|
|
95
|
+
/**
|
|
96
|
+
* Formats the given duration in seconds to a human-readable string.
|
|
97
|
+
*
|
|
98
|
+
* @param {number} seconds - The duration in seconds to be formatted.
|
|
99
|
+
* @return {string} The formatted duration string.
|
|
100
|
+
*/
|
|
101
|
+
export declare function formatDuration(seconds: number): string;
|
|
102
|
+
export declare function formatStep(step: IgoStep, languageService: LanguageService, lastStep?: boolean): {
|
|
103
|
+
instruction: string;
|
|
104
|
+
iconName: string;
|
|
40
105
|
};
|
|
41
|
-
|
|
42
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Translates a maneuver modifier into a human-readable string using the provided language service.
|
|
108
|
+
*
|
|
109
|
+
* @param {ManeuverModifier} maneuverModifier - The maneuver modifier to be translated.
|
|
110
|
+
* @param {LanguageService} languageService - The language service used for translation.
|
|
111
|
+
* @return {string | undefined} The translated maneuver modifier string, or undefined if the modifier is falsy.
|
|
112
|
+
*/
|
|
113
|
+
export declare function translateManeuverModifier(maneuverModifier: ManeuverModifier, languageService: LanguageService): string;
|
|
114
|
+
/**
|
|
115
|
+
* Translates the given bearing value into a human-readable direction using the provided language service.
|
|
116
|
+
*
|
|
117
|
+
* @param {number} bearing - The bearing value to be translated.
|
|
118
|
+
* @param {LanguageService} languageService - The language service used for translation.
|
|
119
|
+
* @return {string} The translated direction corresponding to the given bearing value.
|
|
120
|
+
*/
|
|
121
|
+
export declare function translateManeuverBearing(bearing: number, languageService: LanguageService): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityStore } from '@igo2/common/entity';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { FeatureStore } from '../../feature/shared/store';
|
|
4
|
-
import {
|
|
4
|
+
import { FeatureWithDirections, FeatureWithStep, FeatureWithStop, Stop } from './directions.interface';
|
|
5
5
|
/**
|
|
6
6
|
* The class is a specialized version of an EntityStore that stores
|
|
7
7
|
* stops.
|
|
@@ -12,7 +12,7 @@ export declare class StopsStore extends EntityStore<Stop> {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class StopsFeatureStore extends FeatureStore<FeatureWithStop> {
|
|
14
14
|
}
|
|
15
|
-
export declare class RoutesFeatureStore extends FeatureStore<
|
|
15
|
+
export declare class RoutesFeatureStore extends FeatureStore<FeatureWithDirections> {
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class StepsFeatureStore extends FeatureStore<FeatureWithStep> {
|
|
18
18
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { Layer } from '../../layer
|
|
1
|
+
import { Layer } from '../../layer';
|
|
2
2
|
import { DownloadDataSourceOptions } from '../shared/download.interface';
|
|
3
3
|
import { DownloadService } from '../shared/download.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DownloadButtonComponent {
|
|
6
6
|
private downloadService;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private _layer;
|
|
10
|
-
get color(): string;
|
|
11
|
-
set color(value: string);
|
|
12
|
-
private _color;
|
|
7
|
+
layer: Layer;
|
|
8
|
+
color: string;
|
|
13
9
|
constructor(downloadService: DownloadService);
|
|
14
|
-
openDownload(
|
|
10
|
+
openDownload(): void;
|
|
15
11
|
get options(): DownloadDataSourceOptions;
|
|
16
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadButtonComponent, never>;
|
|
17
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadButtonComponent, "igo-download-button", never, { "layer": { "alias": "layer"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -190,9 +190,9 @@ export declare class DrawComponent implements OnInit, OnDestroy {
|
|
|
190
190
|
getFeatureOffsetX(): number;
|
|
191
191
|
getFeatureOffsetY(): number | "0";
|
|
192
192
|
get allFontStyles(): string[];
|
|
193
|
-
get allLayers(): import("@igo2/geo").
|
|
193
|
+
get allLayers(): import("@igo2/geo").AnyLayer[];
|
|
194
194
|
updateHeightTable(): void;
|
|
195
|
-
updateActiveLayer(): import("@igo2/geo").
|
|
195
|
+
updateActiveLayer(): import("@igo2/geo").AnyLayer;
|
|
196
196
|
/**
|
|
197
197
|
* Activate the correct control
|
|
198
198
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import OlOverlay from 'ol/Overlay';
|
|
2
|
+
import { Coordinate } from 'ol/coordinate';
|
|
2
3
|
import OlCircle from 'ol/geom/Circle';
|
|
3
4
|
import OlLineString from 'ol/geom/LineString';
|
|
4
5
|
import OlPoint from 'ol/geom/Point';
|
|
@@ -32,4 +33,4 @@ export declare function updateOlTooltipDrawAtCenter(olGeometry: OlLineString | O
|
|
|
32
33
|
* @returns OL overlay
|
|
33
34
|
*/
|
|
34
35
|
export declare function createOlTooltipDrawAtPoint(olPoint: OlPoint): OlOverlay;
|
|
35
|
-
export declare function DDtoDMS(value:
|
|
36
|
+
export declare function DDtoDMS(value: Coordinate, unit: CoordinatesUnit): string[] | undefined;
|
|
@@ -6,6 +6,7 @@ import { DirectionsSourceOptions } from '../directions/directions-sources/direct
|
|
|
6
6
|
import { DrawOptions } from '../draw/shared/draw.interface';
|
|
7
7
|
import { SpatialFilterOptions } from '../filter/shared/spatial-filter.interface';
|
|
8
8
|
import { ImportExportServiceOptions } from '../import-export/shared/import.interface';
|
|
9
|
+
import { LayerConfig } from '../layer';
|
|
9
10
|
import { HomeExtentButtonOptions } from '../map/home-extent-button/home-extent-button.interface';
|
|
10
11
|
import { GeolocationOptions } from '../map/shared/controllers/geolocation.interface';
|
|
11
12
|
import { Projection } from '../map/shared/projection.interfaces';
|
|
@@ -19,6 +20,7 @@ export interface EnvironmentOptions {
|
|
|
19
20
|
contextListFile?: string;
|
|
20
21
|
defaultContextUri?: string;
|
|
21
22
|
};
|
|
23
|
+
layer?: LayerConfig;
|
|
22
24
|
depot?: DepotOptions;
|
|
23
25
|
directionsSources?: DirectionsSourceOptions;
|
|
24
26
|
dom?: DOMOptions[];
|
|
@@ -7,4 +7,4 @@ import type { FeatureStore } from './store';
|
|
|
7
7
|
* @param store The store to bind the layer
|
|
8
8
|
* @param layer An optional VectorLayer
|
|
9
9
|
*/
|
|
10
|
-
export declare function tryBindStoreLayer(store: FeatureStore, layer?: VectorLayer):
|
|
10
|
+
export declare function tryBindStoreLayer(store: FeatureStore, layer?: VectorLayer): VectorLayer;
|
|
@@ -5,7 +5,7 @@ import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
|
5
5
|
import OlRenderFeature from 'ol/render/Feature';
|
|
6
6
|
import { GeoJsonGeometryTypes } from 'geojson';
|
|
7
7
|
import { SourceFieldsOptionsParams } from '../../datasource/shared/datasources';
|
|
8
|
-
import { VectorLayer } from '../../layer/shared/layers/vector-layer';
|
|
8
|
+
import type { VectorLayer } from '../../layer/shared/layers/vector-layer';
|
|
9
9
|
import type { IgoMap } from '../../map/shared/map';
|
|
10
10
|
import { FeatureMotion } from './feature.enums';
|
|
11
11
|
export interface Feature<P = Record<string, any>> {
|
|
@@ -3,7 +3,7 @@ import OlFeature from 'ol/Feature';
|
|
|
3
3
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
4
4
|
import { Document } from 'flexsearch';
|
|
5
5
|
import { FeatureDataSource } from '../../datasource/shared/datasources';
|
|
6
|
-
import { VectorLayer } from '../../layer/shared';
|
|
6
|
+
import { VectorLayer } from '../../layer/shared/layers/vector-layer';
|
|
7
7
|
import type { IgoMap } from '../../map/shared';
|
|
8
8
|
import { FeatureMotion } from './feature.enums';
|
|
9
9
|
import { Feature, FeatureStoreOptions } from './feature.interfaces';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Layer } from '../../layer
|
|
2
|
+
import { Layer } from '../../layer';
|
|
3
3
|
import { MapBase } from '../../map';
|
|
4
4
|
import { OgcFilterableDataSourceOptions } from '../shared/ogc-filter.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { Layer } from '../../layer
|
|
3
|
+
import { Layer } from '../../layer';
|
|
4
4
|
import { MapBase } from '../../map';
|
|
5
5
|
import { OgcFilterableDataSource } from '../shared/ogc-filter.interface';
|
|
6
6
|
import { OGCFilterService } from '../shared/ogc-filter.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyLayer } from '../../layer';
|
|
2
2
|
import { MapBase } from '../../map/shared/map.abstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class OgcFilterableListComponent {
|
|
5
|
-
layers:
|
|
5
|
+
layers: AnyLayer[];
|
|
6
6
|
map: MapBase;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<OgcFilterableListComponent, never>;
|
|
8
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<OgcFilterableListComponent, "igo-ogc-filterable-list", never, { "layers": { "alias": "layers"; "required": false; }; "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Layer } from '../../layer
|
|
2
|
+
import { AnyLayer, Layer } from '../../layer';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FilterableDataSourcePipe implements PipeTransform {
|
|
5
|
-
transform(value:
|
|
5
|
+
transform(value: AnyLayer[], arg: string): Layer[];
|
|
6
6
|
private isTimeFilterable;
|
|
7
7
|
private isOgcFilterable;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterableDataSourcePipe, never>;
|
|
@@ -10,7 +10,7 @@ import * as olStyle from 'ol/style';
|
|
|
10
10
|
import { BehaviorSubject } from 'rxjs';
|
|
11
11
|
import { GeometryType } from '../../../draw';
|
|
12
12
|
import { GeoJSONGeometry } from '../../../geometry/shared/geometry.interfaces';
|
|
13
|
-
import {
|
|
13
|
+
import { AnyLayer } from '../../../layer/shared';
|
|
14
14
|
import { IgoMap } from '../../../map/shared/map';
|
|
15
15
|
import { MeasureLengthUnit } from '../../../measure';
|
|
16
16
|
import { SpatialFilterQueryType, SpatialFilterType } from '../../shared/spatial-filter.enum';
|
|
@@ -42,8 +42,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
|
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
44
|
get measureUnits(): string[];
|
|
45
|
-
layers:
|
|
46
|
-
allLayers:
|
|
45
|
+
layers: AnyLayer[];
|
|
46
|
+
allLayers: AnyLayer[];
|
|
47
47
|
get thematicLength(): number;
|
|
48
48
|
set thematicLength(value: number);
|
|
49
49
|
private _thematicLength;
|
|
@@ -4,7 +4,7 @@ import { EntityStore } from '@igo2/common/entity';
|
|
|
4
4
|
import { MessageService } from '@igo2/core/message';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
import { Feature } from '../../../feature';
|
|
7
|
-
import {
|
|
7
|
+
import { AnyLayer } from '../../../layer';
|
|
8
8
|
import { MeasureLengthUnit } from '../../../measure/shared';
|
|
9
9
|
import { SpatialFilterQueryType } from './../../shared/spatial-filter.enum';
|
|
10
10
|
import { SpatialFilterService } from './../../shared/spatial-filter.service';
|
|
@@ -12,16 +12,14 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class SpatialFilterListComponent implements OnInit, OnDestroy {
|
|
13
13
|
private spatialFilterService;
|
|
14
14
|
private messageService;
|
|
15
|
-
|
|
16
|
-
set store(store: EntityStore<Feature>);
|
|
17
|
-
private _store;
|
|
15
|
+
store: EntityStore<Feature>;
|
|
18
16
|
get queryType(): SpatialFilterQueryType;
|
|
19
17
|
set queryType(queryType: SpatialFilterQueryType);
|
|
20
18
|
private _queryType;
|
|
21
19
|
get zone(): any;
|
|
22
20
|
set zone(value: any);
|
|
23
21
|
private _zone;
|
|
24
|
-
layers:
|
|
22
|
+
layers: AnyLayer[];
|
|
25
23
|
zoneWithBuffer: any;
|
|
26
24
|
selectedZone: any;
|
|
27
25
|
measureUnit: MeasureLengthUnit;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { EntityStore } from '@igo2/common/entity';
|
|
4
4
|
import { Feature } from '../../../feature';
|
|
5
|
-
import {
|
|
5
|
+
import { AnyLayer } from '../../../layer';
|
|
6
6
|
import { MeasureLengthUnit } from '../../../measure';
|
|
7
7
|
import { SpatialFilterQueryType, SpatialFilterType } from '../../shared/spatial-filter.enum';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -10,9 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Spatial Filter Type
|
|
11
11
|
*/
|
|
12
12
|
export declare class SpatialFilterTypeComponent implements OnInit {
|
|
13
|
-
|
|
14
|
-
set store(store: EntityStore<Feature>);
|
|
15
|
-
private _store;
|
|
13
|
+
store: EntityStore<Feature>;
|
|
16
14
|
queryType: string[];
|
|
17
15
|
selectedTypeIndex: UntypedFormControl;
|
|
18
16
|
/**
|
|
@@ -23,7 +21,7 @@ export declare class SpatialFilterTypeComponent implements OnInit {
|
|
|
23
21
|
activeDrawType: SpatialFilterType;
|
|
24
22
|
selectedQueryType: SpatialFilterQueryType;
|
|
25
23
|
zone: Feature;
|
|
26
|
-
layers:
|
|
24
|
+
layers: AnyLayer[];
|
|
27
25
|
type: SpatialFilterType;
|
|
28
26
|
eventType: EventEmitter<SpatialFilterType>;
|
|
29
27
|
eventQueryType: EventEmitter<SpatialFilterQueryType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TimeFilterableDataSourceOptions } from '../../datasource/shared/datasources/wms-datasource.interface';
|
|
3
|
-
import { Layer } from '../../layer
|
|
3
|
+
import { Layer } from '../../layer';
|
|
4
4
|
import { IgoMap } from '../../map/shared/map';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TimeFilterButtonComponent implements OnInit {
|