adb-shared 7.0.15 → 22.0.0-beta.1
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/README.md +123 -63
- package/fesm2022/adb-shared-map.mjs +2274 -897
- package/fesm2022/adb-shared-map.mjs.map +1 -1
- package/fesm2022/adb-shared.mjs +4765 -2894
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +11 -9
- package/types/adb-shared-map.d.ts +437 -237
- package/types/adb-shared.d.ts +1057 -875
|
@@ -1,265 +1,465 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { ControlValueAccessor,
|
|
10
|
-
import { Subscription } from
|
|
11
|
-
import
|
|
12
|
-
import * as i8 from
|
|
13
|
-
import * as i9 from
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, InjectionToken, ModuleWithProviders, OnChanges, OnDestroy, OnInit } from "@angular/core";
|
|
3
|
+
import { FeatureLike } from "ol/Feature.js";
|
|
4
|
+
import { Extent } from "ol/extent.js";
|
|
5
|
+
import Map from "ol/Map.js";
|
|
6
|
+
import * as i11 from "@angular/router";
|
|
7
|
+
import { ActivatedRoute, ParamMap, Params, Router } from "@angular/router";
|
|
8
|
+
import * as i10 from "@angular/forms";
|
|
9
|
+
import { ControlValueAccessor, FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
10
|
+
import { Observable, Subscription } from "rxjs";
|
|
11
|
+
import { HttpClient } from "@angular/common/http";
|
|
12
|
+
import * as i8 from "@angular/common";
|
|
13
|
+
import * as i9 from "adb-shared";
|
|
14
|
+
import * as i12 from "@ngx-translate/core";
|
|
15
|
+
import TileLayer from "ol/layer/Tile.js";
|
|
16
|
+
import TileWMS from "ol/source/TileWMS.js";
|
|
17
|
+
import CircleGeometry from "ol/geom/Circle.js";
|
|
18
|
+
import { Style } from "ol/style.js";
|
|
19
|
+
export interface AdbMapConfig {
|
|
20
|
+
api: string;
|
|
21
|
+
artfaktaTaxonLists: string;
|
|
22
|
+
dynamic?: boolean;
|
|
23
|
+
enableClusterSelection?: boolean;
|
|
24
|
+
dataProviderIds?: readonly number[];
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
export type AdbMapFilterType = 'taxon' | 'area' | 'ownArea' | 'time' | 'redlist' | 'risklist' | 'taxonLists' | 'datasources';
|
|
27
|
+
export declare const ADB_MAP_CONFIG: InjectionToken<AdbMapConfig>;
|
|
28
|
+
export declare class AdbMapConfigService {
|
|
29
|
+
readonly artfaktaTaxonLists: string;
|
|
30
|
+
readonly observationFeatures: string;
|
|
31
|
+
readonly taxaListsApi: string;
|
|
32
|
+
readonly dynamic: boolean;
|
|
33
|
+
readonly enableClusterSelection: boolean;
|
|
34
|
+
readonly dataProviderIds: readonly number[] | undefined;
|
|
35
|
+
constructor(config: AdbMapConfig);
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapConfigService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
32
38
|
}
|
|
33
|
-
declare class
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare class AdbObsMapComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
57
|
-
private activatedRoute;
|
|
58
|
-
private config;
|
|
59
|
-
private router;
|
|
60
|
-
private http;
|
|
61
|
-
private subscriptions;
|
|
62
|
-
error: null;
|
|
63
|
-
mapLoading: i0.WritableSignal<boolean>;
|
|
64
|
-
siteLayer: Leaflet.FeatureGroup;
|
|
65
|
-
hasBox: boolean;
|
|
66
|
-
count: any;
|
|
67
|
-
mapId: string;
|
|
68
|
-
map: any;
|
|
69
|
-
mapReady: i0.WritableSignal<boolean>;
|
|
70
|
-
hasQueryParams: boolean;
|
|
71
|
-
hasUrlParams: boolean;
|
|
72
|
-
queryParams: Params;
|
|
73
|
-
urlParams: ParamMap;
|
|
74
|
-
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router, http: HttpClient);
|
|
75
|
-
ngAfterViewInit(): void;
|
|
76
|
-
private tryLoad;
|
|
77
|
-
ngOnInit(): void;
|
|
78
|
-
private attachUserListeners;
|
|
79
|
-
private onUserInputRoute;
|
|
80
|
-
private loadFeature;
|
|
81
|
-
private buildMap;
|
|
82
|
-
private getMapBoundsToBbox;
|
|
83
|
-
private getPolygonStyle;
|
|
84
|
-
ngOnDestroy(): void;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdbObsMapComponent, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AdbObsMapComponent, "adb-obs-map", never, {}, {}, never, never, false, never>;
|
|
39
|
+
export declare class AdbLocationMapComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
40
|
+
geoJson: import("@angular/core").InputSignal<any>;
|
|
41
|
+
readonly mapId: string;
|
|
42
|
+
private map;
|
|
43
|
+
private resizeObserver;
|
|
44
|
+
private pendingExtent;
|
|
45
|
+
private source;
|
|
46
|
+
private uncertaintySource;
|
|
47
|
+
private format;
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
ngOnChanges(): void;
|
|
50
|
+
private renderMap;
|
|
51
|
+
private fitPendingExtent;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbLocationMapComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbLocationMapComponent, "adb-location-map", never, {
|
|
55
|
+
"geoJson": {
|
|
56
|
+
"alias": "geoJson";
|
|
57
|
+
"required": true;
|
|
58
|
+
"isSignal": true;
|
|
59
|
+
};
|
|
60
|
+
}, {}, never, never, false, never>;
|
|
87
61
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
62
|
+
declare class MapFeaturePickerComponent {
|
|
63
|
+
locationOptions: import("@angular/core").InputSignal<{
|
|
64
|
+
features: FeatureLike[];
|
|
65
|
+
pixel: number[];
|
|
66
|
+
extent: Extent;
|
|
67
|
+
selectMode: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
readonly featureChosen: import("@angular/core").OutputEmitterRef<{
|
|
70
|
+
feature: FeatureLike;
|
|
71
|
+
properties: any;
|
|
72
|
+
selectMode: boolean;
|
|
73
|
+
restoreFocus: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
readonly dismissed: import("@angular/core").OutputEmitterRef<boolean>;
|
|
76
|
+
position: import("@angular/core").WritableSignal<{
|
|
77
|
+
left: number;
|
|
78
|
+
top: number;
|
|
79
|
+
}>;
|
|
80
|
+
private host;
|
|
81
|
+
private features;
|
|
82
|
+
choices: import("@angular/core").Signal<{
|
|
83
|
+
feature: FeatureLike;
|
|
84
|
+
item: any;
|
|
85
|
+
}[]>;
|
|
86
|
+
constructor();
|
|
87
|
+
choose(choice: any, restoreFocus?: boolean): void;
|
|
88
|
+
private pick;
|
|
89
|
+
private hasVisibleEdge;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapFeaturePickerComponent, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapFeaturePickerComponent, "adb-map-feature-picker", never, {
|
|
92
|
+
"locationOptions": {
|
|
93
|
+
"alias": "locationOptions";
|
|
94
|
+
"required": true;
|
|
95
|
+
"isSignal": true;
|
|
96
|
+
};
|
|
97
|
+
}, {
|
|
98
|
+
"featureChosen": "featureChosen";
|
|
99
|
+
"dismissed": "dismissed";
|
|
100
|
+
}, never, never, false, never>;
|
|
114
101
|
}
|
|
115
|
-
|
|
116
102
|
type GeoJsonGeometry = {
|
|
117
|
-
|
|
118
|
-
|
|
103
|
+
type: "Point";
|
|
104
|
+
coordinates: [number, number];
|
|
119
105
|
} | {
|
|
120
|
-
|
|
121
|
-
|
|
106
|
+
type: "LineString";
|
|
107
|
+
coordinates: [number, number][];
|
|
122
108
|
} | {
|
|
123
|
-
|
|
124
|
-
|
|
109
|
+
type: "Polygon";
|
|
110
|
+
coordinates: [number, number][][];
|
|
125
111
|
} | {
|
|
126
|
-
|
|
127
|
-
|
|
112
|
+
type: "MultiPoint";
|
|
113
|
+
coordinates: [number, number][];
|
|
128
114
|
} | {
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
type: "MultiLineString";
|
|
116
|
+
coordinates: [number, number][][];
|
|
131
117
|
} | {
|
|
132
|
-
|
|
133
|
-
|
|
118
|
+
type: "MultiPolygon";
|
|
119
|
+
coordinates: [number, number][][][];
|
|
134
120
|
} | {
|
|
135
|
-
|
|
136
|
-
|
|
121
|
+
type: "GeometryCollection";
|
|
122
|
+
geometries: GeoJsonGeometry[];
|
|
137
123
|
};
|
|
138
124
|
interface GeoJsonFeature {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
type: "Feature";
|
|
126
|
+
geometry: GeoJsonGeometry;
|
|
127
|
+
properties?: any;
|
|
128
|
+
}
|
|
129
|
+
interface GeoJson {
|
|
130
|
+
type: "FeatureCollection";
|
|
131
|
+
features: GeoJsonFeature[];
|
|
132
|
+
bbox?: number[];
|
|
133
|
+
properties?: any;
|
|
142
134
|
}
|
|
143
135
|
interface MapOptions {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
providers?: boolean;
|
|
137
|
+
zoom?: boolean;
|
|
138
|
+
scrollZoom?: boolean;
|
|
147
139
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
140
|
+
declare class MapLegendComponent {
|
|
141
|
+
readonly generalizedBackgroundColor: string;
|
|
142
|
+
result: import("@angular/core").InputSignal<GeoJson>;
|
|
143
|
+
cutoffYear: import("@angular/core").InputSignal<string>;
|
|
144
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
145
|
+
showObservationStatus: import("@angular/core").InputSignal<boolean>;
|
|
146
|
+
gridLevels: import("@angular/core").Signal<{
|
|
147
|
+
min: number;
|
|
148
|
+
max: number;
|
|
149
|
+
color: string;
|
|
150
|
+
}[]>;
|
|
151
|
+
private features;
|
|
152
|
+
hasNotRecovered: import("@angular/core").Signal<boolean>;
|
|
153
|
+
hasNotPresent: import("@angular/core").Signal<boolean>;
|
|
154
|
+
hasGeneralizedPolygons: import("@angular/core").Signal<boolean>;
|
|
155
|
+
hasCutoff: import("@angular/core").Signal<boolean>;
|
|
156
|
+
hasLocations: import("@angular/core").Signal<boolean>;
|
|
157
|
+
hasClusters: import("@angular/core").Signal<boolean>;
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapLegendComponent, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapLegendComponent, "adb-map-legend", never, {
|
|
160
|
+
"result": {
|
|
161
|
+
"alias": "result";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"cutoffYear": {
|
|
166
|
+
"alias": "cutoffYear";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"loading": {
|
|
171
|
+
"alias": "loading";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
"showObservationStatus": {
|
|
176
|
+
"alias": "showObservationStatus";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
}, {}, never, never, false, never>;
|
|
181
|
+
}
|
|
182
|
+
export type MapPresentationMode = 'locations' | 'observations';
|
|
183
|
+
export declare class AdbMapComponent implements AfterViewInit, OnDestroy {
|
|
184
|
+
private activatedRoute;
|
|
185
|
+
private config;
|
|
186
|
+
private router;
|
|
187
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
188
|
+
showHeader: import("@angular/core").InputSignal<boolean>;
|
|
189
|
+
allowPresentationMode: import("@angular/core").InputSignal<boolean>;
|
|
190
|
+
presentationMode: import("@angular/core").InputSignal<MapPresentationMode>;
|
|
191
|
+
private route;
|
|
192
|
+
activePresentationMode: import("@angular/core").Signal<any>;
|
|
193
|
+
private readonly dataSource;
|
|
194
|
+
private requestedParams;
|
|
195
|
+
settingsOpen: import("@angular/core").WritableSignal<boolean>;
|
|
196
|
+
savingSettings: import("@angular/core").WritableSignal<boolean>;
|
|
197
|
+
settingsError: import("@angular/core").WritableSignal<boolean>;
|
|
198
|
+
settingsForm: FormGroup<{
|
|
199
|
+
presentationMode: FormControl<string>;
|
|
200
|
+
uncertain: FormControl<boolean>;
|
|
201
|
+
cutoff: FormControl<string>;
|
|
202
|
+
}>;
|
|
203
|
+
private preserveViewOnNextLoad;
|
|
204
|
+
error: null;
|
|
205
|
+
mapLoading: import("@angular/core").WritableSignal<boolean>;
|
|
206
|
+
readonly locationSelected: import("@angular/core").OutputEmitterRef<any>;
|
|
207
|
+
readonly clusterSelected: import("@angular/core").OutputEmitterRef<any>;
|
|
208
|
+
private siteSource;
|
|
209
|
+
private uncertaintySource;
|
|
210
|
+
private siteLayer;
|
|
211
|
+
private format;
|
|
212
|
+
private resizeObserver;
|
|
213
|
+
private requestSubscription;
|
|
214
|
+
private hoveredFeature;
|
|
215
|
+
private selectedFeature;
|
|
216
|
+
locationOptions: import("@angular/core").WritableSignal<{
|
|
217
|
+
features: FeatureLike[];
|
|
218
|
+
pixel: number[];
|
|
219
|
+
extent: Extent;
|
|
220
|
+
selectMode: boolean;
|
|
221
|
+
}>;
|
|
222
|
+
private fittedView;
|
|
223
|
+
private pendingExtent;
|
|
224
|
+
mapResult: import("@angular/core").WritableSignal<GeoJson>;
|
|
225
|
+
cutoffYear: import("@angular/core").Signal<any>;
|
|
226
|
+
private gridLevels;
|
|
227
|
+
mapId: string;
|
|
228
|
+
map: Map;
|
|
229
|
+
private mapReady;
|
|
230
|
+
queryParams: Params;
|
|
231
|
+
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router);
|
|
232
|
+
ngAfterViewInit(): void;
|
|
233
|
+
openSettings(): void;
|
|
234
|
+
cancelSettings(button: HTMLButtonElement): void;
|
|
235
|
+
saveSettings(button: HTMLButtonElement): Promise<void>;
|
|
236
|
+
onExport(): void;
|
|
237
|
+
private attachUserListeners;
|
|
238
|
+
closeLocationPicker(restoreFocus?: boolean): void;
|
|
239
|
+
onFeatureChosen(selection: any): void;
|
|
240
|
+
private currentBbox;
|
|
241
|
+
private loadFeature;
|
|
242
|
+
private getMetersPerPixel;
|
|
243
|
+
private buildMap;
|
|
244
|
+
private viewKey;
|
|
245
|
+
private fitPendingExtent;
|
|
246
|
+
private featureStyle;
|
|
247
|
+
private locationSymbol;
|
|
248
|
+
private aggregatedSymbol;
|
|
249
|
+
ngOnDestroy(): void;
|
|
250
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapComponent, never>;
|
|
251
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbMapComponent, "adb-map", never, {
|
|
252
|
+
"showLegend": {
|
|
253
|
+
"alias": "showLegend";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
257
|
+
"showHeader": {
|
|
258
|
+
"alias": "showHeader";
|
|
259
|
+
"required": false;
|
|
260
|
+
"isSignal": true;
|
|
167
261
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
redListCount: number;
|
|
173
|
-
areaCount: number;
|
|
174
|
-
periodCount: number;
|
|
175
|
-
listsError: any;
|
|
176
|
-
filters: VisibleFilters;
|
|
177
|
-
taxaLists: any[];
|
|
178
|
-
hasTaxonInUrlParameter: any;
|
|
179
|
-
dsControls: any;
|
|
180
|
-
dateStartConfig: {
|
|
181
|
-
maxDate: Date;
|
|
262
|
+
"allowPresentationMode": {
|
|
263
|
+
"alias": "allowPresentationMode";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
182
266
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
267
|
+
"presentationMode": {
|
|
268
|
+
"alias": "presentationMode";
|
|
269
|
+
"required": false;
|
|
270
|
+
"isSignal": true;
|
|
186
271
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
272
|
+
}, {
|
|
273
|
+
"locationSelected": "locationSelected";
|
|
274
|
+
"clusterSelected": "clusterSelected";
|
|
275
|
+
}, never, never, false, never>;
|
|
276
|
+
}
|
|
277
|
+
export declare class PolygonDrawerInput implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
278
|
+
mapId: string;
|
|
279
|
+
map: Map;
|
|
280
|
+
polygonDraw: boolean;
|
|
281
|
+
disabled: boolean;
|
|
282
|
+
shapeLayer: boolean;
|
|
283
|
+
private source;
|
|
284
|
+
private format;
|
|
285
|
+
private draw;
|
|
286
|
+
private geoJson;
|
|
287
|
+
private resizeObserver;
|
|
288
|
+
private pendingFit;
|
|
289
|
+
private onChange;
|
|
290
|
+
private onTouched;
|
|
291
|
+
ngAfterViewInit(): void;
|
|
292
|
+
onDrawPolygon(): void;
|
|
293
|
+
onDrawCircle(): void;
|
|
294
|
+
private startDraw;
|
|
295
|
+
private stopDraw;
|
|
296
|
+
onUndoStep(): void;
|
|
297
|
+
onDeleteShape(): void;
|
|
298
|
+
private renderValue;
|
|
299
|
+
private fitShape;
|
|
300
|
+
writeValue(value: any): void;
|
|
301
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
302
|
+
registerOnTouched(fn: () => void): void;
|
|
303
|
+
setDisabledState(disabled: boolean): void;
|
|
304
|
+
ngOnDestroy(): void;
|
|
305
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolygonDrawerInput, never>;
|
|
306
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolygonDrawerInput, "adb-polygon-drawer", never, {}, {}, never, never, false, never>;
|
|
307
|
+
}
|
|
308
|
+
export declare class AdbMapFilters implements OnInit, OnDestroy {
|
|
309
|
+
private cdr;
|
|
310
|
+
private config;
|
|
311
|
+
private http;
|
|
312
|
+
private router;
|
|
313
|
+
private activatedRoute;
|
|
314
|
+
inline: boolean;
|
|
315
|
+
readonly hiddenFilters: import("@angular/core").InputSignal<AdbMapFilterType[]>;
|
|
316
|
+
readonly visibleFilters: import("@angular/core").Signal<{
|
|
317
|
+
taxon: boolean;
|
|
318
|
+
time: boolean;
|
|
319
|
+
area: boolean;
|
|
320
|
+
ownArea: boolean;
|
|
321
|
+
taxaLists: boolean;
|
|
322
|
+
datasources: boolean;
|
|
323
|
+
}>;
|
|
324
|
+
static datasets: string[];
|
|
325
|
+
subscriptions: Subscription;
|
|
326
|
+
form: FormGroup;
|
|
327
|
+
thisYear: Date;
|
|
328
|
+
lastYear: Date;
|
|
329
|
+
queryParamsMap: ParamMap;
|
|
330
|
+
hasOwnArea: boolean;
|
|
331
|
+
geo: GeoJsonFeature;
|
|
332
|
+
area: {
|
|
333
|
+
areaType: string;
|
|
334
|
+
featureId: string;
|
|
335
|
+
};
|
|
336
|
+
areasArray: FormArray<any>;
|
|
337
|
+
dataSetCount: number;
|
|
338
|
+
taxonListCount: number;
|
|
339
|
+
riskListCount: number;
|
|
340
|
+
redListCount: number;
|
|
341
|
+
areaCount: number;
|
|
342
|
+
periodCount: number;
|
|
343
|
+
listsError: any;
|
|
344
|
+
taxaLists: any[];
|
|
345
|
+
hasTaxonInUrlParameter: any;
|
|
346
|
+
dsControls: any;
|
|
347
|
+
dateStartConfig: {
|
|
348
|
+
maxDate: Date;
|
|
349
|
+
};
|
|
350
|
+
dateEndConfig: {
|
|
351
|
+
minDate: Date;
|
|
352
|
+
maxDate: Date;
|
|
353
|
+
};
|
|
354
|
+
artfakta: string;
|
|
355
|
+
constructor(cdr: ChangeDetectorRef, config: AdbMapConfigService, http: HttpClient, router: Router, activatedRoute: ActivatedRoute);
|
|
356
|
+
ngOnInit(): void;
|
|
357
|
+
removeArea(index: number): void;
|
|
358
|
+
addArea(): void;
|
|
359
|
+
onSubmit(): void;
|
|
360
|
+
private createForm;
|
|
361
|
+
private updateCustomDate;
|
|
362
|
+
ngOnDestroy(): void;
|
|
363
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapFilters, never>;
|
|
364
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbMapFilters, "adb-map-filters", never, {
|
|
365
|
+
"inline": {
|
|
366
|
+
"alias": "inline";
|
|
367
|
+
"required": false;
|
|
368
|
+
};
|
|
369
|
+
"hiddenFilters": {
|
|
370
|
+
"alias": "hiddenFilters";
|
|
371
|
+
"required": false;
|
|
372
|
+
"isSignal": true;
|
|
373
|
+
};
|
|
374
|
+
}, {}, never, never, false, never>;
|
|
198
375
|
}
|
|
199
|
-
|
|
200
376
|
declare class TreeviewComponent implements ControlValueAccessor {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
377
|
+
nodes: ListItem[];
|
|
378
|
+
private selectedIds;
|
|
379
|
+
private onChange;
|
|
380
|
+
private onTouched;
|
|
381
|
+
writeValue(ids: number[] | null): void;
|
|
382
|
+
registerOnChange(fn: (value: number[]) => void): void;
|
|
383
|
+
registerOnTouched(fn: () => void): void;
|
|
384
|
+
setDisabledState(isDisabled: boolean): void;
|
|
385
|
+
onLeafToggle(node: ListItem): void;
|
|
386
|
+
private applySelection;
|
|
387
|
+
private setReadOnly;
|
|
388
|
+
private static collectSelectedLeafIds;
|
|
389
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeviewComponent, never>;
|
|
390
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeviewComponent, "app-treeview", never, {
|
|
391
|
+
"nodes": {
|
|
392
|
+
"alias": "nodes";
|
|
393
|
+
"required": false;
|
|
394
|
+
};
|
|
395
|
+
}, {}, never, never, false, never>;
|
|
215
396
|
}
|
|
216
397
|
interface ListItem {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
398
|
+
id: number;
|
|
399
|
+
name?: string;
|
|
400
|
+
children?: ListItem[];
|
|
401
|
+
_selected?: boolean;
|
|
402
|
+
_readOnly?: boolean;
|
|
222
403
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AdbMapModule>;
|
|
404
|
+
export declare class AdbMapModule {
|
|
405
|
+
static forRoot(config?: AdbMapConfig): ModuleWithProviders<AdbMapModule>;
|
|
406
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapModule, never>;
|
|
407
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbMapModule, [typeof AdbLocationMapComponent, typeof MapFeaturePickerComponent, typeof MapLegendComponent, typeof AdbMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters, typeof TreeviewComponent], [typeof i8.CommonModule, typeof i9.AdbButtonsModule, typeof i9.AdbDirectivesModule, typeof i10.FormsModule, typeof i11.RouterModule, typeof i10.ReactiveFormsModule, typeof i9.AdbDatePickerModule, typeof i9.AdbPipesModule, typeof i9.AdbFilterSectionModule, typeof i9.AdbPickerModule, typeof i12.TranslatePipe], [typeof AdbLocationMapComponent, typeof AdbMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters]>;
|
|
408
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbMapModule>;
|
|
229
409
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
410
|
+
export declare class AdbMapUtils {
|
|
411
|
+
static locationSymbol(feature: FeatureLike, selected?: boolean, hovered?: boolean): Style;
|
|
412
|
+
static isNotRecovered(presentation: any): boolean;
|
|
413
|
+
static aggregatedSymbol(style: Style, presentation: any, cutoffYear: string, selected: boolean, geometryType?: string): Style | Style[];
|
|
414
|
+
static createUncertaintyCircle(center: number[], radius: number): CircleGeometry;
|
|
415
|
+
static readonly INITIAL_METERS_PER_PIXEL = 500;
|
|
416
|
+
static readonly INITIAL_CENTER_LAT = 62;
|
|
417
|
+
static readonly INITIAL_CENTER_LNG = 17;
|
|
418
|
+
static gridLevels(result: GeoJson): {
|
|
419
|
+
min: number;
|
|
420
|
+
max: number;
|
|
421
|
+
color: string;
|
|
422
|
+
}[];
|
|
423
|
+
static getMetersPerPixel(bbox: string, mapWidth: number): number;
|
|
424
|
+
static OverlayMaps: {
|
|
425
|
+
Altitude: TileLayer<TileWMS>;
|
|
426
|
+
Fjällkarta: TileLayer<TileWMS>;
|
|
427
|
+
Kommuner: TileLayer<TileWMS>;
|
|
428
|
+
Län: TileLayer<TileWMS>;
|
|
429
|
+
Ortnamn: TileLayer<TileWMS>;
|
|
430
|
+
'Ekonomisk zon': TileLayer<TileWMS>;
|
|
431
|
+
};
|
|
432
|
+
static Providers: MapProvider[];
|
|
433
|
+
private static wms;
|
|
434
|
+
static createMap(elementId: string, options?: MapOptions): Map;
|
|
435
|
+
private static addProviders;
|
|
436
|
+
static createFile(source: Blob, fileName?: string): boolean;
|
|
253
437
|
}
|
|
254
438
|
interface MapProvider {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
439
|
+
name: string;
|
|
440
|
+
id: number;
|
|
441
|
+
url: string;
|
|
442
|
+
minZoom: number;
|
|
443
|
+
maxZoom: number;
|
|
444
|
+
wms: boolean;
|
|
445
|
+
params?: any;
|
|
446
|
+
}
|
|
447
|
+
export interface AdbMapRequest {
|
|
448
|
+
url: string;
|
|
449
|
+
params: Params;
|
|
450
|
+
metersPerPixel: number;
|
|
451
|
+
dataProviderIds?: readonly number[];
|
|
452
|
+
}
|
|
453
|
+
export interface AdbMapDataSource {
|
|
454
|
+
load(request: AdbMapRequest): Observable<GeoJson>;
|
|
455
|
+
}
|
|
456
|
+
/** Default transport for the shared BFF observation-features contract. */
|
|
457
|
+
export declare class AdbBffMapDataSource implements AdbMapDataSource {
|
|
458
|
+
private readonly http;
|
|
459
|
+
load(request: AdbMapRequest): Observable<GeoJson>;
|
|
460
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbBffMapDataSource, never>;
|
|
461
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
262
462
|
}
|
|
263
|
-
|
|
264
|
-
export
|
|
265
|
-
export
|
|
463
|
+
/** Applications normally use the default BFF source without overriding this token. */
|
|
464
|
+
export declare const ADB_MAP_DATA_SOURCE: InjectionToken<AdbMapDataSource>;
|
|
465
|
+
export {};
|