@provoly/dashboard 0.18.7 → 0.18.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 @@ import { toLonLat, get, transform, fromLonLat } from 'ol/proj';
17
17
  import { register } from 'ol/proj/proj4';
18
18
  import { Vector, TileWMS, WMTS, XYZ, Cluster } from 'ol/source';
19
19
  import proj4 from 'proj4';
20
- import { map, combineLatest, filter, BehaviorSubject, distinctUntilChanged, startWith, debounceTime, delay, mergeMap, of, from } from 'rxjs';
20
+ import { map, combineLatest, filter, BehaviorSubject, distinctUntilChanged, startWith, debounceTime, delay, mergeMap, of, from, switchMap } from 'rxjs';
21
21
  import { ScaleLine } from 'ol/control';
22
22
  import { Polygon, Circle as Circle$1, LineString } from 'ol/geom';
23
23
  import PointerInteraction from 'ol/interaction/Pointer';
@@ -1497,7 +1497,7 @@ class WidgetMapComponent extends DataWidgetComponent {
1497
1497
  this.classes$,
1498
1498
  this.fields$,
1499
1499
  this.datasourceFilters$
1500
- ]).pipe(mergeMap(([layers, classes, fields, filters]) => combineLatest(layers
1500
+ ]).pipe(debounceTime(100), switchMap(([layers, classes, fields, filters]) => combineLatest(layers
1501
1501
  .map((layer) => (classes.find((clazz) => clazz.id === layer.oClass) ?? { attributes: [] }).attributes
1502
1502
  .map((attr) => ({ attr, field: fields.find((field) => field.id === attr.field) }))
1503
1503
  .filter(({ attr, field }) => GeometricFieldTypes.includes(field?.type ?? '----'))