@regionerne/gis-komponent 0.0.59 → 0.0.61
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 +302 -131
- package/fesm2022/regionerne-gis-komponent.mjs.map +1 -1
- package/lib/components/active-objects/activeObjects.component.d.ts +3 -1
- package/lib/components/gis-komponent/gis-komponent.component.d.ts +1 -0
- package/lib/components/layer-selector/layer-selector.component.d.ts +0 -1
- package/lib/components/toolbox/toolbox.component.d.ts +4 -3
- package/lib/models/widget.constants.d.ts +24 -0
- package/lib/services/drawLayerSource.service.d.ts +16 -4
- package/lib/services/layoutService.d.ts +27 -2
- package/lib/services/printDrawLayerSource.service.d.ts +5 -1
- package/package.json +1 -1
|
@@ -19,7 +19,9 @@ export declare class ActiveObjectsComponent implements OnInit, OnChanges {
|
|
|
19
19
|
private _conflictService;
|
|
20
20
|
private _undoRedo;
|
|
21
21
|
isZoomedToAll: boolean;
|
|
22
|
-
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
22
|
+
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>[]>;
|
|
23
25
|
collapsed: boolean;
|
|
24
26
|
settings: GisKomponentSettings;
|
|
25
27
|
sessionDone: EventEmitter<any>;
|
|
@@ -15,6 +15,7 @@ export declare class GisKomponentComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private readonly _http;
|
|
16
16
|
private readonly _layerHelper;
|
|
17
17
|
private readonly _layerErrorService;
|
|
18
|
+
private readonly _layoutService;
|
|
18
19
|
private readonly _featureLoader;
|
|
19
20
|
private readonly _drawLayerService;
|
|
20
21
|
private readonly _showHoverInfoService;
|
|
@@ -46,7 +46,6 @@ export declare class LayerSelectorComponent implements OnInit, OnChanges {
|
|
|
46
46
|
private readonly _dmpCatalogService;
|
|
47
47
|
private readonly _dmpMapper;
|
|
48
48
|
private readonly _profileService;
|
|
49
|
-
private readonly LAYER_SELECTOR_POSITION_KEY;
|
|
50
49
|
ngOnInit(): void;
|
|
51
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
52
51
|
onLayerSelectorDragEnded(event: CdkDragEnd): void;
|
|
@@ -128,15 +128,16 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
|
|
|
128
128
|
onMeasureModeChanged(event: MatSelectChange): void;
|
|
129
129
|
toggleFeatureSearch(): void;
|
|
130
130
|
togglePointSearch(): void;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
toggleCowiPage(): void;
|
|
132
|
+
toggleSkraafotoPage(): void;
|
|
133
|
+
toggleGoogleStreetviewPage(): void;
|
|
134
134
|
startDocumentPointSearch(): void;
|
|
135
135
|
startDocumentPolygonSearch(): void;
|
|
136
136
|
togglePolygonSearch(): void;
|
|
137
137
|
private _disablePolygonSearch;
|
|
138
138
|
private _enablePointSearch;
|
|
139
139
|
deleteGeometrySearchItem(result: GeometrySearchResponse, itemId: string, event: MouseEvent): void;
|
|
140
|
+
deleteAllGeometrySearchItem(): void;
|
|
140
141
|
private _disablePointSearch;
|
|
141
142
|
openUrl(url: string | null | undefined, event: MouseEvent): void;
|
|
142
143
|
splitBySearchedObject(item: SearchResponseItem, event: MouseEvent): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class WidgetConstants {
|
|
2
|
+
static collapsedHeight: number;
|
|
3
|
+
static collapsedWidth: number;
|
|
4
|
+
static toolboxHeight: number;
|
|
5
|
+
static toolboxWidth: number;
|
|
6
|
+
static searchHeight: number;
|
|
7
|
+
static searchWidth: number;
|
|
8
|
+
static activeObjectsHeight: number;
|
|
9
|
+
static activeObjectsWidth: number;
|
|
10
|
+
static layerSelectorHeight: number;
|
|
11
|
+
static layerSelectorWidth: number;
|
|
12
|
+
static legendsHeight: number;
|
|
13
|
+
static legendsWidth: number;
|
|
14
|
+
static toolboxDefaultX: number;
|
|
15
|
+
static toolboxDefaultY: number;
|
|
16
|
+
static searchDefaultX: number;
|
|
17
|
+
static searchDefaultY: number;
|
|
18
|
+
static activeObjectsDefaultX: number;
|
|
19
|
+
static activeObjectsDefaultY: number;
|
|
20
|
+
static layerSelectorDefaultX: number;
|
|
21
|
+
static layerSelectorDefaultY: number;
|
|
22
|
+
static legendsDefaultX: number;
|
|
23
|
+
static legendsDefaultY: number;
|
|
24
|
+
}
|
|
@@ -6,13 +6,25 @@ export declare class DrawLayerSourceService {
|
|
|
6
6
|
private _current;
|
|
7
7
|
private _hiddenFeatures;
|
|
8
8
|
private _features;
|
|
9
|
-
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
9
|
+
features$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>[]>;
|
|
10
12
|
private _selectedForHighlight;
|
|
11
|
-
selectedForHighlight$: import("rxjs").Observable<Feature<import("ol/geom").Geometry
|
|
13
|
+
selectedForHighlight$: import("rxjs").Observable<Feature<import("ol/geom").Geometry, {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}>[]>;
|
|
12
16
|
source: VectorSource;
|
|
13
|
-
layer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry
|
|
17
|
+
layer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}>>;
|
|
14
22
|
previewSource: VectorSource;
|
|
15
|
-
previewLayer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry
|
|
23
|
+
previewLayer: VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
}>>;
|
|
16
28
|
private _disabled;
|
|
17
29
|
constructor();
|
|
18
30
|
private _initListener;
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
+
import { Map } from 'ol';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export interface WidgetPositionOptions {
|
|
5
|
+
initialPosition: string;
|
|
6
|
+
widgetName: string;
|
|
7
|
+
widgetWidth: number;
|
|
8
|
+
widgetHeight: number;
|
|
9
|
+
offsetX?: number;
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
currentPosition?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
} | null;
|
|
15
|
+
resizedContainerHeight?: number | null;
|
|
16
|
+
resizedContainerWidth?: number | null;
|
|
17
|
+
}
|
|
2
18
|
export declare class LayoutService {
|
|
3
|
-
|
|
19
|
+
private _map;
|
|
20
|
+
mapResizedSubject: Subject<boolean>;
|
|
21
|
+
set map(value: Map);
|
|
22
|
+
keepWidgetInViewPort(dragPosition: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}, widgetName: string, widgetHeight: number, widgetWidth: number, resizedContainerHeight?: number | null, resizedContainerWidth?: number | null): {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
calculateWidgetPosition({ initialPosition, widgetName, widgetWidth, widgetHeight, offsetX, offsetY, currentPosition, resizedContainerHeight, resizedContainerWidth }: WidgetPositionOptions): {
|
|
4
30
|
x: number;
|
|
5
31
|
y: number;
|
|
6
32
|
};
|
|
7
|
-
bringElementIntoViewIfNeeded(elementClass: string, offsetValue: number, collapsed: boolean): void;
|
|
8
33
|
private _savePosition;
|
|
9
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
10
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
@@ -4,7 +4,11 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class PrintDrawLayerSourceService {
|
|
5
5
|
private _current;
|
|
6
6
|
source: VectorSource;
|
|
7
|
-
layer: VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry
|
|
7
|
+
layer: VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>>, import("ol").Feature<import("ol/geom").Geometry, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>>;
|
|
8
12
|
constructor();
|
|
9
13
|
private _initListener;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrintDrawLayerSourceService, never>;
|