- add bar component wit d3.js

- new dataset-by-station-selector.component with angular/material/dialog
- zoom.componentn: disable button at lasst zoom level
This commit is contained in:
Arno Kaimbacher 2021-09-14 15:22:31 +02:00
parent 363cdb0681
commit 427b7b9c91
25 changed files with 1840 additions and 55 deletions

View file

@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
// import { StationService } from '../services/station.service';
import { DatasetApiService } from '../services/dataset-api.service';
import { Station } from '../../shared/models/station';
import { GeomonPlatform } from '../../shared/models/platform';
@Component({
selector: 'app-dashboard',
@ -10,7 +11,7 @@ import { Station } from '../../shared/models/station';
})
export class DashboardComponent implements OnInit {
public stations: Station[] = [];
public stations: GeomonPlatform[] = [];
constructor(private datasetApiService: DatasetApiService) { }
@ -21,9 +22,9 @@ export class DashboardComponent implements OnInit {
getStations(): void {
// this.stationService.getStations()
// .subscribe(stations => this.stations = stations);
this.datasetApiService.getStations('https://geomon.geologie.ac.at/52n-sos-webapp/api/')
this.datasetApiService.getPlatforms('https://geomon.geologie.ac.at/52n-sos-webapp/api/')
.subscribe((stations) => {
this.stations = stations
this.stations = stations;
});
}