- npm updates

- add legend-entry-component files
- add DatasetOptions class
This commit is contained in:
Arno Kaimbacher 2021-10-05 16:28:13 +02:00
parent dbf8aa495e
commit 91cd763da0
15 changed files with 1043 additions and 534 deletions

View file

@ -1,4 +1,5 @@
import { GeomonPlatform } from "./platform";
import { InternalIdHandler } from '../../common/components/services/internal-id-handler.service';
const INTERNAL_ID_SEPERATOR = '_';
@ -37,7 +38,7 @@ export class GeomonDataset {
public url: string,
public label: string
) {
// this.internalId = new InternalIdHandler().createInternalId(url, id);
this.internalId = new InternalIdHandler().createInternalId(url, id);
}
// public get internalId(): string {
// return this.url + INTERNAL_ID_SEPERATOR + this.id;
@ -69,6 +70,7 @@ export class ParameterConstellation {
public procedure: Parameter;
public phenomenon: Parameter;
public category: Parameter;
public platform: Parameter;
}
interface Parameter {
id: string;
@ -100,6 +102,23 @@ export interface DataConst extends GeomonTimeseries {
}
export interface DatasetFilter {
phenomenon?: string;
category?: string;
procedure?: string;
feature?: string;
offering?: string;
service?: string;
expanded?: boolean;
locale?: string;
type?: DatasetType;
}
export enum DatasetType {
Timeseries = 'timeseries',
Trajectory = 'trajectory',
Profile = 'profile'
}
// export class TimeseriesData {
// public id: string;