@igo2/geo 19.0.0-next.10 → 19.0.0-next.11

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.
@@ -2,6 +2,7 @@ import { AuthInterceptor } from '@igo2/auth';
2
2
  import { LanguageService } from '@igo2/core/language';
3
3
  import { MessageService } from '@igo2/core/message';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { OGCFilterService } from '../../filter/shared/ogc-filter.service';
5
6
  import { CapabilitiesService } from './capabilities.service';
6
7
  import { AnyDataSourceOptions, DataSource } from './datasources';
7
8
  import { WFSService } from './datasources/wfs.service';
@@ -11,17 +12,19 @@ export declare class DataSourceService {
11
12
  private capabilitiesService;
12
13
  private optionsService;
13
14
  private wfsDataSourceService;
15
+ private ogcFilterService;
14
16
  private languageService;
15
17
  private messageService;
16
18
  private authInterceptor?;
17
19
  datasources$: BehaviorSubject<DataSource[]>;
18
- constructor(capabilitiesService: CapabilitiesService, optionsService: OptionsService, wfsDataSourceService: WFSService, languageService: LanguageService, messageService: MessageService, authInterceptor?: AuthInterceptor);
20
+ constructor(capabilitiesService: CapabilitiesService, optionsService: OptionsService, wfsDataSourceService: WFSService, ogcFilterService: OGCFilterService, languageService: LanguageService, messageService: MessageService, authInterceptor?: AuthInterceptor);
19
21
  createAsyncDataSource(context: AnyDataSourceOptions, detailedContextUri?: string): Observable<DataSource>;
20
22
  private createOSMDataSource;
21
23
  private createFeatureDataSource;
22
24
  private createWebSocketDataSource;
23
25
  private createWFSDataSource;
24
26
  private createWMSDataSource;
27
+ private normalizeParams;
25
28
  private createWMTSDataSource;
26
29
  private createXYZDataSource;
27
30
  private createTileDebugDataSource;
@@ -31,6 +34,6 @@ export declare class DataSourceService {
31
34
  private createTileArcGISRestDataSource;
32
35
  private createMVTDataSource;
33
36
  private createClusterDataSource;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceService, [null, { optional: true; }, null, null, null, null]>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceService, [null, { optional: true; }, null, null, null, null, null]>;
35
38
  static ɵprov: i0.ɵɵInjectableDeclaration<DataSourceService>;
36
39
  }
@@ -7,6 +7,7 @@ import olProjection from 'ol/proj/Projection';
7
7
  import olSourceVector from 'ol/source/Vector';
8
8
  import { Observable } from 'rxjs';
9
9
  import { OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
10
+ import { OGCFilterService } from '../../../filter/shared/ogc-filter.service';
10
11
  import { DataSource } from './datasource';
11
12
  import { WFSDataSourceOptions } from './wfs-datasource.interface';
12
13
  import { WFSService } from './wfs.service';
@@ -18,12 +19,13 @@ interface FetchFeatureOptions {
18
19
  export declare class WFSDataSource extends DataSource {
19
20
  options: WFSDataSourceOptions;
20
21
  protected wfsService: WFSService;
22
+ private ogcFilterService;
21
23
  private authInterceptor?;
22
24
  ol: olSourceVector;
23
25
  set ogcFilters(value: OgcFiltersOptions);
24
26
  get ogcFilters(): OgcFiltersOptions;
25
27
  get saveableOptions(): Partial<WFSDataSourceOptions>;
26
- constructor(options: WFSDataSourceOptions, wfsService: WFSService, authInterceptor?: AuthInterceptor);
28
+ constructor(options: WFSDataSourceOptions, wfsService: WFSService, ogcFilterService: OGCFilterService, authInterceptor?: AuthInterceptor);
27
29
  protected createOlSource(): olSourceVector;
28
30
  setOgcFilters(ogcFilters: OgcFiltersOptions, triggerEvent?: boolean): void;
29
31
  onUnwatch(): void;
@@ -1,4 +1,4 @@
1
- import type { OgcFiltersOptions } from '../../../filter';
1
+ import type { OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
2
2
  import type { FeatureDataSourceOptions } from './feature-datasource.interface';
3
3
  export interface WFSDataSourceOptions extends FeatureDataSourceOptions {
4
4
  params: WFSDataSourceOptionsParams;
@@ -1,6 +1,7 @@
1
1
  import olSourceImageWMS from 'ol/source/ImageWMS';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
4
+ import { OGCFilterService } from '../../../filter/shared/ogc-filter.service';
4
5
  import { TimeFilterOptions } from '../../../filter/shared/time-filter.interface';
5
6
  import { LegendMapViewOptions } from '../../../layer/shared/layers/legend.interface';
6
7
  import { DataSource } from './datasource';
@@ -17,6 +18,7 @@ export interface TimeFilterableDataSource extends WMSDataSource {
17
18
  export declare class WMSDataSource extends DataSource {
18
19
  options: WMSDataSourceOptions;
19
20
  protected wfsService: WFSService;
21
+ private ogcFilterService;
20
22
  ol: olSourceImageWMS;
21
23
  get params(): any;
22
24
  set stylesParams(value: string);
@@ -36,7 +38,7 @@ export declare class WMSDataSource extends DataSource {
36
38
  * is enable by default even if the workspace is not use the layer will still be refreshed.
37
39
  */
38
40
  enableRefresh: boolean;
39
- constructor(options: WMSDataSourceOptions, wfsService: WFSService);
41
+ constructor(options: WMSDataSourceOptions, wfsService: WFSService, ogcFilterService: OGCFilterService);
40
42
  private dateFormat;
41
43
  addEvents(): void;
42
44
  protected createOlSource(): olSourceImageWMS;
@@ -1,6 +1,6 @@
1
1
  import { Extent } from 'ol/extent';
2
2
  import olProjection from 'ol/proj/Projection';
3
- import { IOgcFiltersOption, OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
3
+ import { IOgcFiltersOptionSaveable, OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
4
4
  import { WFSDataSourceOptions } from './wfs-datasource.interface';
5
5
  import { WMSDataSourceOptions } from './wms-datasource.interface';
6
6
  export declare const defaultEpsg = "EPSG:3857";
@@ -40,4 +40,4 @@ export declare function formatWFSQueryString(dataSourceOptions: WFSDataSourceOpt
40
40
  */
41
41
  export declare function checkWfsParams(wfsDataSourceOptions: any, srcType?: string): any;
42
42
  export declare function getFormatFromOptions(options: WFSDataSourceOptions | WMSDataSourceOptions): any;
43
- export declare function getSaveableOgcParams(options: OgcFiltersOptions): IOgcFiltersOption;
43
+ export declare function getSaveableOgcParams(options: OgcFiltersOptions): IOgcFiltersOptionSaveable;
@@ -199,7 +199,7 @@ export interface SliderOptionsInterface extends OgcFilterDuringOptions {
199
199
  displayFormat?: string;
200
200
  enabled?: boolean;
201
201
  }
202
- export interface IOgcFiltersOption extends Omit<OgcFiltersOptions, 'interfaceOgcFilters'> {
202
+ export interface IOgcFiltersOptionSaveable extends Omit<OgcFiltersOptions, 'interfaceOgcFilters'> {
203
203
  interfaceOgcFilters: IOgcInterfaceFilterOptions[];
204
204
  }
205
205
  export type IOgcInterfaceFilterOptions = Pick<OgcInterfaceFilterOptions, 'propertyName' | 'begin' | 'end' | 'active' | 'operator' | 'expression'>;
@@ -1,9 +1,10 @@
1
- import { WMSDataSource } from '../../datasource/shared/datasources/wms-datasource';
1
+ import type { WFSDataSourceOptions } from '../../datasource/shared/datasources/wfs-datasource.interface';
2
+ import type { WMSDataSource } from '../../datasource/shared/datasources/wms-datasource';
2
3
  import { OgcFilterableDataSource } from './ogc-filter.interface';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class OGCFilterService {
5
6
  filterByOgc(wmsDatasource: WMSDataSource, filterString: string): void;
6
- setOgcWFSFiltersOptions(wfsDatasource: OgcFilterableDataSource): void;
7
+ setOgcWFSFiltersOptions(options: WFSDataSourceOptions): void;
7
8
  setOgcWMSFiltersOptions(wmsDatasource: OgcFilterableDataSource): void;
8
9
  private mergeInterfaceFilters;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<OGCFilterService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/geo",
3
- "version": "19.0.0-next.10",
3
+ "version": "19.0.0-next.11",
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.10",
52
- "@igo2/common": "^19.0.0-next.10",
53
- "@igo2/core": "^19.0.0-next.10",
54
- "@igo2/utils": "^19.0.0-next.10",
51
+ "@igo2/auth": "^19.0.0-next.11",
52
+ "@igo2/common": "^19.0.0-next.11",
53
+ "@igo2/core": "^19.0.0-next.11",
54
+ "@igo2/utils": "^19.0.0-next.11",
55
55
  "@mat-datetimepicker/core": "^15.0.1",
56
56
  "file-saver": "^2.0.2",
57
57
  "flexsearch": "0.7.21",