@igo2/geo 19.0.0-next.7 → 19.0.0-next.8
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.
|
@@ -17,7 +17,7 @@ export declare const jsonRegex: RegExp;
|
|
|
17
17
|
* @param ogcFilters OgcFiltersOptions
|
|
18
18
|
* @returns A string representing the datasource options, based on filter and views
|
|
19
19
|
*/
|
|
20
|
-
export declare function buildUrl(options: WFSDataSourceOptions, extent: Extent, proj: olProjection,
|
|
20
|
+
export declare function buildUrl(options: WFSDataSourceOptions, extent: Extent, proj: olProjection, randomParam?: boolean): string;
|
|
21
21
|
/**
|
|
22
22
|
* This method build/standardize WFS call query params based on the layer property.
|
|
23
23
|
* @param wfsDataSourceOptions WFSDataSourceOptions The common wfs datasource options interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthInterceptor } from '@igo2/auth';
|
|
2
2
|
import { MessageService } from '@igo2/core/message';
|
|
3
|
-
import
|
|
3
|
+
import OlFeature from 'ol/Feature';
|
|
4
4
|
import { Extent } from 'ol/extent';
|
|
5
5
|
import olLayerVector from 'ol/layer/Vector';
|
|
6
6
|
import olProjection from 'ol/proj/Projection';
|
|
@@ -11,8 +11,7 @@ import { FeatureDataSource } from '../../../datasource/shared/datasources/featur
|
|
|
11
11
|
import { WebSocketDataSource } from '../../../datasource/shared/datasources/websocket-datasource';
|
|
12
12
|
import { WFSDataSource } from '../../../datasource/shared/datasources/wfs-datasource';
|
|
13
13
|
import { WFSDataSourceOptions } from '../../../datasource/shared/datasources/wfs-datasource.interface';
|
|
14
|
-
import type { MapBase } from '../../../map/shared
|
|
15
|
-
import { MapExtent } from '../../../map/shared/map.interface';
|
|
14
|
+
import type { MapBase, MapExtent } from '../../../map/shared';
|
|
16
15
|
import { GeoDBService } from '../../../offline/geoDB/geoDB.service';
|
|
17
16
|
import { LayerDBService } from '../../../offline/layerDB/layerDB.service';
|
|
18
17
|
import { GeoNetworkService } from '../../../offline/shared/geo-network.service';
|
|
@@ -26,10 +25,8 @@ export declare class VectorLayer extends Layer {
|
|
|
26
25
|
geoDBService?: GeoDBService;
|
|
27
26
|
layerDBService?: LayerDBService;
|
|
28
27
|
type: LayerType;
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private previousOgcFilters;
|
|
32
|
-
private xhrAccumulator;
|
|
28
|
+
private lastRequest;
|
|
29
|
+
private ongoingRequests;
|
|
33
30
|
dataSource: FeatureDataSource | WFSDataSource | ArcGISRestDataSource | WebSocketDataSource | ClusterDataSource;
|
|
34
31
|
options: VectorLayerOptions;
|
|
35
32
|
ol: olLayerVector<olSourceVector>;
|
|
@@ -43,21 +40,22 @@ export declare class VectorLayer extends Layer {
|
|
|
43
40
|
private removeLayerFromIDB;
|
|
44
41
|
private maintainOptionsInIdb;
|
|
45
42
|
private maintainFeaturesInIdb;
|
|
46
|
-
protected flash(feature:
|
|
43
|
+
protected flash(feature: OlFeature): void;
|
|
47
44
|
init(map: MapBase | undefined): void;
|
|
48
45
|
setExtent(extent: MapExtent): void;
|
|
49
46
|
onUnwatch(): void;
|
|
50
47
|
stopAnimation(): void;
|
|
51
48
|
enableTrackFeature(id: string | number): void;
|
|
52
49
|
centerMapOnFeature(id: string | number): void;
|
|
53
|
-
trackFeature(id:
|
|
50
|
+
trackFeature(id: string | number, feat: {
|
|
51
|
+
feature: OlFeature;
|
|
52
|
+
}): void;
|
|
54
53
|
disableTrackFeature(): void;
|
|
55
54
|
/**
|
|
56
55
|
* Custom loader for a WFS datasource
|
|
57
56
|
* @internal
|
|
58
57
|
* @param vectorSource the vector source to be created
|
|
59
58
|
* @param options olOptions from source
|
|
60
|
-
* @param interceptor the interceptor of the data
|
|
61
59
|
* @param extent the extent of the requested data
|
|
62
60
|
* @param resolution the current resolution
|
|
63
61
|
* @param proj the projection to retrieve the data
|
|
@@ -65,7 +63,10 @@ export declare class VectorLayer extends Layer {
|
|
|
65
63
|
* @param failure failure callback
|
|
66
64
|
* @param randomParam random parameter to ensure cache is not causing problems in retrieving new data
|
|
67
65
|
*/
|
|
68
|
-
customWFSLoader(vectorSource: olSourceVector, options: WFSDataSourceOptions,
|
|
66
|
+
customWFSLoader(vectorSource: olSourceVector, options: WFSDataSourceOptions, extent: Extent, resolution: number, proj: olProjection, success: (features: OlFeature[]) => void, failure: () => void, randomParam?: boolean): void;
|
|
67
|
+
private abortRequests;
|
|
68
|
+
private getProjection;
|
|
69
|
+
private batchGetFeatures;
|
|
69
70
|
/**
|
|
70
71
|
* Custom loader to get feature from a WFS datasource
|
|
71
72
|
* @internal
|
|
@@ -78,13 +79,13 @@ export declare class VectorLayer extends Layer {
|
|
|
78
79
|
* @param failure failure callback
|
|
79
80
|
*/
|
|
80
81
|
private getFeatures;
|
|
82
|
+
private removeRequest;
|
|
81
83
|
/**
|
|
82
84
|
* Custom loader for vector layer.
|
|
83
85
|
* @internal
|
|
84
86
|
* @param vectorSource the vector source to be created
|
|
85
87
|
* @param url the url string or function to retrieve the data
|
|
86
88
|
* @param extent the extent of the requested data
|
|
87
|
-
* @param resolution the current resolution
|
|
88
89
|
* @param projection the projection to retrieve the data
|
|
89
90
|
*/
|
|
90
91
|
private customLoader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/geo",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.8",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@angular/material": "^19.0.0",
|
|
49
49
|
"@angular/material-moment-adapter": "^19.0.0",
|
|
50
50
|
"@angular/platform-browser": "^19.0.0",
|
|
51
|
-
"@igo2/auth": "^19.0.0-next.
|
|
52
|
-
"@igo2/common": "^19.0.0-next.
|
|
53
|
-
"@igo2/core": "^19.0.0-next.
|
|
54
|
-
"@igo2/utils": "^19.0.0-next.
|
|
51
|
+
"@igo2/auth": "^19.0.0-next.8",
|
|
52
|
+
"@igo2/common": "^19.0.0-next.8",
|
|
53
|
+
"@igo2/core": "^19.0.0-next.8",
|
|
54
|
+
"@igo2/utils": "^19.0.0-next.8",
|
|
55
55
|
"@mat-datetimepicker/core": "^15.0.1",
|
|
56
56
|
"file-saver": "^2.0.2",
|
|
57
57
|
"flexsearch": "0.7.21",
|