@igo2/geo 1.9.3 → 1.11.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 +3569 -1190
- package/bundles/igo2-geo.umd.js.map +1 -1
- package/esm2015/lib/catalog/catalog-browser/catalog-browser.component.js +2 -2
- package/esm2015/lib/catalog/catalog-library/add-catalog-dialog.component.js +72 -53
- package/esm2015/lib/catalog/catalog-library/catalog-library.component.js +7 -6
- package/esm2015/lib/catalog/shared/catalog.service.js +5 -2
- package/esm2015/lib/datasource/shared/capabilities.service.js +26 -12
- package/esm2015/lib/datasource/shared/datasources/arcgisrest-datasource.js +84 -14
- package/esm2015/lib/datasource/shared/datasources/datasource.interface.js +1 -1
- package/esm2015/lib/datasource/shared/datasources/imagearcgisrest-datasource.js +7 -10
- package/esm2015/lib/datasource/shared/datasources/mvt-datasource.js +2 -2
- package/esm2015/lib/datasource/shared/datasources/tilearcgisrest-datasource.js +7 -9
- package/esm2015/lib/datasource/shared/datasources/wfs-datasource.js +3 -1
- package/esm2015/lib/datasource/shared/datasources/wms-datasource.js +7 -1
- package/esm2015/lib/datasource/shared/datasources/wms-wfs.utils.js +5 -2
- package/esm2015/lib/directions/directions-buttons/directions-buttons.component.js +15 -8
- package/esm2015/lib/directions/directions-inputs/directions-inputs.component.js +12 -4
- package/esm2015/lib/directions/directions-sources/osrm-directions-source.js +3 -1
- package/esm2015/lib/directions/directions.component.js +66 -15
- package/esm2015/lib/directions/shared/directions.enum.js +6 -1
- package/esm2015/lib/directions/shared/directions.interface.js +1 -1
- package/esm2015/lib/directions/shared/directions.utils.js +4 -37
- package/esm2015/lib/draw/draw/draw.component.js +2 -1
- package/esm2015/lib/feature/shared/feature.utils.js +2 -1
- package/esm2015/lib/feature/shared/strategies/in-map-extent.js +17 -4
- package/esm2015/lib/filter/filter.module.js +7 -4
- package/esm2015/lib/filter/ogc-filter-button/ogc-filter-button.component.js +15 -1
- package/esm2015/lib/filter/ogc-filter-selection/ogc-filter-selection.component.js +31 -13
- package/esm2015/lib/filter/ogc-filter-time/ogc-filter-time.component.js +296 -161
- package/esm2015/lib/filter/shared/ogc-filter.interface.js +1 -1
- package/esm2015/lib/filter/shared/ogc-filter.js +8 -1
- package/esm2015/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.js +185 -95
- package/esm2015/lib/geometry/shared/controls/draw.js +7 -2
- package/esm2015/lib/geometry/shared/controls/modify.js +1 -1
- package/esm2015/lib/geometry/shared/controls/slice.js +1 -1
- package/esm2015/lib/import-export/import-export/import-export.component.js +226 -66
- package/esm2015/lib/import-export/shared/export.interface.js +1 -1
- package/esm2015/lib/layer/layer-legend/layer-legend.component.js +32 -26
- package/esm2015/lib/layer/layer.module.js +8 -5
- package/esm2015/lib/layer/shared/layer.service.js +20 -17
- package/esm2015/lib/layer/shared/layers/image-layer.js +9 -4
- package/esm2015/lib/layer/shared/layers/layer.interface.js +1 -1
- package/esm2015/lib/layer/shared/layers/layer.js +23 -5
- package/esm2015/lib/layer/shared/layers/tile-layer.js +23 -3
- package/esm2015/lib/layer/shared/layers/vector-layer.interface.js +1 -1
- package/esm2015/lib/layer/shared/layers/vector-layer.js +32 -14
- package/esm2015/lib/layer/shared/layers/vectortile-layer.interface.js +1 -1
- package/esm2015/lib/layer/shared/layers/vectortile-layer.js +13 -3
- 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/layer/utils/layerSync-watcher.js +10 -6
- package/esm2015/lib/map/home-extent-button/home-extent-button.component.js +69 -0
- package/esm2015/lib/map/home-extent-button/index.js +2 -0
- package/esm2015/lib/map/index.js +3 -1
- package/esm2015/lib/map/info-section/index.js +2 -0
- package/esm2015/lib/map/info-section/info-section.component.js +36 -0
- package/esm2015/lib/map/map-browser/map-browser.component.js +1 -1
- package/esm2015/lib/map/map-center/map-center.component.js +1 -1
- package/esm2015/lib/map/map.module.js +11 -1
- package/esm2015/lib/map/shared/hover-feature.directive.js +229 -78
- package/esm2015/lib/map/shared/map.js +2 -2
- package/esm2015/lib/map/shared/mapOffline.directive.js +17 -6
- package/esm2015/lib/measure/measurer/measurer.component.js +8 -2
- package/esm2015/lib/query/shared/query.directive.js +6 -3
- package/esm2015/lib/query/shared/query.interfaces.js +1 -1
- package/esm2015/lib/query/shared/query.service.js +57 -14
- package/esm2015/lib/query/shared/query.utils.js +19 -1
- package/esm2015/lib/search/search-bar/search-bar.component.js +4 -2
- package/esm2015/lib/search/search-results/search-results-add-button.component.js +7 -7
- package/esm2015/lib/search/shared/search-pointer-summary.directive.js +16 -5
- package/esm2015/lib/search/shared/search.interfaces.js +1 -1
- package/esm2015/lib/search/shared/sources/icherche.js +3 -2
- package/esm2015/lib/search/shared/sources/source.js +2 -2
- package/esm2015/lib/search/shared/sources/storedqueries.js +3 -7
- package/esm2015/lib/workspace/confirmation-popup/confirmation-popup.component.js +56 -0
- package/esm2015/lib/workspace/confirmation-popup/confirmation-popup.module.js +38 -0
- package/esm2015/lib/workspace/confirmation-popup/index.js +3 -0
- package/esm2015/lib/workspace/index.js +2 -1
- package/esm2015/lib/workspace/shared/edition-workspace.js +271 -0
- package/esm2015/lib/workspace/shared/edition-workspace.service.js +619 -0
- package/esm2015/lib/workspace/shared/feature-workspace.js +18 -1
- package/esm2015/lib/workspace/shared/feature-workspace.service.js +27 -6
- package/esm2015/lib/workspace/shared/index.js +3 -1
- package/esm2015/lib/workspace/shared/wfs-workspace.js +18 -1
- package/esm2015/lib/workspace/shared/wfs-workspace.service.js +27 -5
- package/esm2015/lib/workspace/shared/wms-workspace.service.js +59 -15
- package/esm2015/lib/workspace/shared/workspace.utils.js +1 -1
- package/esm2015/lib/workspace/workspace-selector/workspace-selector.directive.js +40 -10
- package/esm2015/lib/workspace/workspace-updator/workspace-updator.directive.js +22 -8
- package/esm2015/lib/workspace/workspace.module.js +19 -7
- package/fesm2015/igo2-geo.js +2946 -794
- package/fesm2015/igo2-geo.js.map +1 -1
- package/lib/catalog/catalog-library/add-catalog-dialog.component.d.ts +1 -1
- package/lib/datasource/shared/datasources/arcgisrest-datasource.d.ts +2 -0
- package/lib/datasource/shared/datasources/datasource.interface.d.ts +45 -0
- package/lib/datasource/shared/datasources/wfs-datasource.d.ts +1 -0
- package/lib/datasource/shared/datasources/wms-wfs.utils.d.ts +1 -1
- package/lib/directions/directions-buttons/directions-buttons.component.d.ts +2 -1
- package/lib/directions/directions-inputs/directions-inputs.component.d.ts +1 -0
- package/lib/directions/directions.component.d.ts +7 -3
- package/lib/directions/shared/directions.enum.d.ts +4 -0
- package/lib/directions/shared/directions.interface.d.ts +3 -1
- package/lib/directions/shared/directions.utils.d.ts +0 -4
- package/lib/filter/filter.module.d.ts +1 -1
- package/lib/filter/ogc-filter-time/ogc-filter-time.component.d.ts +6 -0
- package/lib/filter/shared/ogc-filter.interface.d.ts +1 -0
- package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +7 -2
- package/lib/geometry/shared/controls/draw.d.ts +8 -4
- package/lib/geometry/shared/controls/modify.d.ts +3 -4
- package/lib/geometry/shared/controls/slice.d.ts +3 -4
- 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 -1
- 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 +7 -0
- package/lib/layer/shared/layers/layer.interface.d.ts +8 -0
- package/lib/layer/shared/layers/tile-layer.d.ts +10 -1
- package/lib/layer/shared/layers/vector-layer.d.ts +2 -1
- 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/home-extent-button/home-extent-button.component.d.ts +20 -0
- package/lib/map/home-extent-button/index.d.ts +1 -0
- package/lib/map/index.d.ts +2 -0
- package/lib/map/info-section/index.d.ts +1 -0
- package/lib/map/info-section/info-section.component.d.ts +7 -0
- package/lib/map/map.module.d.ts +19 -17
- package/lib/map/shared/hover-feature.directive.d.ts +14 -5
- package/lib/map/shared/mapOffline.directive.d.ts +1 -0
- package/lib/query/shared/query.interfaces.d.ts +3 -0
- package/lib/query/shared/query.service.d.ts +9 -1
- package/lib/query/shared/query.utils.d.ts +12 -0
- package/lib/search/shared/search-pointer-summary.directive.d.ts +6 -0
- package/lib/search/shared/search.interfaces.d.ts +1 -0
- package/lib/workspace/confirmation-popup/confirmation-popup.component.d.ts +23 -0
- package/lib/workspace/confirmation-popup/confirmation-popup.module.d.ts +14 -0
- package/lib/workspace/confirmation-popup/index.d.ts +2 -0
- package/lib/workspace/index.d.ts +1 -0
- package/lib/workspace/shared/edition-workspace.d.ts +81 -0
- package/lib/workspace/shared/edition-workspace.service.d.ts +45 -0
- package/lib/workspace/shared/feature-workspace.d.ts +3 -0
- package/lib/workspace/shared/feature-workspace.service.d.ts +2 -0
- package/lib/workspace/shared/index.d.ts +2 -0
- package/lib/workspace/shared/wfs-workspace.d.ts +3 -0
- package/lib/workspace/shared/wfs-workspace.service.d.ts +2 -0
- package/lib/workspace/shared/wms-workspace.service.d.ts +2 -0
- package/lib/workspace/shared/workspace.utils.d.ts +3 -2
- package/lib/workspace/workspace-selector/workspace-selector.directive.d.ts +10 -3
- package/lib/workspace/workspace-updator/workspace-updator.directive.d.ts +3 -1
- package/lib/workspace/workspace.module.d.ts +8 -5
- package/package.json +4 -4
- package/style/geo.theming.scss +1 -0
|
@@ -36,7 +36,7 @@ export declare class AddCatalogDialogComponent implements OnInit, OnDestroy {
|
|
|
36
36
|
});
|
|
37
37
|
ngOnInit(): void;
|
|
38
38
|
ngOnDestroy(): void;
|
|
39
|
-
|
|
39
|
+
changeUrlOrTitle(catalog: Catalog): void;
|
|
40
40
|
computePredefinedCatalogList(): void;
|
|
41
41
|
addCatalog(addedCatalog: Catalog): void;
|
|
42
42
|
cancel(): void;
|
|
@@ -8,5 +8,7 @@ export declare class ArcGISRestDataSource extends DataSource {
|
|
|
8
8
|
options: ArcGISRestDataSourceOptions;
|
|
9
9
|
protected createOlSource(): olSourceVector<OlGeometry>;
|
|
10
10
|
getLegend(): Legend[];
|
|
11
|
+
htmlImgSrc(contentType: string, imageData: string): string;
|
|
12
|
+
createSVG(symbol: any): string;
|
|
11
13
|
onUnwatch(): void;
|
|
12
14
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import olSource from 'ol/source/Source';
|
|
2
2
|
import { DownloadOptions } from '../../../download/shared/download.interface';
|
|
3
3
|
import { OgcFilterOperatorType } from '../../../filter/shared/ogc-filter.enum';
|
|
4
|
+
import type { default as OlGeometryType } from 'ol/geom/GeometryType';
|
|
4
5
|
export interface DataSourceOptions {
|
|
5
6
|
type?: 'wms' | 'wfs' | 'vector' | 'wmts' | 'xyz' | 'osm' | 'tiledebug' | 'carto' | 'arcgisrest' | 'imagearcgisrest' | 'tilearcgisrest' | 'websocket' | 'mvt' | 'cluster';
|
|
6
7
|
optionsFromCapabilities?: boolean;
|
|
@@ -17,6 +18,8 @@ export interface DataSourceOptions {
|
|
|
17
18
|
stepDate?: string;
|
|
18
19
|
sourceFields?: SourceFieldsOptionsParams[];
|
|
19
20
|
download?: DownloadOptions;
|
|
21
|
+
edition?: EditionOptions;
|
|
22
|
+
relations?: RelationOptions[];
|
|
20
23
|
}
|
|
21
24
|
export interface SourceFieldsOptionsParams {
|
|
22
25
|
name: any;
|
|
@@ -24,6 +27,47 @@ export interface SourceFieldsOptionsParams {
|
|
|
24
27
|
values?: any;
|
|
25
28
|
excludeFromOgcFilters?: boolean;
|
|
26
29
|
allowedOperatorsType?: OgcFilterOperatorType;
|
|
30
|
+
step?: number;
|
|
31
|
+
relation?: RelationOptions;
|
|
32
|
+
type?: number | number[] | string | string[] | boolean | Date;
|
|
33
|
+
primary?: boolean;
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
validation?: SourceFieldsValidationParams;
|
|
36
|
+
multiple?: boolean;
|
|
37
|
+
tooltip?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface EditionOptions {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
baseUrl: string;
|
|
42
|
+
addUrl: string;
|
|
43
|
+
deleteUrl: string;
|
|
44
|
+
modifyUrl: string;
|
|
45
|
+
geomType: typeof OlGeometryType;
|
|
46
|
+
hasGeometry: boolean;
|
|
47
|
+
addWithDraw?: boolean;
|
|
48
|
+
messages?: any[];
|
|
49
|
+
addHeaders?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
modifyHeaders?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
};
|
|
55
|
+
modifyProtocol?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RelationOptions {
|
|
58
|
+
title: string;
|
|
59
|
+
name: string;
|
|
60
|
+
alias?: string;
|
|
61
|
+
icon?: string;
|
|
62
|
+
table: string;
|
|
63
|
+
parent?: string;
|
|
64
|
+
tooltip?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface SourceFieldsValidationParams {
|
|
67
|
+
mandatory?: boolean;
|
|
68
|
+
maxLength?: number;
|
|
69
|
+
minLength?: number;
|
|
70
|
+
readonly?: boolean;
|
|
27
71
|
}
|
|
28
72
|
export interface Legend {
|
|
29
73
|
collapsed?: boolean;
|
|
@@ -35,6 +79,7 @@ export interface Legend {
|
|
|
35
79
|
};
|
|
36
80
|
title?: string;
|
|
37
81
|
currentStyle?: string;
|
|
82
|
+
imgGraphValue?: string;
|
|
38
83
|
}
|
|
39
84
|
export interface TileGridOptions {
|
|
40
85
|
extent: [number, number, number, number];
|
|
@@ -11,6 +11,7 @@ export declare class WFSDataSource extends DataSource {
|
|
|
11
11
|
protected wfsService: WFSService;
|
|
12
12
|
private authInterceptor?;
|
|
13
13
|
ol: olSourceVector<OlGeometry>;
|
|
14
|
+
mostRecentIdCallOGCFilter: number;
|
|
14
15
|
set ogcFilters(value: OgcFiltersOptions);
|
|
15
16
|
get ogcFilters(): OgcFiltersOptions;
|
|
16
17
|
readonly ogcFilters$: BehaviorSubject<OgcFiltersOptions>;
|
|
@@ -16,7 +16,7 @@ export declare const jsonRegex: RegExp;
|
|
|
16
16
|
* @param ogcFilters OgcFiltersOptions
|
|
17
17
|
* @returns A string representing the datasource options, based on filter and views
|
|
18
18
|
*/
|
|
19
|
-
export declare function buildUrl(options: WFSDataSourceOptions, extent: any, proj: olProjection, ogcFilters: OgcFiltersOptions): string;
|
|
19
|
+
export declare function buildUrl(options: WFSDataSourceOptions, extent: any, proj: olProjection, ogcFilters: OgcFiltersOptions, randomParam?: boolean): string;
|
|
20
20
|
/**
|
|
21
21
|
* This method build/standardize WFS call query params based on the layer property.
|
|
22
22
|
* @param wfsDataSourceOptions WFSDataSourceOptions The common wfs datasource options interface
|
|
@@ -8,6 +8,7 @@ export declare class DirectionsButtonsComponent {
|
|
|
8
8
|
private messageService;
|
|
9
9
|
private route;
|
|
10
10
|
get activeRoute(): FeatureWithDirection;
|
|
11
|
+
contextUri: string;
|
|
11
12
|
zoomToActiveRoute$: Subject<void>;
|
|
12
13
|
stopsStore: StopsStore;
|
|
13
14
|
routesFeatureStore: RoutesFeatureStore;
|
|
@@ -25,5 +26,5 @@ export declare class DirectionsButtonsComponent {
|
|
|
25
26
|
};
|
|
26
27
|
private getUrl;
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DirectionsButtonsComponent, [null, null, { optional: true; }]>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DirectionsButtonsComponent, "igo-directions-buttons", never, { "zoomToActiveRoute$": "zoomToActiveRoute$"; "stopsStore": "stopsStore"; "routesFeatureStore": "routesFeatureStore"; }, {}, never, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DirectionsButtonsComponent, "igo-directions-buttons", never, { "contextUri": "contextUri"; "zoomToActiveRoute$": "zoomToActiveRoute$"; "stopsStore": "stopsStore"; "routesFeatureStore": "routesFeatureStore"; }, {}, never, never>;
|
|
29
30
|
}
|
|
@@ -23,6 +23,7 @@ export declare class DirectionsInputsComponent implements OnDestroy {
|
|
|
23
23
|
ngOnDestroy(): void;
|
|
24
24
|
onStopEnter(stop: Stop): void;
|
|
25
25
|
onStopLeave(): void;
|
|
26
|
+
getOptionText(option: any): any;
|
|
26
27
|
chooseProposal(event: {
|
|
27
28
|
source: MatAutocomplete;
|
|
28
29
|
option: MatOption;
|
|
@@ -5,12 +5,14 @@ import { Subject } from 'rxjs';
|
|
|
5
5
|
import { DirectionsService } from './shared/directions.service';
|
|
6
6
|
import { SearchService } from '../search/shared/search.service';
|
|
7
7
|
import { RoutesFeatureStore, StepFeatureStore, StopsFeatureStore, StopsStore } from './shared/store';
|
|
8
|
+
import { QueryService } from '../query/shared/query.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class DirectionsComponent implements OnInit, OnDestroy {
|
|
10
11
|
private cdRef;
|
|
11
12
|
private languageService;
|
|
12
13
|
private directionsService;
|
|
13
14
|
private searchService;
|
|
15
|
+
private queryService;
|
|
14
16
|
private watcher;
|
|
15
17
|
projection: string;
|
|
16
18
|
private zoomRoute$$;
|
|
@@ -23,7 +25,8 @@ export declare class DirectionsComponent implements OnInit, OnDestroy {
|
|
|
23
25
|
private focusOnStop;
|
|
24
26
|
private isTranslating;
|
|
25
27
|
previousStops: Stop[];
|
|
26
|
-
private
|
|
28
|
+
private searchs$$;
|
|
29
|
+
contextUri: string;
|
|
27
30
|
stopsStore: StopsStore;
|
|
28
31
|
stopsFeatureStore: StopsFeatureStore;
|
|
29
32
|
routesFeatureStore: RoutesFeatureStore;
|
|
@@ -32,7 +35,7 @@ export declare class DirectionsComponent implements OnInit, OnDestroy {
|
|
|
32
35
|
length: number;
|
|
33
36
|
coordRoundedDecimals: number;
|
|
34
37
|
zoomToActiveRoute$: Subject<void>;
|
|
35
|
-
constructor(cdRef: ChangeDetectorRef, languageService: LanguageService, directionsService: DirectionsService, searchService: SearchService);
|
|
38
|
+
constructor(cdRef: ChangeDetectorRef, languageService: LanguageService, directionsService: DirectionsService, searchService: SearchService, queryService: QueryService);
|
|
36
39
|
ngOnInit(): void;
|
|
37
40
|
ngOnDestroy(): void;
|
|
38
41
|
private freezeStores;
|
|
@@ -43,10 +46,11 @@ export declare class DirectionsComponent implements OnInit, OnDestroy {
|
|
|
43
46
|
private executeStopTranslation;
|
|
44
47
|
private monitorEmptyEntityStore;
|
|
45
48
|
private monitorEntityStoreChange;
|
|
49
|
+
cancelSearch(): void;
|
|
46
50
|
private handleStopDiff;
|
|
47
51
|
private handleStopsFeature;
|
|
48
52
|
private getRoutes;
|
|
49
53
|
addStopOverlay(stop: Stop): void;
|
|
50
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DirectionsComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DirectionsComponent, "igo-directions", never, { "stopsStore": "stopsStore"; "stopsFeatureStore": "stopsFeatureStore"; "routesFeatureStore": "routesFeatureStore"; "stepFeatureStore": "stepFeatureStore"; "debounce": "debounce"; "length": "length"; "coordRoundedDecimals": "coordRoundedDecimals"; "zoomToActiveRoute$": "zoomToActiveRoute$"; }, {}, never, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DirectionsComponent, "igo-directions", never, { "contextUri": "contextUri"; "stopsStore": "stopsStore"; "stopsFeatureStore": "stopsFeatureStore"; "routesFeatureStore": "routesFeatureStore"; "stepFeatureStore": "stepFeatureStore"; "debounce": "debounce"; "length": "length"; "coordRoundedDecimals": "coordRoundedDecimals"; "zoomToActiveRoute$": "zoomToActiveRoute$"; }, {}, never, never>;
|
|
52
56
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GeoJsonGeometryTypes } from 'geojson';
|
|
2
|
-
import { DirectionRelativePositionType, DirectionsFormat, DirectionType, SourceDirectionsType } from './directions.enum';
|
|
2
|
+
import { DirectionRelativePositionType, DirectionsFormat, DirectionType, ProposalType, SourceDirectionsType } from './directions.enum';
|
|
3
3
|
import { Feature } from '../../feature/shared/feature.interfaces';
|
|
4
4
|
import { SearchSource } from '../../search/shared/sources/source';
|
|
5
5
|
export interface DirectionOptions {
|
|
@@ -7,6 +7,7 @@ export interface DirectionOptions {
|
|
|
7
7
|
steps?: boolean;
|
|
8
8
|
geometries?: string;
|
|
9
9
|
alternatives?: boolean;
|
|
10
|
+
continue_straight?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface FeatureWithStop extends Feature<FeatureWithStopProperties> {
|
|
12
13
|
}
|
|
@@ -46,6 +47,7 @@ export interface Stop {
|
|
|
46
47
|
stopCoordinates?: [number, number];
|
|
47
48
|
}
|
|
48
49
|
export interface SourceProposal {
|
|
50
|
+
type: ProposalType;
|
|
49
51
|
source: SearchSource;
|
|
50
52
|
results: {
|
|
51
53
|
[key: string]: any;
|
|
@@ -4,9 +4,6 @@ import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
|
4
4
|
import { Direction, Stop } from './directions.interface';
|
|
5
5
|
import { LanguageService } from '@igo2/core';
|
|
6
6
|
import { DirectionRelativePositionType } from './directions.enum';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { SearchService } from '../../search/shared/search.service';
|
|
9
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
10
7
|
import { RoutesFeatureStore, StepFeatureStore, StopsFeatureStore, StopsStore } from './store';
|
|
11
8
|
/**
|
|
12
9
|
* Function that updat the sort of the list base on the provided field.
|
|
@@ -35,7 +32,6 @@ export declare function initStepFeatureStore(stepFeatureStore: StepFeatureStore)
|
|
|
35
32
|
export declare function addStopToStopsFeatureStore(stop: Stop, stopsStore: StopsStore, stopsFeatureStore: StopsFeatureStore, projection: string, languageService: LanguageService): void;
|
|
36
33
|
export declare function addDirectionToRoutesFeatureStore(routesFeatureStore: RoutesFeatureStore, direction: Direction, projection: string, active?: boolean, moveToExtent?: boolean): void;
|
|
37
34
|
export declare function formatDistance(distance: number): string;
|
|
38
|
-
export declare function computeSearchProposal(stop: Stop, searchService: SearchService, subscription$$: Subscription, cdRef: ChangeDetectorRef): void;
|
|
39
35
|
export declare function formatDuration(duration: number): string;
|
|
40
36
|
export declare function formatInstruction(type: any, modifier: any, route: any, direction: any, stepPosition: any, exit: any, languageService: LanguageService, lastStep?: boolean): {
|
|
41
37
|
instruction: any;
|
|
@@ -48,6 +48,6 @@ import * as i45 from "@angular/material/badge";
|
|
|
48
48
|
export declare class IgoFilterModule {
|
|
49
49
|
static forRoot(): ModuleWithProviders<IgoFilterModule>;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFilterModule, never>;
|
|
51
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFilterModule, [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.MatButtonModule, typeof i24.MatTabsModule, typeof i25.MatRadioModule, typeof i26.MatMenuModule, typeof i27.MatTableModule, typeof i28.MatTreeModule, typeof i29.MatButtonToggleModule, typeof i30.MatCheckboxModule, typeof i31.MatSliderModule, typeof i32.MatSlideToggleModule, typeof i33.MatFormFieldModule, typeof i34.MatInputModule, typeof i35.MatOptionModule, typeof i36.MatSelectModule, typeof i37.MatListModule, typeof i38.MatTooltipModule, typeof i39.MatDatepickerModule, typeof i35.MatNativeDateModule, typeof i40.MatDatetimepickerModule, typeof i40.MatNativeDatetimeModule, typeof i41.IgoLanguageModule, typeof i42.IgoLayerModule, typeof i43.IgoCollapsibleModule, typeof i43.IgoListModule, typeof i43.IgoKeyValueModule, typeof i44.IgoGeometryModule, typeof i45.MatBadgeModule], [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent]>;
|
|
51
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFilterModule, [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.MatButtonModule, typeof i24.MatTabsModule, typeof i25.MatRadioModule, typeof i26.MatMenuModule, typeof i27.MatTableModule, typeof i28.MatTreeModule, typeof i29.MatButtonToggleModule, typeof i30.MatCheckboxModule, typeof i31.MatSliderModule, typeof i32.MatSlideToggleModule, typeof i33.MatFormFieldModule, typeof i34.MatInputModule, typeof i35.MatOptionModule, typeof i36.MatSelectModule, typeof i37.MatListModule, typeof i38.MatTooltipModule, typeof i39.MatDatepickerModule, typeof i35.MatNativeDateModule, typeof i40.MatDatetimepickerModule, typeof i40.MatNativeDatetimeModule, typeof i41.IgoLanguageModule, typeof i42.IgoLayerModule, typeof i43.IgoCollapsibleModule, typeof i43.IgoListModule, typeof i43.IgoEntityModule, typeof i43.IgoKeyValueModule, typeof i44.IgoGeometryModule, typeof i45.MatBadgeModule], [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent]>;
|
|
52
52
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFilterModule>;
|
|
53
53
|
}
|
|
@@ -34,6 +34,8 @@ export declare class OgcFilterTimeComponent implements OnInit {
|
|
|
34
34
|
onlyYearBegin: number;
|
|
35
35
|
onlyYearEnd: number;
|
|
36
36
|
calendarTypeYear: boolean;
|
|
37
|
+
resetIcon: string;
|
|
38
|
+
filterStateDisable: boolean;
|
|
37
39
|
endDatepickerTime: ElementRef;
|
|
38
40
|
beginDatepickerTime: ElementRef;
|
|
39
41
|
beginTime: HTMLInputElement;
|
|
@@ -73,6 +75,10 @@ export declare class OgcFilterTimeComponent implements OnInit {
|
|
|
73
75
|
handleMax(): any;
|
|
74
76
|
changePropertyByPass(event: any): void;
|
|
75
77
|
modeChange(event: any): void;
|
|
78
|
+
setFilterStateDisable(): void;
|
|
79
|
+
getDateFromStringWithoutTime(stringDate: string): Date;
|
|
80
|
+
resetFilter(): void;
|
|
81
|
+
toggleFilterState(): void;
|
|
76
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<OgcFilterTimeComponent, never>;
|
|
77
83
|
static ɵcmp: i0.ɵɵComponentDeclaration<OgcFilterTimeComponent, "igo-ogc-filter-time", never, { "datasource": "datasource"; "currentFilter": "currentFilter"; }, { "changeProperty": "changeProperty"; }, never, never>;
|
|
78
84
|
}
|
|
@@ -127,6 +127,7 @@ export interface OgcFilterDuringOptions extends OgcFilterAttributeOptions {
|
|
|
127
127
|
sliderOptions?: SliderOptionsInterface;
|
|
128
128
|
displayFormat?: string;
|
|
129
129
|
calendarModeYear?: boolean;
|
|
130
|
+
title?: string;
|
|
130
131
|
}
|
|
131
132
|
export interface OgcFilterIsBetweenOptions extends OgcFilterAttributeOptions {
|
|
132
133
|
lowerBoundary: number;
|
|
@@ -12,7 +12,7 @@ import * as olStyle from 'ol/style';
|
|
|
12
12
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
13
13
|
import { SpatialFilterService } from '../../shared/spatial-filter.service';
|
|
14
14
|
import { MeasureLengthUnit } from '../../../measure';
|
|
15
|
-
import { EntityStore } from '@igo2/common';
|
|
15
|
+
import { EntityStore, EntityTableTemplate } from '@igo2/common';
|
|
16
16
|
import { Layer } from '../../../layer/shared';
|
|
17
17
|
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
18
18
|
import { SpatialFilterThematic } from './../../shared/spatial-filter.interface';
|
|
@@ -63,6 +63,7 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
|
|
|
63
63
|
clearSearchEvent: EventEmitter<any>;
|
|
64
64
|
export: EventEmitter<any>;
|
|
65
65
|
openWorkspace: EventEmitter<any>;
|
|
66
|
+
entityChange: EventEmitter<any>;
|
|
66
67
|
itemType: SpatialFilterItemType[];
|
|
67
68
|
selectedItemType: SpatialFilterItemType;
|
|
68
69
|
selectedSourceAddress: any;
|
|
@@ -101,6 +102,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
|
|
|
101
102
|
bufferFormControl: FormControl;
|
|
102
103
|
measureUnit: MeasureLengthUnit;
|
|
103
104
|
zoneWithBuffer: any;
|
|
105
|
+
listIsVisible: boolean;
|
|
106
|
+
tableTemplate: EntityTableTemplate;
|
|
104
107
|
constructor(cdRef: ChangeDetectorRef, spatialFilterService: SpatialFilterService, messageService: MessageService, languageService: LanguageService);
|
|
105
108
|
ngOnInit(): void;
|
|
106
109
|
/**
|
|
@@ -155,6 +158,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
|
|
|
155
158
|
* Manage radius value at user change
|
|
156
159
|
*/
|
|
157
160
|
getRadius(): void;
|
|
161
|
+
toggleVisibleList(): void;
|
|
162
|
+
private createTableTemplate;
|
|
158
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpatialFilterItemComponent, never>;
|
|
159
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpatialFilterItemComponent, "igo-spatial-filter-item", never, { "map": "map"; "type": "type"; "queryType": "queryType"; "zone": "zone"; "loading": "loading"; "store": "store"; "layers": "layers"; "allLayers": "allLayers"; "thematicLength": "thematicLength"; }, { "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"; }, never, never>;
|
|
164
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpatialFilterItemComponent, "igo-spatial-filter-item", never, { "map": "map"; "type": "type"; "queryType": "queryType"; "zone": "zone"; "loading": "loading"; "store": "store"; "layers": "layers"; "allLayers": "allLayers"; "thematicLength": "thematicLength"; }, { "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"; }, never, never>;
|
|
160
165
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import OlMap from 'ol/Map';
|
|
2
|
-
import
|
|
3
|
-
import * as OlStyle from 'ol/style';
|
|
2
|
+
import { StyleLike as OlStyleLike } from 'ol/style/Style';
|
|
4
3
|
import type { default as OlGeometryType } from 'ol/geom/GeometryType';
|
|
5
4
|
import OlVectorSource from 'ol/source/Vector';
|
|
6
5
|
import OlVectorLayer from 'ol/layer/Vector';
|
|
@@ -10,8 +9,8 @@ export interface DrawControlOptions {
|
|
|
10
9
|
geometryType: typeof OlGeometryType | string;
|
|
11
10
|
drawingLayerSource?: OlVectorSource<OlGeometry>;
|
|
12
11
|
drawingLayer?: OlVectorLayer<OlVectorSource<OlGeometry>>;
|
|
13
|
-
drawingLayerStyle?:
|
|
14
|
-
interactionStyle?:
|
|
12
|
+
drawingLayerStyle?: OlStyleLike;
|
|
13
|
+
interactionStyle?: OlStyleLike;
|
|
15
14
|
maxPoints?: number;
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
@@ -39,6 +38,10 @@ export declare class DrawControl {
|
|
|
39
38
|
* Draw select observable (modify drawn features)
|
|
40
39
|
*/
|
|
41
40
|
select$: Subject<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Draw abort observable (abort drawn features)
|
|
43
|
+
*/
|
|
44
|
+
abort$: Subject<any>;
|
|
42
45
|
/**
|
|
43
46
|
* Freehand mode observable (defaults to false)
|
|
44
47
|
*/
|
|
@@ -52,6 +55,7 @@ export declare class DrawControl {
|
|
|
52
55
|
private olModifyInteraction;
|
|
53
56
|
private onDrawStartKey;
|
|
54
57
|
private onDrawEndKey;
|
|
58
|
+
private onDrawAbortKey;
|
|
55
59
|
private onDrawKey;
|
|
56
60
|
private mousePosition;
|
|
57
61
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import OlMap from 'ol/Map';
|
|
2
|
-
import
|
|
3
|
-
import * as OlStyle from 'ol/style';
|
|
2
|
+
import { StyleLike as OlStyleLike } from 'ol/style/Style';
|
|
4
3
|
import OlVectorSource from 'ol/source/Vector';
|
|
5
4
|
import OlVectorLayer from 'ol/layer/Vector';
|
|
6
5
|
import OlModify from 'ol/interaction/Modify';
|
|
@@ -9,8 +8,8 @@ import { Subject } from 'rxjs';
|
|
|
9
8
|
export interface ModifyControlOptions {
|
|
10
9
|
source?: OlVectorSource<any>;
|
|
11
10
|
layer?: OlVectorLayer<any>;
|
|
12
|
-
layerStyle?:
|
|
13
|
-
drawStyle?:
|
|
11
|
+
layerStyle?: OlStyleLike;
|
|
12
|
+
drawStyle?: OlStyleLike;
|
|
14
13
|
modify?: boolean;
|
|
15
14
|
translate?: boolean;
|
|
16
15
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import OlMap from 'ol/Map';
|
|
2
|
-
import
|
|
3
|
-
import OlStyle from 'ol/style/Style';
|
|
2
|
+
import { StyleLike as OlStyleLike } from 'ol/style/Style';
|
|
4
3
|
import OlVectorSource from 'ol/source/Vector';
|
|
5
4
|
import OlVectorLayer from 'ol/layer/Vector';
|
|
6
5
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
@@ -9,8 +8,8 @@ import { GeometrySliceError } from '../geometry.errors';
|
|
|
9
8
|
export interface SliceControlOptions {
|
|
10
9
|
source?: OlVectorSource<OlGeometry>;
|
|
11
10
|
layer?: OlVectorLayer<OlVectorSource<OlGeometry>>;
|
|
12
|
-
layerStyle?:
|
|
13
|
-
drawStyle?:
|
|
11
|
+
layerStyle?: OlStyleLike;
|
|
12
|
+
drawStyle?: OlStyleLike;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Control to modify geometries
|
|
@@ -82,6 +82,8 @@ export declare class ImportExportComponent implements OnDestroy, OnInit {
|
|
|
82
82
|
importFiles(files: File[]): void;
|
|
83
83
|
handlePopup(preCheck?: boolean): boolean;
|
|
84
84
|
handleExportFormSubmit(data: ExportOptions): void;
|
|
85
|
+
private createTitleEmptyRows;
|
|
86
|
+
private circleToPoint;
|
|
85
87
|
private buildForm;
|
|
86
88
|
private onFileImportSuccess;
|
|
87
89
|
private onFileImportError;
|
|
@@ -58,7 +58,6 @@ export declare class LayerLegendComponent implements OnInit, OnDestroy {
|
|
|
58
58
|
/**
|
|
59
59
|
* activeLegend
|
|
60
60
|
*/
|
|
61
|
-
legendGraphic: string;
|
|
62
61
|
constructor(capabilitiesService: CapabilitiesService, languageService: LanguageService, http: HttpClient, cdRef: ChangeDetectorRef);
|
|
63
62
|
/**
|
|
64
63
|
* On init, subscribe to the map's resolution and update the legend accordingly
|
|
@@ -29,6 +29,6 @@ import * as i26 from "@igo2/common";
|
|
|
29
29
|
export declare class IgoLayerModule {
|
|
30
30
|
static forRoot(): ModuleWithProviders<IgoLayerModule>;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoLayerModule, never>;
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLayerModule, [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent], [typeof i10.MatInputModule, typeof i11.MatFormFieldModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.MatDividerModule, typeof i15.MatMenuModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatSlideToggleModule, typeof i19.MatSelectModule, typeof i20.MatTooltipModule, typeof i21.MatListModule, typeof i22.MatSliderModule, typeof i23.MatBadgeModule, typeof i24.MatCheckboxModule, typeof i25.IgoLanguageModule, typeof i26.IgoListModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoImageModule, typeof i26.IgoPanelModule, typeof i26.IgoMatBadgeIconModule], [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent]>;
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLayerModule, [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent], [typeof i10.MatInputModule, typeof i11.MatFormFieldModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.MatDividerModule, typeof i15.MatMenuModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatSlideToggleModule, typeof i19.MatSelectModule, typeof i20.MatTooltipModule, typeof i21.MatListModule, typeof i22.MatSliderModule, typeof i23.MatBadgeModule, typeof i24.MatCheckboxModule, typeof i25.IgoLanguageModule, typeof i26.IgoListModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoImageModule, typeof i26.IgoPanelModule, typeof i26.IgoMatBadgeIconModule, typeof i26.IgoCustomHtmlModule], [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent]>;
|
|
33
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoLayerModule>;
|
|
34
34
|
}
|
|
@@ -15,7 +15,7 @@ export declare class LayerService {
|
|
|
15
15
|
private authInterceptor;
|
|
16
16
|
constructor(http: HttpClient, styleService: StyleService, dataSourceService: DataSourceService, messageService: MessageService, languageService: LanguageService, authInterceptor: AuthInterceptor);
|
|
17
17
|
createLayer(layerOptions: AnyLayerOptions): Layer;
|
|
18
|
-
createAsyncLayer(
|
|
18
|
+
createAsyncLayer(_layerOptions: AnyLayerOptions, detailedContextUri?: string): Observable<Layer>;
|
|
19
19
|
private createImageLayer;
|
|
20
20
|
private createTileLayer;
|
|
21
21
|
private createVectorLayer;
|
|
@@ -23,6 +23,12 @@ export declare abstract class Layer {
|
|
|
23
23
|
hasBeenVisible$: BehaviorSubject<boolean>;
|
|
24
24
|
private hasBeenVisible$$;
|
|
25
25
|
private resolution$$;
|
|
26
|
+
/**
|
|
27
|
+
* Define if a layer is generated by code OR defined by layer/context user layer.
|
|
28
|
+
* Useful for filtering layers list in mapOffline.directive or in the sharemap...
|
|
29
|
+
* return false by default.
|
|
30
|
+
*/
|
|
31
|
+
get isIgoInternalLayer(): boolean;
|
|
26
32
|
get id(): string;
|
|
27
33
|
get alias(): string;
|
|
28
34
|
get title(): string;
|
|
@@ -50,6 +56,7 @@ export declare abstract class Layer {
|
|
|
50
56
|
constructor(options: LayerOptions, messageService?: MessageService, authInterceptor?: AuthInterceptor);
|
|
51
57
|
protected abstract createOlLayer(): olLayer<olSource>;
|
|
52
58
|
setMap(igoMap: IgoMap | undefined): void;
|
|
59
|
+
private showMessage;
|
|
53
60
|
private observeResolution;
|
|
54
61
|
private unobserveResolution;
|
|
55
62
|
private updateInResolutionsRange;
|
|
@@ -5,6 +5,7 @@ import { DataSource } from '../../../datasource/shared/datasources/datasource';
|
|
|
5
5
|
import { AnyDataSourceOptions } from '../../../datasource/shared/datasources/any-datasource.interface';
|
|
6
6
|
import { MapExtent, MapViewOptions } from '../../../map/shared/map.interface';
|
|
7
7
|
export interface LayerOptions {
|
|
8
|
+
isIgoInternalLayer?: boolean;
|
|
8
9
|
source?: DataSource;
|
|
9
10
|
sourceOptions?: AnyDataSourceOptions;
|
|
10
11
|
title?: string;
|
|
@@ -39,6 +40,13 @@ export interface GeoWorkspaceOptions {
|
|
|
39
40
|
minResolution?: number;
|
|
40
41
|
maxResolution?: number;
|
|
41
42
|
enabled?: boolean;
|
|
43
|
+
queryOptions?: GeoWorkspaceQueryOptions;
|
|
44
|
+
pageSize?: number;
|
|
45
|
+
pageSizeOptions?: number[];
|
|
46
|
+
}
|
|
47
|
+
export interface GeoWorkspaceQueryOptions {
|
|
48
|
+
mapQueryOnOpenTab?: boolean;
|
|
49
|
+
tabQuery?: boolean;
|
|
42
50
|
}
|
|
43
51
|
export interface LayersLink {
|
|
44
52
|
linkId: string;
|
|
@@ -10,13 +10,22 @@ import { TileDebugDataSource } from '../../../datasource/shared/datasources/tile
|
|
|
10
10
|
import { Layer } from './layer';
|
|
11
11
|
import { TileLayerOptions } from './tile-layer.interface';
|
|
12
12
|
import { MessageService } from '@igo2/core';
|
|
13
|
+
import { AuthInterceptor } from '@igo2/auth';
|
|
13
14
|
export declare class TileLayer extends Layer {
|
|
14
15
|
messageService?: MessageService;
|
|
16
|
+
authInterceptor?: AuthInterceptor;
|
|
15
17
|
dataSource: OSMDataSource | WMTSDataSource | XYZDataSource | TileDebugDataSource | CartoDataSource | TileArcGISRestDataSource;
|
|
16
18
|
options: TileLayerOptions;
|
|
17
19
|
ol: olLayerTile<olSourceTile>;
|
|
18
20
|
private watcher;
|
|
19
|
-
constructor(options: TileLayerOptions, messageService?: MessageService);
|
|
21
|
+
constructor(options: TileLayerOptions, messageService?: MessageService, authInterceptor?: AuthInterceptor);
|
|
20
22
|
protected createOlLayer(): olLayerTile<olSourceTile>;
|
|
23
|
+
/**
|
|
24
|
+
* Custom loader for tile layer.
|
|
25
|
+
* @internal
|
|
26
|
+
* @param tile the current tile
|
|
27
|
+
* @param url the url string or function to retrieve the data
|
|
28
|
+
*/
|
|
29
|
+
customLoader(tile: any, url: string, interceptor: AuthInterceptor): void;
|
|
21
30
|
setMap(map: IgoMap | undefined): void;
|
|
22
31
|
}
|
|
@@ -42,8 +42,9 @@ export declare class VectorLayer extends Layer {
|
|
|
42
42
|
* @param proj the projection to retrieve the data
|
|
43
43
|
* @param success success callback
|
|
44
44
|
* @param failure failure callback
|
|
45
|
+
* @param randomParam random parameter to ensure cache is not causing problems in retrieving new data
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
customWFSLoader(vectorSource: any, options: any, interceptor: any, extent: any, resolution: any, proj: any, success: any, failure: any, randomParam?: boolean): void;
|
|
47
48
|
/**
|
|
48
49
|
* Custom loader to get feature from a WFS datasource
|
|
49
50
|
* @internal
|
|
@@ -27,6 +27,7 @@ export interface VectorLayerOptions extends LayerOptions {
|
|
|
27
27
|
ol?: olLayerVector<olSourceVector<OlGeometry>>;
|
|
28
28
|
animation?: VectorAnimation;
|
|
29
29
|
styleByAttribute?: StyleByAttribute;
|
|
30
|
+
hoverStyle?: StyleByAttribute;
|
|
30
31
|
clusterBaseStyle?: {
|
|
31
32
|
[key: string]: any;
|
|
32
33
|
} | olStyle | olStyle[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
1
2
|
import * as olstyle from 'ol/style';
|
|
3
|
+
import OlFeature from 'ol/Feature';
|
|
2
4
|
import { StyleByAttribute } from './vector-style.interface';
|
|
3
5
|
import { ClusterParam } from './clusterParam';
|
|
6
|
+
import RenderFeature from 'ol/render/Feature';
|
|
4
7
|
import * as i0 from "@angular/core";
|
|
5
8
|
export declare class StyleService {
|
|
6
9
|
style: olstyle.Style;
|
|
@@ -10,7 +13,7 @@ export declare class StyleService {
|
|
|
10
13
|
private parseStyle;
|
|
11
14
|
private getOlKey;
|
|
12
15
|
private getOlCls;
|
|
13
|
-
createStyleByAttribute(feature:
|
|
16
|
+
createStyleByAttribute(feature: RenderFeature | OlFeature<OlGeometry>, styleByAttribute: StyleByAttribute): any;
|
|
14
17
|
createClusterStyle(feature: any, clusterParam: ClusterParam, layerStyle: any): any;
|
|
15
18
|
getLabel(feature: any, labelMatch: any): string;
|
|
16
19
|
private guessTypeFeature;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import olStyle from 'ol/style/Style';
|
|
2
1
|
export interface StyleByAttribute {
|
|
2
|
+
anchor?: Array<[number, number]>;
|
|
3
3
|
type?: string;
|
|
4
4
|
attribute?: string;
|
|
5
5
|
data?: Array<any>;
|
|
@@ -9,14 +9,18 @@ export interface StyleByAttribute {
|
|
|
9
9
|
radius?: Array<number>;
|
|
10
10
|
icon?: Array<string>;
|
|
11
11
|
scale?: Array<number>;
|
|
12
|
-
label?:
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
} | olStyle | olStyle[];
|
|
12
|
+
label?: IgoLabel;
|
|
15
13
|
baseStyle?: {
|
|
16
14
|
[key: string]: any;
|
|
17
|
-
}
|
|
15
|
+
};
|
|
18
16
|
hoverStyle?: StyleByAttribute;
|
|
19
17
|
}
|
|
18
|
+
export interface IgoLabel {
|
|
19
|
+
attribute: string;
|
|
20
|
+
style?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
20
24
|
export interface MapboxStyle {
|
|
21
25
|
url: string;
|
|
22
26
|
source: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ConfigService } from '@igo2/core';
|
|
2
|
+
import { IgoMap } from '../shared/map';
|
|
3
|
+
import { MapExtent } from '../shared/map.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HomeExtentButtonComponent {
|
|
6
|
+
configService: ConfigService;
|
|
7
|
+
map: IgoMap;
|
|
8
|
+
color: string;
|
|
9
|
+
extentOverride?: MapExtent;
|
|
10
|
+
centerOverride?: [number, number];
|
|
11
|
+
zoomOverride?: number;
|
|
12
|
+
private homeExtentButtonExtent;
|
|
13
|
+
private homeExtentButtonCenter;
|
|
14
|
+
private homeExtentButtonZoom;
|
|
15
|
+
constructor(configService: ConfigService);
|
|
16
|
+
computeHomeExtent(): void;
|
|
17
|
+
onToggleClick(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeExtentButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HomeExtentButtonComponent, "igo-home-extent-button", never, { "map": "map"; "color": "color"; "extentOverride": "extentOverride"; "centerOverride": "centerOverride"; "zoomOverride": "zoomOverride"; }, {}, never, never>;
|
|
20
|
+
}
|