File

models/state.model.ts

Description

Data mapping application state.

Index

Properties

Properties

availableModels
availableModels: Parameter[]
Type : Parameter[]

Available NSHMs

bounds
bounds: L.LatLngBounds
Type : L.LatLngBounds

Map bounds

earthquakeInfoPopupData
earthquakeInfoPopupData: EarthquakeInfoPopupData
Type : EarthquakeInfoPopupData

Earthqkaue popup info

hazardTiles
hazardTiles: HazardTile[]
Type : HazardTile[]

Hazard map tiles

infoPopupData
infoPopupData: InfoPopupData
Type : InfoPopupData

Data for info popup

layers
layers: Layers
Type : Layers

Map layers

map
map: L.Map
Type : L.Map

Leaflet map

mapOptions
mapOptions: L.MapOptions
Type : L.MapOptions

Leaflet map options

nshmServices
nshmServices: NshmMetadata[]
Type : NshmMetadata[]

NSHMs services

sourceFeaturesUsages
sourceFeaturesUsages: Map<string | FeaturesUsageResponse>
Type : Map<string | FeaturesUsageResponse>

Source features usage response

treesUsageResponses
treesUsageResponses: Map<string | SourceLogicTreesUsage>
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 * as L from 'leaflet';

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[];
  /** Map bounds */
  bounds: L.LatLngBounds;
  /** Earthqkaue popup info */
  earthquakeInfoPopupData: EarthquakeInfoPopupData;
  /** Hazard map tiles */
  hazardTiles: HazardTile[];
  /** Data for info popup */
  infoPopupData: InfoPopupData;
  /** Map layers */
  layers: Layers;
  /** Leaflet map */
  map: L.Map;
  /** Leaflet map options */
  mapOptions: L.MapOptions;
  /** 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>;
}

results matching ""

    No results matching ""