@regionerne/gis-komponent 0.0.21 → 0.0.23
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/fesm2022/regionerne-gis-komponent.mjs +801 -257
- package/fesm2022/regionerne-gis-komponent.mjs.map +1 -1
- package/lib/components/active-objects/activeObjects.component.d.ts +3 -0
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +18 -0
- package/lib/components/gis-komponent/gis-komponent.component.d.ts +1 -0
- package/lib/components/layer-selector/layer-selector.component.d.ts +1 -3
- package/lib/components/legends-list/legends-list.component.d.ts +1 -1
- package/lib/components/map-search/map-search.component.d.ts +15 -3
- package/lib/components/toolbox/toolbox.component.d.ts +9 -33
- package/lib/models/GisKomponentSettings.d.ts +8 -0
- package/lib/models/ILayer.d.ts +3 -0
- package/lib/models/ILayerGroup.d.ts +1 -8
- package/lib/models/profile.d.ts +1 -0
- package/lib/services/centerPoint.service.d.ts +14 -0
- package/lib/services/confirm-dialog.service.d.ts +11 -0
- package/lib/services/featureHelper.service.d.ts +0 -1
- package/lib/services/highlight.service.d.ts +6 -5
- package/lib/services/layerError.service.d.ts +1 -0
- package/lib/services/layerHelper.service.d.ts +6 -3
- package/lib/services/overlap.service.d.ts +12 -0
- package/lib/services/printDrawLayerSource.service.d.ts +1 -2
- package/lib/services/searchProvider.service.d.ts +25 -0
- package/lib/services/wfsSearch.service.d.ts +34 -0
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ interface IFeatures {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class ActiveObjectsComponent implements OnInit {
|
|
18
18
|
private _drawLayerService;
|
|
19
|
+
private _centerPointService;
|
|
20
|
+
private _undoRedo;
|
|
19
21
|
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry>[]>;
|
|
20
22
|
collapsed: boolean;
|
|
21
23
|
settings: GisKomponentSettings;
|
|
@@ -33,6 +35,7 @@ export declare class ActiveObjectsComponent implements OnInit {
|
|
|
33
35
|
constructor();
|
|
34
36
|
ngOnInit(): void;
|
|
35
37
|
private _getAreaString;
|
|
38
|
+
reset(): void;
|
|
36
39
|
zoomToAll(): void;
|
|
37
40
|
highlight(id: number | string): void;
|
|
38
41
|
updateOpacity(): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type ConfirmChoice = 'primary' | 'secondary';
|
|
4
|
+
export interface ConfirmDialogData {
|
|
5
|
+
title?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
primaryText: string;
|
|
8
|
+
secondaryText: string;
|
|
9
|
+
disableClose?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class ConfirmDialogComponent {
|
|
12
|
+
private dialogRef;
|
|
13
|
+
data: ConfirmDialogData;
|
|
14
|
+
constructor(dialogRef: MatDialogRef<ConfirmDialogComponent, ConfirmChoice>, data: ConfirmDialogData);
|
|
15
|
+
choose(choice: ConfirmChoice): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -50,6 +50,7 @@ export declare class GisKomponentComponent implements OnInit {
|
|
|
50
50
|
private _handleShowMouseCoordinates;
|
|
51
51
|
private _handleShowScale;
|
|
52
52
|
ngOnInit(): void;
|
|
53
|
+
private _addRotateControl;
|
|
53
54
|
toggleShowConflicts(): void;
|
|
54
55
|
toggleShowObjects(): void;
|
|
55
56
|
toggleToolbar(): void;
|
|
@@ -20,18 +20,16 @@ export declare class LayerSelectorComponent implements OnInit, OnChanges {
|
|
|
20
20
|
showLegend: boolean;
|
|
21
21
|
showSelector: boolean;
|
|
22
22
|
legendUrl: string;
|
|
23
|
-
private _namesToGoLast;
|
|
24
23
|
private _layerSelectorIcon;
|
|
25
24
|
private _layerSelectorIconControl;
|
|
26
25
|
private _layerSelectorBody;
|
|
27
26
|
private _layerSelectorBodyControl;
|
|
28
27
|
private readonly _mapFilteredLayerGroupsKeyName;
|
|
29
|
-
private readonly _layerIdsToDisplayInMapKeyName;
|
|
30
28
|
private readonly _layerHelper;
|
|
31
29
|
private readonly _layerErrorService;
|
|
32
30
|
ngOnInit(): void;
|
|
33
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
-
toggleLayer(
|
|
32
|
+
toggleLayer(layerId: number, event?: MouseEvent, skipMapToggle?: boolean): void;
|
|
35
33
|
setLayerErrorStatus(layerId: number, errorStatus: boolean): void;
|
|
36
34
|
toggleGroup(event: MouseEvent, layerGroup: LayerSelectorGroup): void;
|
|
37
35
|
toggleLayerSelector(): void;
|
|
@@ -23,7 +23,7 @@ export declare class LegendsListComponent implements OnInit, OnChanges {
|
|
|
23
23
|
private _legendsListIconControl;
|
|
24
24
|
private _legendsListBody;
|
|
25
25
|
private _legendsListBodyControl;
|
|
26
|
-
private readonly
|
|
26
|
+
private readonly _mapFilteredLayerGroupsKeyName;
|
|
27
27
|
private readonly _layerService;
|
|
28
28
|
private readonly _layerHelperService;
|
|
29
29
|
toggleLegendsList(): void;
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { CdkDragEnd } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { SearchResponse } from '../../services/searchProvider.service';
|
|
4
|
+
import { Profile } from '../../models/profile';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class MapSearchComponent implements OnInit {
|
|
5
7
|
searchAddress: string;
|
|
6
|
-
|
|
7
|
-
filteredResults:
|
|
8
|
+
profile: Profile;
|
|
9
|
+
filteredResults: SearchResponse[];
|
|
8
10
|
collapsed: boolean;
|
|
9
11
|
dragPosition: {
|
|
10
12
|
x: number;
|
|
11
13
|
y: number;
|
|
12
14
|
};
|
|
13
15
|
private readonly POSITION_STORAGE_KEY;
|
|
16
|
+
private readonly _mapFilteredLayerGroupsKeyName;
|
|
17
|
+
private _highlight;
|
|
18
|
+
private _searchSubject;
|
|
19
|
+
private _searchService;
|
|
20
|
+
private _searchProviderService;
|
|
21
|
+
private _wfsSearch;
|
|
22
|
+
private _layerHelperService;
|
|
14
23
|
ngOnInit(): void;
|
|
24
|
+
private _addWFSSearch;
|
|
25
|
+
private _addWFSSearchLayers;
|
|
15
26
|
filterResults(): void;
|
|
16
27
|
toggleSearch(): void;
|
|
28
|
+
highlight(wkt: string, event: MouseEvent): void;
|
|
17
29
|
onDragEnded(event: CdkDragEnd): void;
|
|
18
30
|
private _savePosition;
|
|
19
31
|
private _loadPosition;
|
|
20
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapSearchComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapSearchComponent, "lib-map-search", never, {}, {}, never, never, true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapSearchComponent, "lib-map-search", never, { "profile": { "alias": "profile"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
34
|
}
|
|
@@ -24,6 +24,9 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
24
24
|
private _highlight;
|
|
25
25
|
private _interactionHelper;
|
|
26
26
|
private _mergeService;
|
|
27
|
+
private _centerPointService;
|
|
28
|
+
private _overlap;
|
|
29
|
+
private _zoomService;
|
|
27
30
|
private _POSITION_STORAGE_KEY;
|
|
28
31
|
private _current;
|
|
29
32
|
private _originalMapWidth;
|
|
@@ -34,7 +37,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
34
37
|
dimId: string;
|
|
35
38
|
dims: number[][];
|
|
36
39
|
printDrawLabel: string;
|
|
37
|
-
printDrawTool: '
|
|
40
|
+
printDrawTool: 'Arrow' | 'Point' | 'LineString' | 'Polygon' | 'Circle' | 'Square' | 'Rectangle';
|
|
38
41
|
selectedGeometrySetting: GeometryTypeSetting | undefined;
|
|
39
42
|
undoIconBase64: string;
|
|
40
43
|
redoIconBase64: string;
|
|
@@ -58,7 +61,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
58
61
|
snap: boolean;
|
|
59
62
|
showInputWKT: boolean;
|
|
60
63
|
WKTString?: string;
|
|
61
|
-
activeMode: 'draw-polygon' | 'draw-linestring' | 'draw-point' | 'edit' | 'edit-remove' | 'delete' | 'change-type' | 'clip-hole' | 'split' | 'measure-area' | 'measure-distance' | 'merge-features' | null;
|
|
64
|
+
activeMode: 'draw-polygon' | 'draw-linestring' | 'draw-point' | 'edit' | 'edit-remove' | 'delete' | 'change-type' | 'clip-hole' | 'split' | 'measure-area' | 'measure-distance' | 'merge-features' | 'center-point' | null;
|
|
62
65
|
activateShowInputWKT(): void;
|
|
63
66
|
cancelWKT(): void;
|
|
64
67
|
settingsChanged(evt: MatSelectChange): void;
|
|
@@ -67,6 +70,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
67
70
|
onSnapChange(): void;
|
|
68
71
|
ReadWKT(): void;
|
|
69
72
|
private _drawPolygon;
|
|
73
|
+
setCenterPoint(): void;
|
|
70
74
|
private _actionSource;
|
|
71
75
|
clipHole(): void;
|
|
72
76
|
private _addSnap;
|
|
@@ -113,40 +117,12 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
113
117
|
private _setVisibiltyOnDOMElements;
|
|
114
118
|
startDrawMode(): void;
|
|
115
119
|
handlePrintDrawToolChanged(): void;
|
|
120
|
+
handleClearPrintDrawFeatures(): void;
|
|
116
121
|
printDraw?: Draw;
|
|
117
122
|
private _addPrintDrawToolInteraction;
|
|
118
123
|
private _removePrintDrawToolInteraction;
|
|
119
|
-
private
|
|
120
|
-
|
|
121
|
-
Point: {
|
|
122
|
-
'circle-radius': number;
|
|
123
|
-
'circle-fill-color': string;
|
|
124
|
-
'stroke-color': string;
|
|
125
|
-
'stroke-width': number;
|
|
126
|
-
'fill-color': string;
|
|
127
|
-
};
|
|
128
|
-
LineString: {
|
|
129
|
-
'circle-radius': number;
|
|
130
|
-
'circle-fill-color': string;
|
|
131
|
-
'stroke-color': string;
|
|
132
|
-
'stroke-width': number;
|
|
133
|
-
'fill-color': string;
|
|
134
|
-
};
|
|
135
|
-
Polygon: {
|
|
136
|
-
'circle-radius': number;
|
|
137
|
-
'circle-fill-color': string;
|
|
138
|
-
'stroke-color': string;
|
|
139
|
-
'stroke-width': number;
|
|
140
|
-
'fill-color': string;
|
|
141
|
-
};
|
|
142
|
-
Circle: {
|
|
143
|
-
'circle-radius': number;
|
|
144
|
-
'circle-fill-color': string;
|
|
145
|
-
'stroke-color': string;
|
|
146
|
-
'stroke-width': number;
|
|
147
|
-
'fill-color': string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
124
|
+
private _lastSegmentRotation;
|
|
125
|
+
private _getDrawToolStyle;
|
|
150
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxComponent, never>;
|
|
151
127
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxComponent, "map-toolbox", never, { "map": { "alias": "map"; "required": true; }; "showMeasureDistance": { "alias": "showMeasureDistance"; "required": false; }; "showMeasureArea": { "alias": "showMeasureArea"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "settings": { "alias": "settings"; "required": true; }; "profile": { "alias": "profile"; "required": true; }; "WKTInputEnabled": { "alias": "WKTInputEnabled"; "required": false; }; "deleteEnabled": { "alias": "deleteEnabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
152
128
|
}
|
|
@@ -5,7 +5,9 @@ export interface GeometryTypeSetting {
|
|
|
5
5
|
typeId: string;
|
|
6
6
|
style: string;
|
|
7
7
|
availableGeometryTypes?: string[];
|
|
8
|
+
showLabelFromProperty?: string;
|
|
8
9
|
features?: FeatureCollection;
|
|
10
|
+
disableEditFeatures?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface GisKomponentSettings {
|
|
11
13
|
WKTInputEnabled?: boolean;
|
|
@@ -18,4 +20,10 @@ export interface GisKomponentSettings {
|
|
|
18
20
|
sizeInHa?: boolean;
|
|
19
21
|
undoDisabled?: boolean;
|
|
20
22
|
geometryTypeSettings: GeometryTypeSetting[];
|
|
23
|
+
disableOverlap?: boolean;
|
|
24
|
+
centerPoint?: {
|
|
25
|
+
required: boolean;
|
|
26
|
+
withinPolygon: boolean;
|
|
27
|
+
style: string;
|
|
28
|
+
};
|
|
21
29
|
}
|
package/lib/models/ILayer.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ interface ILayerGroupBase {
|
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
5
|
allowMultiSelect: boolean;
|
|
6
|
+
background: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface ILayerGroup extends ILayerGroupBase {
|
|
8
9
|
id: number;
|
|
@@ -17,12 +18,4 @@ export interface ILayerGroupLayer extends ILayer {
|
|
|
17
18
|
export interface ILayerGroupDetailed extends ILayerGroup {
|
|
18
19
|
layers: ILayerGroupLayer[];
|
|
19
20
|
}
|
|
20
|
-
export interface ILayerGroupSaveLayer {
|
|
21
|
-
id: number;
|
|
22
|
-
visible: boolean;
|
|
23
|
-
activeInSelector: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface ILayerGroupSave extends ILayerGroupBase {
|
|
26
|
-
layers: ILayerGroupSaveLayer[];
|
|
27
|
-
}
|
|
28
21
|
export {};
|
package/lib/models/profile.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CenterPointService {
|
|
3
|
+
private _settingsHelper;
|
|
4
|
+
private _current;
|
|
5
|
+
private _drawLayerService;
|
|
6
|
+
private _interactionHelper;
|
|
7
|
+
private _geoJson;
|
|
8
|
+
private _snackbar;
|
|
9
|
+
private _featureHelper;
|
|
10
|
+
handleFeatureDeleted(featureId: string | number): void;
|
|
11
|
+
setCenterPoint(style: string, withinPolygon: boolean, callBack: () => void): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CenterPointService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CenterPointService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { ConfirmChoice, ConfirmDialogData } from '../components/confirm-dialog/confirm-dialog.component';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ConfirmDialogService {
|
|
6
|
+
private dialog;
|
|
7
|
+
constructor(dialog: MatDialog);
|
|
8
|
+
open(data: ConfirmDialogData): Observable<ConfirmChoice | undefined>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
11
|
+
}
|
|
@@ -6,7 +6,6 @@ export declare class FeatureHelperService {
|
|
|
6
6
|
private _idCounter;
|
|
7
7
|
isLocked: (feature: Feature) => boolean;
|
|
8
8
|
lock(feature: Feature): void;
|
|
9
|
-
constructor();
|
|
10
9
|
setTypeId(feature: Feature, typeId: string): void;
|
|
11
10
|
typeId: (feature: Feature) => string;
|
|
12
11
|
setId(feature: Feature): void;
|
|
@@ -2,14 +2,15 @@ import { Feature } from 'ol';
|
|
|
2
2
|
import VectorLayer from 'ol/layer/Vector';
|
|
3
3
|
import { Vector } from 'ol/source';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
|
|
5
|
+
export declare class HighlightService {
|
|
6
|
+
private _wktFormat;
|
|
7
7
|
private _zoomService;
|
|
8
8
|
private _style;
|
|
9
9
|
private _highlightSource;
|
|
10
10
|
highlightLayer: VectorLayer<Vector<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
|
|
11
11
|
clear(): void;
|
|
12
|
-
highlight(feature: Feature | Feature[], zoomToFeatures?: boolean): void;
|
|
13
|
-
|
|
14
|
-
static
|
|
12
|
+
highlight(feature: Feature | Feature[] | string, zoomToFeatures?: boolean): void;
|
|
13
|
+
private _ensureFeature;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HighlightService>;
|
|
15
16
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import BaseLayer from 'ol/layer/Base';
|
|
2
2
|
import Map from 'ol/Map';
|
|
3
3
|
import { ILayer } from '../models/ILayer';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LayerHelperService {
|
|
7
7
|
activeLayersChanged: BehaviorSubject<boolean>;
|
|
8
8
|
private readonly _layerDbIdKey;
|
|
9
9
|
private readonly _layerGroupDbIdKey;
|
|
10
|
-
private readonly
|
|
10
|
+
private readonly _mapFilteredLayerGroupsKeyName;
|
|
11
|
+
private _layerErrorService;
|
|
12
|
+
layerActivatedByBackgroundGroup: Subject<number>;
|
|
11
13
|
setDbId(layer: BaseLayer, id: number): void;
|
|
12
14
|
getDbId(layer: BaseLayer): number;
|
|
13
15
|
setLayerGroupDbId(layer: BaseLayer, id: number): void;
|
|
14
16
|
getLayerGroupDbId(layer: BaseLayer): number;
|
|
15
17
|
applyCachedLayersToDisplayInMap(map: Map, profileId: number): void;
|
|
18
|
+
startFailoverForBackgroundGroup(aMap: Map, groupId: number): void;
|
|
16
19
|
updateLayerOpacityInMap(map: Map, layer: ILayer): void;
|
|
17
|
-
toggleLayerInMap(map: Map,
|
|
20
|
+
toggleLayerInMap(map: Map, layerId: number): void;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayerHelperService, never>;
|
|
19
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<LayerHelperService>;
|
|
20
23
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Feature as olFeature } from 'ol';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OverlapService {
|
|
5
|
+
private _drawLayerService;
|
|
6
|
+
private _featureHelper;
|
|
7
|
+
private _snackbar;
|
|
8
|
+
private _confirmService;
|
|
9
|
+
handleOverlap(feature: olFeature): Observable<olFeature>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlapService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlapService>;
|
|
12
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import Feature from 'ol/Feature';
|
|
2
1
|
import VectorSource from 'ol/source/Vector';
|
|
3
2
|
import VectorLayer from 'ol/layer/Vector';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class PrintDrawLayerSourceService {
|
|
6
5
|
private _current;
|
|
7
6
|
source: VectorSource;
|
|
8
|
-
layer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
|
|
7
|
+
layer: VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry>>, import("ol").Feature<import("ol/geom").Geometry>>;
|
|
9
8
|
constructor();
|
|
10
9
|
private _initListener;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrintDrawLayerSourceService, never>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SearchProviderService {
|
|
4
|
+
private _cancelSearch;
|
|
5
|
+
maxSearchResults: number;
|
|
6
|
+
searchProviders: SearchProvider[];
|
|
7
|
+
search(searchString: string): Observable<SearchResponse[]>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchProviderService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SearchProviderService>;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchProvider {
|
|
12
|
+
name: string;
|
|
13
|
+
search(searchString: string, maxCount?: number): Observable<SearchResponse[]>;
|
|
14
|
+
onSelect(searchResult: SearchResponse, targetSrs?: string): void;
|
|
15
|
+
onClear(): void;
|
|
16
|
+
}
|
|
17
|
+
export interface SearchResponseItem {
|
|
18
|
+
wkt: string;
|
|
19
|
+
header: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SearchResponse {
|
|
22
|
+
total: number;
|
|
23
|
+
title: string;
|
|
24
|
+
items: SearchResponseItem[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FeatureCollection } from 'geojson';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SearchProvider, SearchResponse } from './searchProvider.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface WfsFeatureCollection extends FeatureCollection {
|
|
6
|
+
numberMatched?: number;
|
|
7
|
+
numberReturned?: number;
|
|
8
|
+
timeStamp?: string;
|
|
9
|
+
next?: string;
|
|
10
|
+
previous?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SearchableLayer {
|
|
13
|
+
featureType: string;
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
searchField: string;
|
|
16
|
+
headerField: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class WFSSearchService implements SearchProvider {
|
|
20
|
+
name: string;
|
|
21
|
+
private _http;
|
|
22
|
+
private wfsFormat;
|
|
23
|
+
private wktFormat;
|
|
24
|
+
private _searcheableLayers;
|
|
25
|
+
private geoJsonFormat;
|
|
26
|
+
private _serializer;
|
|
27
|
+
search(searchValue: string, maxCount?: number): Observable<SearchResponse[]>;
|
|
28
|
+
onSelect(searchResult: SearchResponse, targetSrs?: string): void;
|
|
29
|
+
onClear(): void;
|
|
30
|
+
setSearcheableLayers(layers: SearchableLayer[]): void;
|
|
31
|
+
private _formatWKT;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WFSSearchService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WFSSearchService>;
|
|
34
|
+
}
|