50 lines
3.1 KiB
HTML
Raw Normal View History

2020-03-02 13:48:10 +01:00
<div class="spacer"></div>
2020-03-03 10:21:24 +01:00
<div *ngIf="selectedItem();let item">
2020-03-02 13:48:10 +01:00
<div class="card border-0">
<div class="card-body">
<fm-back-button></fm-back-button>
2020-03-02 13:48:10 +01:00
<div class="card menu-card">
<h2 *ngIf="parentOfItemType('vnd.farmmaps.itemtype.cropfield')">{{parentItem.name}}</h2>
2020-03-02 13:48:10 +01:00
<h1>{{item.name}}</h1>
</div>
<div class="legend-container" *ngIf="item?.data.layers;let layers">
<div class="card menu-card">
2021-01-29 12:00:59 +01:00
<h5><span i18n>Date</span>: {{temporalService.selectedDate(itemLayer)}}</h5>
2020-03-03 21:02:33 +01:00
<div class="d-flex justify-content-between">
2021-01-25 20:30:13 +01:00
<div>
2021-01-29 12:00:59 +01:00
<button *ngIf="temporalService.hasPrevious(itemLayer)" type="button" class="btn btn-link p-0" (click)="handlePreviousTemporal($event)">
<i class="fal fa-arrow-circle-left" aria-hidden="true" i18n-title title="Previous"></i>&nbsp;{{ temporalService.previousDate(itemLayer) }}
2020-03-03 21:02:33 +01:00
</button>
</div>
2021-01-25 20:30:13 +01:00
<div>
2021-01-29 12:00:59 +01:00
<button *ngIf="temporalService.hasNext(itemLayer)" type="button" class="btn btn-link p-0" (click)="handleNextTemporal($event)">
{{ temporalService.nextDate(itemLayer)}}&nbsp;<i class="fal fa-arrow-circle-right" aria-hidden="true" i18n-title title="Next"></i>
2020-03-03 21:02:33 +01:00
</button>
</div>
</div>
2021-01-29 11:25:37 +01:00
<fm-map-zoom-to-show-alert [layer]="currentItemLayer()?.layer"></fm-map-zoom-to-show-alert>
2020-03-03 21:02:33 +01:00
</div>
<div class="card menu-card pt-2">
2020-03-02 13:48:10 +01:00
<div *ngIf="layers.length>1">
<select (change)="onLayerChanged($event.target.value)">
<option *ngFor="let l of layers;" [value]="l.index" [selected]="itemLayer.layerIndex == l.index">{{l.name}}</option>
2020-03-02 13:48:10 +01:00
</select>
</div>
2020-07-15 13:41:25 +02:00
<fm-map-layer-legend [showTitle]="layers.length == 1"
[layer]="layer(layers,itemLayer.layerIndex)" [histogramenabled]="true"></fm-map-layer-legend>
2020-03-02 13:48:10 +01:00
</div>
</div>
<div class="card menu-card">
<ul class="p-0 mt-2">
2023-01-24 16:16:20 +01:00
<li *ngIf="item.isEditable"><a href="#" class="mt-1 me-1" (click)="handleOnEdit(item)"><i class="fal fa-pencil" aria-hidden="true" i18n-title title="Edit"></i>&nbsp;<span i18n>Edit</span></a></li>
2020-09-29 15:27:21 +02:00
<ng-container *ngIf="itemTypeService.isLayer(item)">
2021-01-22 14:52:10 +01:00
<li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-plus" 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="fas fa-layer-minus" aria-hidden="true" i18n-title title="Remove overlay"></i>&nbsp;<span i18n>Remove overlay</span></a></li>
2020-09-29 15:27:21 +02:00
</ng-container>
2021-01-24 09:09:43 +01:00
<li><a href="#" (click)="handleGoToChart(item)"><i class="fal fa-line-chart" aria-hidden="true" i18m-title title="Show chart"></i>&nbsp;<span i18n>Show chart</span></a></li>
2020-03-02 13:48:10 +01:00
</ul>
</div>
</div>
</div>
</div>