From bd40e30feb3065b2cae9cd0b93f591bc96d6233d Mon Sep 17 00:00:00 2001 From: Filip Leitner Date: Fri, 16 Feb 2024 10:16:23 +0100 Subject: [PATCH] fix:Doubled featureloadstart events Feature load start is dispatched by OL even for custom loaders --- projects/hslayers/shared/add-data/url/hs.source.WfsSource.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/hslayers/shared/add-data/url/hs.source.WfsSource.ts b/projects/hslayers/shared/add-data/url/hs.source.WfsSource.ts index b593b48314..19795e7f6d 100644 --- a/projects/hslayers/shared/add-data/url/hs.source.WfsSource.ts +++ b/projects/hslayers/shared/add-data/url/hs.source.WfsSource.ts @@ -78,7 +78,8 @@ export class WfsSource extends VectorSource { hsUtilsService.paramsToURLWoEncode(params), ].join('?'); url = hsUtilsService.proxify(url); - this.dispatchEvent('featuresloadstart'); + //this.dispatchEvent('featuresloadstart'); + http.get(url, {responseType: 'text'}).subscribe({ next: (response) => { const features = readFeatures(