JSEarthquake
API for setting earthquake wave analysis functions within the map.
Created with the Module.getEarthquake API.
var earthquake = Module.getEarthquake();
Clear() → boolean
Initializes the earthquake wave analysis.
Return
true : Earthquake wave initialization successful.
false : Earthquake wave initialization failed.
Failure conditions
If the map has not been updated.
If there is no earthquake wave analysis.
SetResolution(resolution) → boolean
Sets the size of the earthquake wave.
Sets a square area with the same width and height based on the specified resolution (unit: m).
resolution
number
Sets the width and height of the earthquake wave.
Return
true : Earthquake wave size setting successful.
false : Earthquake wave size setting failed.
Failure conditions
If a value less than 0.001 is set.
Sample
Refer to function setEarthquakeMesh.
SetHeightWeight(height) → boolean
Sets the height of the earthquake wave form.
Sets the height ratio of the earthquake wave based on the specified height (unit: m).
height
number
Sets the maximum display height of the earthquake wave.
Return
true : Earthquake wave height ratio setting successful.
false : Earthquake wave height ratio setting failed.
Failure conditions
If a value less than 0.01 is set.
If a value greater than 200 is set.
Sample
Refer to function setEarthquakeMesh.
SetBaseAltitude(altitude) → boolean
Sets the creation height of the earthquake wave.
Sets the position of the earthquake wave at a height of the specified altitude (unit: m) based on sea level altitude.
altitude
number
Sets the creation height of the earthquake wave.
Return
true : Earthquake wave height setting successful.
false : Earthquake wave height setting failed.
Sample
Refer to function setEarthquakeMesh.
GetEarthquakeData(url, position) → boolean
Creates an earthquake wave.
The specified url (.eqs file) is a proprietary earthquake wave file format.
Loads the earthquake wave file format to construct the earthquake waveform.
url
string
File (eqs) URL path.
Return
true : Earthquake wave creation successful.
false : Earthquake wave creation failed.
Sample
Refer to function setEarthquakeMesh.
Last updated