|
@@ -15,8 +15,8 @@ import {
|
|
|
} from 'hslayers-ng';
|
|
} from 'hslayers-ng';
|
|
|
|
|
|
|
|
import {IrrigationForecastPanelComponent} from './irrigation/irrigation-forecast-panel.component';
|
|
import {IrrigationForecastPanelComponent} from './irrigation/irrigation-forecast-panel.component';
|
|
|
-import {IrrigationHistoryService} from './irrigation/irrigation-history.service';
|
|
|
|
|
import {ReservoirHistoryPanelComponent} from './irrigation/reservoir-history-panel.component';
|
|
import {ReservoirHistoryPanelComponent} from './irrigation/reservoir-history-panel.component';
|
|
|
|
|
+import {ReservoirHistoryService} from './irrigation/reservoir-history.service';
|
|
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
|
selector: 'application-root',
|
|
selector: 'application-root',
|
|
@@ -35,7 +35,7 @@ export class HslayersAppComponent {
|
|
|
private hsPanelContainerService: HsPanelContainerService,
|
|
private hsPanelContainerService: HsPanelContainerService,
|
|
|
private hsSidebarService: HsSidebarService,
|
|
private hsSidebarService: HsSidebarService,
|
|
|
private hsToastService: HsToastService,
|
|
private hsToastService: HsToastService,
|
|
|
- private irrigationHistoryService: IrrigationHistoryService
|
|
|
|
|
|
|
+ private reservoirHistoryService: ReservoirHistoryService
|
|
|
) {
|
|
) {
|
|
|
/* Create new button in the sidebar */
|
|
/* Create new button in the sidebar */
|
|
|
this.hsSidebarService.buttons.push(
|
|
this.hsSidebarService.buttons.push(
|
|
@@ -80,12 +80,12 @@ export class HslayersAppComponent {
|
|
|
});
|
|
});
|
|
|
const reservoirWfsLayer = new VectorLayer({
|
|
const reservoirWfsLayer = new VectorLayer({
|
|
|
properties: {
|
|
properties: {
|
|
|
- title: `Water level at ${this.irrigationHistoryService.timeStamp}`,
|
|
|
|
|
|
|
+ title: `Water level at ${this.reservoirHistoryService.timeStamp}`,
|
|
|
base: false,
|
|
base: false,
|
|
|
removable: false,
|
|
removable: false,
|
|
|
inlineLegend: true,
|
|
inlineLegend: true,
|
|
|
},
|
|
},
|
|
|
- source: this.irrigationHistoryService.reservoirWfsSource,
|
|
|
|
|
|
|
+ source: this.reservoirHistoryService.reservoirWfsSource,
|
|
|
});
|
|
});
|
|
|
/* Define the polygon's style using SLD */
|
|
/* Define the polygon's style using SLD */
|
|
|
const polygonSld = `<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
const polygonSld = `<?xml version="1.0" encoding="ISO-8859-1"?>
|