FarmMapsLib/projects/common-map/src/fm-map/components/selected-item-geotiff/selected-item-geotiff.component.html

31 lines
1.7 KiB
HTML
Raw Normal View History

2019-12-18 09:21:25 +00:00
<div class="spacer"></div>
<div *ngIf="item;let item">
<div class="card border-0">
<div class="card-body">
<div class="mb-2"><a href="#" (click)="handleBackToList($event)" i18n>Back</a></div>
<div class="card menu-card">
<h1>{{item.name}}</h1>
</div>
<div class="legend-container" *ngIf="item?.data.layers;let layers">
<div class="card menu-card">
<div *ngIf="layers.length>1">
2020-03-03 18:24:01 +00:00
<select (change)="onLayerChanged($event.target.value)" [value]="itemLayer.layerIndex">
<option *ngFor="let l of layers;" [value]="l.index">{{l.name}}</option>
</select>
</div>
2020-03-03 18:43:17 +00:00
<fm-map-layer-legend [layer]="layer(layers,itemLayer.layerIndex)" [histogramenabled]="true"></fm-map-layer-legend>
2019-12-18 09:21:25 +00:00
</div>
</div>
<div class="card menu-card">
<ul class="p-0 mt-2">
2020-04-06 12:51:43 +00:00
<li *ngIf="item.isEditable"><a href="#" class="mt-1 mr-1" (click)="handleOnEdit(item)"><i class="fa fa-pencil" aria-hidden="true" i18n-title title="Edit"></i>&nbsp;<span i18n>Edit</span></a></li>
2020-03-27 12:22:11 +00:00
<ng-container *ngIf="itemTypeService.isLayer(item)">
2020-04-06 12:51:43 +00:00
<li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fa fa-eye" aria-hidden="true" i18n-title title="Add as layer"></i>&nbsp;<span i18n>Add as overlay</span></a></li>
<li *ngIf="getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleRemoveLayer(item,itemLayer.layerIndex)"><i class="fa fa-eye" aria-hidden="true" i18n-title title="Remove overlay"></i>&nbsp;<span i18n>Remove overlay</span></a></li>
2020-03-27 12:22:11 +00:00
</ng-container>
2019-12-18 09:21:25 +00:00
</ul>
</div>
</div>
</div>
</div>