@regionerne/gis-komponent 0.0.51 → 0.0.53
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 +115 -23
- package/fesm2022/regionerne-gis-komponent.mjs.map +1 -1
- package/lib/components/toolbox/toolbox.component.d.ts +13 -0
- package/lib/models/ILayer.d.ts +1 -0
- package/lib/models/icons.constants.d.ts +9 -1
- package/lib/services/geometrySearch.service.d.ts +28 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { MatSelectChange } from '@angular/material/select';
|
|
|
6
6
|
import { IProfileDetailed } from '../../models/IProfile';
|
|
7
7
|
import { SearchResponse, SearchResponseItem } from '../../services/searchProvider.service';
|
|
8
8
|
import { IInfoSearchResult } from '../../services/infoSearch.service';
|
|
9
|
+
import { GeometrySearchResponse } from '../../services/geometrySearch.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
interface DrawItem {
|
|
11
12
|
name: string;
|
|
@@ -50,6 +51,7 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
|
|
|
50
51
|
private _originalMapWidth;
|
|
51
52
|
private _originalMapHeight;
|
|
52
53
|
private pointClickKey?;
|
|
54
|
+
private _geometrySearchService;
|
|
53
55
|
private drawInteraction?;
|
|
54
56
|
mapWidth: number;
|
|
55
57
|
mapHeight: number;
|
|
@@ -62,6 +64,7 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
|
|
|
62
64
|
selectedMeasureMode: 'measure-distance' | 'measure-area';
|
|
63
65
|
printDrawTool: 'Arrow' | 'Point' | 'LineString' | 'Polygon' | 'Circle' | 'Square' | 'Rectangle';
|
|
64
66
|
filteredResults: SearchResponse[];
|
|
67
|
+
geometrySearchResult: GeometrySearchResponse[];
|
|
65
68
|
filteredResultsMetadata: IInfoSearchResult[];
|
|
66
69
|
selectedGeometrySetting: GeometryTypeSetting | undefined;
|
|
67
70
|
undoIconBase64: string;
|
|
@@ -97,6 +100,14 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
|
|
|
97
100
|
VaelgLokaliteterBase64: string;
|
|
98
101
|
searchDocumentByPolygonBase64: string;
|
|
99
102
|
searchDocumentByPointBase64: string;
|
|
103
|
+
clipHoleBase64: string;
|
|
104
|
+
splitBase64: string;
|
|
105
|
+
changeTypeBase64: string;
|
|
106
|
+
setCenterBase64: string;
|
|
107
|
+
editBase64: string;
|
|
108
|
+
mergeBase64: string;
|
|
109
|
+
drawPrintBase64: string;
|
|
110
|
+
documentSearchBase64: string;
|
|
100
111
|
dragPosition: {
|
|
101
112
|
x: number;
|
|
102
113
|
y: number;
|
|
@@ -125,7 +136,9 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
|
|
|
125
136
|
togglePolygonSearch(): void;
|
|
126
137
|
private _disablePolygonSearch;
|
|
127
138
|
private _enablePointSearch;
|
|
139
|
+
deleteGeometrySearchItem(result: GeometrySearchResponse, itemId: string, event: MouseEvent): void;
|
|
128
140
|
private _disablePointSearch;
|
|
141
|
+
openUrl(url: string | null | undefined, event: MouseEvent): void;
|
|
129
142
|
splitBySearchedObject(item: SearchResponseItem, event: MouseEvent): void;
|
|
130
143
|
zoomSearchedObject(item: SearchResponseItem, event: MouseEvent): void;
|
|
131
144
|
toggleItemInfo(item: SearchResponseItem, event: MouseEvent): void;
|
package/lib/models/ILayer.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare class IconsConstants {
|
|
|
13
13
|
static polygonIconBase64: string;
|
|
14
14
|
static lineStringIconBase64: string;
|
|
15
15
|
static printBase64: string;
|
|
16
|
-
static drawBase64: string;
|
|
17
16
|
static featureSearchIconBase64: string;
|
|
18
17
|
static zoomIconBase64: string;
|
|
19
18
|
static cutIconBase64: string;
|
|
@@ -32,4 +31,13 @@ export declare class IconsConstants {
|
|
|
32
31
|
static VaelgLokaliteterBase64: string;
|
|
33
32
|
static searchDocumentByPolygonBase64: string;
|
|
34
33
|
static searchDocumentByPointBase64: string;
|
|
34
|
+
static clipHoleBase64: string;
|
|
35
|
+
static splitBase64: string;
|
|
36
|
+
static changeTypeBase64: string;
|
|
37
|
+
static setCenterBase64: string;
|
|
38
|
+
static editBase64: string;
|
|
39
|
+
static drawBase64: string;
|
|
40
|
+
static mergeBase64: string;
|
|
41
|
+
static drawPrintBase64: string;
|
|
42
|
+
static documentSearchBase64: string;
|
|
35
43
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Point, Polygon } from 'ol/geom';
|
|
2
|
+
import { ILayer } from '../models/ILayer';
|
|
3
|
+
import { SearchProviderBase } from './infoSearch.service';
|
|
4
|
+
import { FeatureCollection } from 'geojson';
|
|
5
|
+
import Filter from 'ol/format/filter/Filter';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface GeometrySearchResponseItem {
|
|
8
|
+
header: string;
|
|
9
|
+
id: string;
|
|
10
|
+
wkt: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GeometrySearchResponse {
|
|
14
|
+
total: number;
|
|
15
|
+
title: string;
|
|
16
|
+
layer: ILayer;
|
|
17
|
+
items: GeometrySearchResponseItem[];
|
|
18
|
+
}
|
|
19
|
+
export declare class GeometrySearchService extends SearchProviderBase<GeometrySearchResponse, Point | Polygon> {
|
|
20
|
+
private _current;
|
|
21
|
+
private _wktFormat;
|
|
22
|
+
private geoJsonFormat;
|
|
23
|
+
getSearchableLayers(): ILayer[];
|
|
24
|
+
getFilter(searchValue: Point | Polygon, layer: ILayer): Filter;
|
|
25
|
+
map(l: ILayer, f: FeatureCollection): GeometrySearchResponse;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeometrySearchService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GeometrySearchService>;
|
|
28
|
+
}
|