|
|
@@ -1,20 +1,26 @@
|
|
|
-import { Component } from '@angular/core'
|
|
|
-import {Extent} from 'ol/extent'
|
|
|
-import {BcInfoService} from '../../bc-info.service'
|
|
|
+import { Component, Input } from '@angular/core'
|
|
|
+import { Extent } from 'ol/extent'
|
|
|
+import { BcInfoService } from '../../bc-info.service'
|
|
|
|
|
|
@Component({
|
|
|
selector: 'purchase',
|
|
|
- templateUrl: 'purchase.component.html',
|
|
|
+ templateUrl: 'purchase.component.html'
|
|
|
})
|
|
|
export class Purchase {
|
|
|
- hash: string;
|
|
|
- timestamp: string;
|
|
|
- extent: Extent;
|
|
|
- amount: number;
|
|
|
+ @Input() hash: string;
|
|
|
+ @Input() timestamp: string;
|
|
|
+ @Input() extent: Extent;
|
|
|
+ @Input() amount: number;
|
|
|
+
|
|
|
expanded: boolean = false;
|
|
|
loadingData: boolean = false;
|
|
|
|
|
|
- constructor(bcInfoService: BcInfoService){
|
|
|
+ constructor(bcInfoService: BcInfoService) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
+ onRequestData() {
|
|
|
+ window.open("https://eo.lesprojekt.cz/produkty/S2/2020/S2A_MSIL2A_20200422T095031_N9999_R079_T33UXQ_20201127T165009_NDVI.tif");
|
|
|
}
|
|
|
}
|