|
|
@@ -22,6 +22,7 @@ export class CalculatorService {
|
|
|
AVAILABLE_PRODUCTS = ['EVI', 'RVI4S1'] as const;
|
|
|
BLUR_MIN_VALUE = 0 as const;
|
|
|
BLUR_MAX_VALUE = 5 as const;
|
|
|
+ MIN_LPIS_VISIBLE_ZOOM = 15 as const;
|
|
|
SERVICE_BASE_URL = 'https://fieldcalc.lesprojekt.cz/' as const;
|
|
|
availableDates: Array<string>;
|
|
|
blurValue = 0;
|
|
|
@@ -30,6 +31,7 @@ export class CalculatorService {
|
|
|
lpisLoading = false;
|
|
|
quantileCount = 4;
|
|
|
selectedDate: string;
|
|
|
+ viewChanges: Subject<any> = new Subject();
|
|
|
//selectedProduct;
|
|
|
private _datesLoading: boolean;
|
|
|
private _zonesLoading: boolean;
|
|
|
@@ -55,11 +57,10 @@ export class CalculatorService {
|
|
|
this.selectedDate = undefined;
|
|
|
});
|
|
|
this.hsEventBus.olMapLoads.subscribe((map) => {
|
|
|
- console.log(map);
|
|
|
+ map.getView().on('change:resolution', (evt) => {
|
|
|
+ this.viewChanges.next(evt.target);
|
|
|
+ });
|
|
|
});
|
|
|
- this.hsEventBus.mapExtentChanges.subscribe((obj) => {
|
|
|
- console.log(obj);
|
|
|
- })
|
|
|
}
|
|
|
|
|
|
noDates(): boolean {
|
|
|
@@ -170,10 +171,6 @@ export class CalculatorService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- lpisWfsVisible(): boolean {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Updates WMS-t layer with the source image
|
|
|
* @param date - ISO date
|