models/state.model.ts
Data mapping application state.
Properties |
availableModels |
availableModels:
|
Type : Parameter[]
|
Available NSHMs |
hazardTiles |
hazardTiles:
|
Type : HazardTile[]
|
Hazard map tiles |
layers |
layers:
|
Type : Layers
|
Map layers |
nshmServices |
nshmServices:
|
Type : NshmMetadata[]
|
NSHMs services |
sourceFeaturesUsages |
sourceFeaturesUsages:
|
Type : Map<string | FeaturesUsageResponse>
|
Source features usage response |
treesUsageResponses |
treesUsageResponses:
|
Type : Map<string | SourceLogicTreesUsage>
|
NSHMs MFD usages |
import {FaultSectionProperties} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/fault-sections-service';
import {
FeaturesUsageResponse,
FeatureType,
} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/features-service';
import {NshmMetadata} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/nshm-service';
import {SourceLogicTreesUsage} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/source-logic-trees-service';
import {Parameter} from '@ghsc/nshmp-utils-ts/libs/nshmp-ws-utils/metadata';
import {EarthquakeFeatureProperties} from './earthquake-props.model';
import {HazardTile} from './hazard-tile.model';
import {Layers} from './layers.model';
/**
* Data mapping application state.
*/
export interface AppState {
/** Available NSHMs */
availableModels: Parameter[];
/** Hazard map tiles */
hazardTiles: HazardTile[];
/** Map layers */
layers: Layers;
/** NSHMs services */
nshmServices: NshmMetadata[];
/** Source features usage response */
sourceFeaturesUsages: Map<string, FeaturesUsageResponse>;
/** NSHMs MFD usages */
treesUsageResponses: Map<string, SourceLogicTreesUsage>;
}
/**
* Bottom sheet data for the info popup component.
*/
export interface InfoPopupData {
/** GeoJSON feature */
feature: GeoJSON.Feature<GeoJSON.Geometry, FaultSectionProperties>;
/** Feature type */
featureType: FeatureType;
}
export interface EarthquakeInfoPopupData {
/** GeoJSON feature */
feature: GeoJSON.Feature<GeoJSON.Point, EarthquakeFeatureProperties>;
}