@regionerne/gis-komponent 0.0.96 → 0.0.98

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.
@@ -177,9 +177,11 @@ export declare class ToolboxComponent implements OnInit, OnChanges {
177
177
  startDelete(): void;
178
178
  isTriangle(feature: Feature): boolean;
179
179
  startEditRemovePoints(): void;
180
+ private _startRemovePoints;
180
181
  highlight(wkt: string, event: MouseEvent): void;
181
182
  addToActiveObjectsList(item: SearchResponseItem, event: MouseEvent, withBuffer?: boolean): void;
182
183
  startEdit(): void;
184
+ private _editFeature;
183
185
  private _startDraw;
184
186
  private _areaSource;
185
187
  private _areaLayer;
@@ -4,9 +4,11 @@ import { ILayer } from '../models/ILayer';
4
4
  import Filter from 'ol/format/filter/Filter';
5
5
  import { FeatureCollection } from 'geojson';
6
6
  import { Coordinate } from 'ol/coordinate';
7
+ import { LayerHelperService } from './layerHelper.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare abstract class SearchProviderBase<TResponse, TFilter> {
9
10
  protected _http: HttpClient;
11
+ protected _layerHelperService: LayerHelperService;
10
12
  private wfsFormat;
11
13
  private _serializer;
12
14
  search(searchValue: TFilter, maxCount: number): Observable<TResponse[]>;
@@ -1,6 +1,9 @@
1
1
  import BaseLayer from 'ol/layer/Base';
2
2
  import Map from 'ol/Map';
3
+ import { ILayer } from '../models/ILayer';
3
4
  import { BehaviorSubject, Subject } from 'rxjs';
5
+ import { HttpParams } from '@angular/common/http';
6
+ import { SearchableLayer } from './wfsSearch.service';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare class LayerHelperService {
6
9
  activeLayersChanged: BehaviorSubject<boolean>;
@@ -15,6 +18,7 @@ export declare class LayerHelperService {
15
18
  layersAddedToMapSubject: BehaviorSubject<boolean>;
16
19
  private _map;
17
20
  set map(value: Map);
21
+ getParamsObject(layer: ILayer | SearchableLayer): HttpParams;
18
22
  setName(layer: BaseLayer, name: string): void;
19
23
  getName(layer: BaseLayer): string;
20
24
  setDbId(layer: BaseLayer, id: number | string): void;
@@ -2,6 +2,7 @@ import { FeatureCollection } from 'geojson';
2
2
  import { Observable } from 'rxjs';
3
3
  import { SearchProvider, SearchResponse } from './searchProvider.service';
4
4
  import { Geometry } from 'ol/geom';
5
+ import { IKeyValue } from '../models/ILayer';
5
6
  import * as i0 from "@angular/core";
6
7
  export interface WfsFeatureCollection extends FeatureCollection {
7
8
  numberMatched?: number;
@@ -18,6 +19,9 @@ export interface SearchableLayer {
18
19
  geometryField: string;
19
20
  name: string;
20
21
  fieldsToExcludeFromInfoFromInfo: string;
22
+ authKeyName: string;
23
+ token?: string;
24
+ wmsParameters: IKeyValue[];
21
25
  }
22
26
  export declare class WFSSearchService implements SearchProvider {
23
27
  name: string;
@@ -27,6 +31,7 @@ export declare class WFSSearchService implements SearchProvider {
27
31
  private _searcheableLayers;
28
32
  private geoJsonFormat;
29
33
  private _serializer;
34
+ private _layerHelper;
30
35
  search(searchValue?: string, geometry?: Geometry, maxCount?: number): Observable<SearchResponse>[];
31
36
  setSearcheableLayers(layers: SearchableLayer[]): void;
32
37
  private _formatWKT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regionerne/gis-komponent",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0",
6
6
  "@angular/core": ">=19.2.0",