From 0904a2d4d7bbcf28d217a6b41a85409dbe86b2bf Mon Sep 17 00:00:00 2001 From: Filip Leitner Date: Mon, 9 Dec 2024 17:06:12 +0100 Subject: [PATCH] feat(query): Indicate loading of feature info inside query panel --- .../default-info-panel-body.component.html | 56 ++++++++++--------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.html b/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.html index 08a733cecd..fb5ccc21a2 100644 --- a/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.html +++ b/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.html @@ -1,29 +1,33 @@ @if ((hsQueryBaseService.features.length > 0) || (hsQueryBaseService.coordinates.length > 0)) { -
-
-
- - @for (html of hsQueryBaseService.featureInfoHtmls; track html) { -
- } -
- - - - @for (attribute of hsQueryBaseService.attributes; track attribute) { - - - - - } - -
{{attribute.name}}
+
+
+ @if(hsQueryBaseService.featureInfoHtmls.length > 0) { +
+ + @for (html of hsQueryBaseService.featureInfoHtmls; track html) { +
+ }
- + } + @else if(hsQueryBaseService.wmsFeatureInfoLoading) { +
+ } + + + + @for (attribute of hsQueryBaseService.attributes; track attribute) { + + + + + } + +
{{attribute.name}}
-} + +
+} \ No newline at end of file