@igo2/geo 19.0.0-next.28 → 19.0.0-next.29

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,8 +17,8 @@ export interface TimeFilterableDataSource extends WMSDataSource {
17
17
  }
18
18
  export declare class WMSDataSource extends DataSource {
19
19
  options: WMSDataSourceOptions;
20
- protected wfsService: WFSService;
21
- private ogcFilterService;
20
+ protected wfsService?: WFSService;
21
+ private ogcFilterService?;
22
22
  ol: olSourceImageWMS;
23
23
  get params(): any;
24
24
  set stylesParams(value: string);
@@ -38,7 +38,7 @@ export declare class WMSDataSource extends DataSource {
38
38
  * is enable by default even if the workspace is not use the layer will still be refreshed.
39
39
  */
40
40
  enableRefresh: boolean;
41
- constructor(options: WMSDataSourceOptions, wfsService: WFSService, ogcFilterService: OGCFilterService);
41
+ constructor(options: WMSDataSourceOptions, wfsService?: WFSService, ogcFilterService?: OGCFilterService);
42
42
  private dateFormat;
43
43
  addEvents(): void;
44
44
  protected createOlSource(): olSourceImageWMS;
@@ -9,14 +9,14 @@ import { ImageLayerOptions } from './image-layer.interface';
9
9
  import { Layer } from './layer';
10
10
  import { LayerType } from './layer.interface';
11
11
  export declare class ImageLayer extends Layer {
12
- messageService: MessageService;
12
+ messageService?: MessageService;
13
13
  authInterceptor?: AuthInterceptor;
14
14
  type: LayerType;
15
15
  dataSource: WMSDataSource | ImageArcGISRestDataSource;
16
16
  options: ImageLayerOptions;
17
17
  ol: olLayerImage<olSourceImage>;
18
18
  private watcher;
19
- constructor(options: ImageLayerOptions, messageService: MessageService, authInterceptor?: AuthInterceptor);
19
+ constructor(options: ImageLayerOptions, messageService?: MessageService, authInterceptor?: AuthInterceptor);
20
20
  protected createOlLayer(): olLayerImage<olSourceImage>;
21
21
  init(map: MapBase | undefined): void;
22
22
  remove(): void;
@@ -4,6 +4,7 @@ import type { MapBase } from '../../../map/shared/map.abstract';
4
4
  import { type AnyLayer } from './any-layer';
5
5
  import { LayerGroupBase } from './layer-base';
6
6
  import { type LayerGroupOptions } from './layer-group.interface';
7
+ export declare const ID_GROUP_PREFIX = "local-group_";
7
8
  export declare class LayerGroup extends LayerGroupBase {
8
9
  children: AnyLayer[] | null;
9
10
  options: LayerGroupOptions;
@@ -2,12 +2,12 @@ import { MessageService } from '@igo2/core/message';
2
2
  import { Watcher } from '@igo2/utils';
3
3
  import type { ImageLayer } from '../shared/layers/image-layer';
4
4
  export declare class ImageWatcher extends Watcher {
5
+ private messageService?;
5
6
  protected id: string;
6
7
  protected loaded: number;
7
8
  protected loading: number;
8
9
  private source;
9
- private messageService;
10
- constructor(layer: ImageLayer, messageService: MessageService);
10
+ constructor(layer: ImageLayer, messageService?: MessageService);
11
11
  protected watch(): void;
12
12
  protected unwatch(): void;
13
13
  private handleLoadStart;
@@ -1,5 +1,6 @@
1
1
  export * from './image-watcher';
2
2
  export * from './layer.utils';
3
+ export * from './layer-options.utils';
3
4
  export * from './tile-watcher';
4
5
  export * from './outputLegend';
5
6
  export * from './vector-watcher';
@@ -0,0 +1,12 @@
1
+ import { AnyLayerOptions } from '../shared';
2
+ export declare function mergeLayersOptions(layersOptionsTree: AnyLayerOptions[], layersOptions: AnyLayerOptions[]): AnyLayerOptions[];
3
+ export declare function getLayerOptionIdentifier(layerOptions: AnyLayerOptions): string | undefined;
4
+ /**
5
+ * Recursively finds the parent ID of a target layer option within a tree structure.
6
+ *
7
+ * @param tree - The array of layer options representing the tree structure.
8
+ * @param target - The target layer option whose parent ID is to be found.
9
+ * @param path - The current path of IDs traversed during the search (used internally).
10
+ * @returns The parent ID as a dot-separated string, or undefined if no parent is found.
11
+ */
12
+ export declare function findParentId(tree: AnyLayerOptions[], target: AnyLayerOptions, path?: string[]): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/geo",
3
- "version": "19.0.0-next.28",
3
+ "version": "19.0.0-next.29",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -42,10 +42,10 @@
42
42
  "@angular/material-moment-adapter": "^19.0.0",
43
43
  "@angular/material": "^19.0.0",
44
44
  "@angular/platform-browser": "^19.0.0",
45
- "@igo2/auth": "^19.0.0-next.28",
46
- "@igo2/common": "^19.0.0-next.28",
47
- "@igo2/core": "^19.0.0-next.28",
48
- "@igo2/utils": "^19.0.0-next.28",
45
+ "@igo2/auth": "^19.0.0-next.29",
46
+ "@igo2/common": "^19.0.0-next.29",
47
+ "@igo2/core": "^19.0.0-next.29",
48
+ "@igo2/utils": "^19.0.0-next.29",
49
49
  "@mat-datetimepicker/core": "^15.0.1",
50
50
  "@turf/boolean-intersects": "^7.2.0",
51
51
  "@turf/buffer": "^7.2.0",