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