File

models/control-form.model.ts

Description

Form fields for control panel.

Index

Properties

Properties

hasDecollementLayer
hasDecollementLayer: boolean
Type : boolean

Whether devollement toggle is on

hasEarthquakesLayer
hasEarthquakesLayer: boolean
Type : boolean

Whether latest earthquake toggle is on

hasFaultSectionLayer
hasFaultSectionLayer: boolean
Type : boolean

Whether fault sections toggle is on

hasHazardTiles
hasHazardTiles: boolean
Type : boolean

Whether zone source toggle is on

hasInterfaceSectionsLayer
hasInterfaceSectionsLayer: boolean
Type : boolean

Whether interface sections toggle is on

hasNshmBoundaryLayer
hasNshmBoundaryLayer: boolean
Type : boolean

Whether NSHM boundary toggle is on

hasTestSitesLayer
hasTestSitesLayer: boolean
Type : boolean

Whether test sites toggle is on

hasZoneSourcesLayer
hasZoneSourcesLayer: boolean
Type : boolean

Whether zone sources is toggled on

hazardTileImt
hazardTileImt: Imt
Type : Imt

IMT for hazard map tile

hazardTileReturnPeriod
hazardTileReturnPeriod: ReturnPeriod
Type : ReturnPeriod

Return period for hazard map tile

hazardTileYear
hazardTileYear: number
Type : number

Year for hazard map tile

latestEarthquakeTime
latestEarthquakeTime: LatestEarthquakeTime
Type : LatestEarthquakeTime

Latest earthquake feed time frame

model
model: NshmId
Type : NshmId

The NSHM

overlayOpacity
overlayOpacity: number
Type : number

Leaflet overlay opactiy

import {ReturnPeriod} from '@ghsc/nshmp-lib-ng/nshmp';
import {Imt} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/gmm';
import {NshmId} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/nshm';

/**
 * Form fields for control panel.
 */
export interface ControlForm {
  /** Whether devollement toggle is on */
  hasDecollementLayer: boolean;
  /** Whether latest earthquake toggle is on */
  hasEarthquakesLayer: boolean;
  /** Whether fault sections toggle is on */
  hasFaultSectionLayer: boolean;
  /** Whether zone source toggle is on */
  hasHazardTiles: boolean;
  /** Whether interface sections toggle is on */
  hasInterfaceSectionsLayer: boolean;
  /** Whether NSHM boundary toggle is on*/
  hasNshmBoundaryLayer: boolean;
  /** Whether test sites toggle is on */
  hasTestSitesLayer: boolean;
  /** Whether zone sources is toggled on */
  hasZoneSourcesLayer: boolean;
  /** IMT for hazard map tile */
  hazardTileImt: Imt;
  /** Return period for hazard map tile */
  hazardTileReturnPeriod: ReturnPeriod;
  /** Year for hazard map tile */
  hazardTileYear: number;
  /** Latest earthquake feed time frame */
  latestEarthquakeTime: LatestEarthquakeTime;
  /** The NSHM */
  model: NshmId;
  /** Leaflet overlay opactiy */
  overlayOpacity: number;
}

export enum LatestEarthquakeTime {
  DAY = 'DAY',
  MONTH = 'MONTH',
  WEEK = 'WEEK',
}

results matching ""

    No results matching ""