Skip to content

Commit

Permalink
fix(geo, integration): solve config bug save search result in layer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access authored Apr 12, 2023
1 parent c533b06 commit dab8166
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<button
igoStopPropagation
*ngIf="layer.meta.dataType === 'Feature'"
*ngIf="layer.meta.dataType === 'Feature' && saveSearchResultInLayer"
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export class SearchResultAddButtonComponent implements OnInit, OnDestroy{
*/
@Input() map: IgoMap;

/**
* show hide save search result in layer button
*/
@Input() saveSearchResultInLayer: boolean = false;

@Input()
get color() {
return this._color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ <h4><strong>{{ 'igo.integration.searchResultsTool.noResults' | translate }}</str
(resultMouseleave)="onResultUnfocus($event)"
(moreResults)="onSearch($event)"
[map]="map">
<ng-template #igoSearchItemToolbar let-result="result" *ngIf="saveSearchResultInLayer">
<ng-template #igoSearchItemToolbar let-result="result">
<igo-search-add-button
[map]="map"
[store]="store"
[stores]="stores"
[layer]="result">
[layer]="result"
[saveSearchResultInLayer]="saveSearchResultInLayer">
</igo-search-add-button>
</ng-template>
</igo-search-results>
Expand Down

0 comments on commit dab8166

Please sign in to comment.