HIGHLIGHT

Type: string

UNSELECTED

Type: string

MAP_ELEMENT

Type: string

TRIANGLE

Type: string

CIRCLE

Type: string

DOWNTRIANGLE

Type: string

SQUARE

Type: string

CROSS

Type: string

StationMarkerClassName

dist/leafletutil.mjs
StationMarkerClassName

Type: string

InactiveStationMarkerClassName

dist/leafletutil.mjs
InactiveStationMarkerClassName

Type: string

QuakeMarkerClassName

dist/leafletutil.mjs
QuakeMarkerClassName

Type: string

STATION_ICON_SIZE

dist/leafletutil.mjs
STATION_ICON_SIZE

Type: number

stationIcon

inactiveStationIcon

dist/leafletutil.mjs
inactiveStationIcon

defaultMapElement_css

dist/leafletutil.mjs
defaultMapElement_css

defaultMarker_css

dist/leafletutil.mjs
defaultMarker_css

stationMarker_css

dist/leafletutil.mjs

Default marker css

stationMarker_css
Deprecated: This is deprecated.

cssClassForStationCodes

dist/leafletutil.mjs

Create CSS class based on station codes.

cssClassForStationCodes(station: any): any
Parameters
station (any) the station
Returns
any: selector string like sta_CO_JSC

cssClassForNetworkCode

dist/leafletutil.mjs

Create CSS class based on network codes.

cssClassForNetworkCode(network: any): any
Parameters
network (any) the network
Returns
any: selector string like net_CO

createStationSVG

dist/leafletutil.mjs
createStationSVG(iconSize: any, symbol: any)
Parameters
iconSize (any = STATION_ICON_SIZE)
symbol (any = TRIANGLE)

createStationMarker

dist/leafletutil.mjs

Create a station marker as a leaflet divIcon. Also binds the station codes as a tooltip.

createStationMarker(station: any, classList: any, isactive: any, centerLon: any, iconSize: any, iconSymbol: any): any
Parameters
station (any) the station, with lat, lon
classList (any) additional css class names to add
isactive (any = true) =true adds inactiveStationMapMarker to class list if not active
centerLon (any = 0) =0 center map longitude, station lon are adjusted by +-360 to be closest to this
iconSize (any = STATION_ICON_SIZE) =STATION_ICON_SIZE optional icon size
iconSymbol (any = TRIANGLE) =TRIANGLE optional icon symbol, one of triangle, downtriangle, square or cross
Returns
any: leaflet marker for the station

getRadiusForMag

dist/leafletutil.mjs
getRadiusForMag(magnitude: any, magScaleFactor: any)
Parameters
magnitude (any)
magScaleFactor (any)

createQuakeMarker

dist/leafletutil.mjs

Create a circle marker for Quake. Radius is linearly scaled by magnitude, with min radius of 1 for very small magnitudes. Longitudes are adjusted by +-360 to draw centered on the given center longitude, eg event at lon=350 may plot at -10 if centerlon < 180.

createQuakeMarker(quake: any, magScaleFactor: any, classList: any, centerLon: any, magToRadius: any): any
Parameters
quake (any) earthquake
magScaleFactor (any = 5) scale factor
classList (any) CSS classes to attach
centerLon (any = 0) center longitude of the map
magToRadius (any = getRadiusForMag)
Returns
any: leaflet circleMarker
leaflet_css
TILE_TEMPLATE

Type: string

DEFAULT_TILE_TEMPLATE

dist/leafletutil.mjs
DEFAULT_TILE_TEMPLATE

Type: string

TILE_ATTRIBUTION

dist/leafletutil.mjs
TILE_ATTRIBUTION

Type: string

MAX_ZOOM

Type: string

DEFAULT_MAX_ZOOM

dist/leafletutil.mjs
DEFAULT_MAX_ZOOM

Type: number

CENTER_LAT

Type: string

DEFAULT_CENTER_LAT

dist/leafletutil.mjs
DEFAULT_CENTER_LAT

Type: number

CENTER_LON

Type: string

DEFAULT_CENTER_LON

dist/leafletutil.mjs
DEFAULT_CENTER_LON
ZOOM_LEVEL

Type: string

DEFAULT_ZOOM_LEVEL

dist/leafletutil.mjs
DEFAULT_ZOOM_LEVEL

Type: number

MAG_SCALE

Type: string

DEFAULT_MAG_SCALE

dist/leafletutil.mjs
DEFAULT_MAG_SCALE

Type: number

FIT_BOUNDS

Type: string

QUAKE_MARKER_STYLE_EL

dist/leafletutil.mjs
QUAKE_MARKER_STYLE_EL

Type: string

STATION_MARKER_STYLE_EL

dist/leafletutil.mjs
STATION_MARKER_STYLE_EL

Type: string

STATION_CODE_SEP

dist/leafletutil.mjs
STATION_CODE_SEP

Type: string

LEAFLET_CSS_ID

dist/leafletutil.mjs
LEAFLET_CSS_ID

Type: string

MAP_CSS_ID

Type: string

MARKER_CSS_ID

Type: string

QuakeStationMap

dist/leafletutil.mjs
new QuakeStationMap(seisData: any, seisConfig: any)

Extends SeisPlotElement

Parameters
seisData (any)
seisConfig (any)
Static Members
observedAttributes
Instance Members
addQuake(quake, classname)
allQuakes()
quakeAddClass(quake, classname)
quakeRemoveClass(quake, classname)
quakeRemoveAllClass(classname)
quakeUnhighlight()
quakeHighlight(quakeList)
addStation(station, classname)
allStations()
stationIcon(iconSize, iconSymbol)
stationAddClass(station, classname)
stationRemoveClass(station, classname)
stationUnhighlight()
stationHighlight(stationList)
colorClass(classname, color)
removeColorClass(classname)
fitBounds
fitBounds
centerLat
centerLat
centerLon
centerLon
zoomLevel
zoomLevel
magScale
magScale
drawQuakeLayer()
drawStationLayer()
updateQuakeMarkerStyle()
updateStationMarkerStyle()
drawGeoRegions(map)
createStationMarkerColorStyle()
createQuakeMarkerColorStyle()
attributeChangedCallback(_name, _oldValue, _newValue)

cssClassForQuake

dist/leafletutil.mjs
cssClassForQuake(q: any)
Parameters
q (any)