Skip to content

Commit

Permalink
feat(query): Indicate loading of feature info inside query panel
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Dec 16, 2024
1 parent cc9fb06 commit 0904a2d
Showing 1 changed file with 30 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
@if ((hsQueryBaseService.features.length > 0) || (hsQueryBaseService.coordinates.length > 0)) {
<div
class="card hs-main-panel">
<div class="card-body">
<div ngbDropdown [hidden]="!(hsQueryBaseService.featureInfoHtmls.length > 0)">
<button ngbDropdownToggle class="btn btn-light w-100 rounded-0">
{{'QUERY.featureInfo' | translateHs }}
</button>
@for (html of hsQueryBaseService.featureInfoHtmls; track html) {
<div ngbDropdownMenu class="position-relative w-100"
[innerHtml]="html"></div>
}
</div>
<hs-query-feature-list></hs-query-feature-list>
<table class="table table-striped" style="table-layout:fixed"
[hidden]="!(hsQueryBaseService.attributes.length > 0)">
<tbody>
@for (attribute of hsQueryBaseService.attributes; track attribute) {
<tr>
<td class="first-col">{{attribute.name}}</td>
<td class="second-col" [innerHtml]="attribute.value"></td>
</tr>
}
</tbody>
</table>
<div class="card hs-main-panel">
<div class="card-body">
@if(hsQueryBaseService.featureInfoHtmls.length > 0) {
<div ngbDropdown>
<button ngbDropdownToggle class="btn btn-light w-100 rounded-0">
{{'QUERY.featureInfo' | translateHs }}
</button>
@for (html of hsQueryBaseService.featureInfoHtmls; track html) {
<div ngbDropdownMenu class="position-relative w-100 px-1 mt-1" [innerHtml]="html"></div>
}
</div>
<iframe id="invisible_popup" style="display:block; z-index:12122;left:-10000px; position:absolute"></iframe>
}
@else if(hsQueryBaseService.wmsFeatureInfoLoading) {
<div class="d-flex justify-content-center p-2" style="min-height: 38px;"><span
class="hs-loader hs-loader-dark ml-auto"></span></div>
}
<hs-query-feature-list></hs-query-feature-list>
<table class="table table-striped" style="table-layout:fixed"
[hidden]="!(hsQueryBaseService.attributes.length > 0)">
<tbody>
@for (attribute of hsQueryBaseService.attributes; track attribute) {
<tr>
<td class="first-col">{{attribute.name}}</td>
<td class="second-col" [innerHtml]="attribute.value"></td>
</tr>
}
</tbody>
</table>
</div>
}
<iframe id="invisible_popup" style="display:block; z-index:12122;left:-10000px; position:absolute"></iframe>
</div>
}

0 comments on commit 0904a2d

Please sign in to comment.