JSAnalysis
API for setting analysis functions within the map.
Can be created with the Module.getAnalysis API.
var analysis = Module.getAnalysis();
createShadow(year, month, day, hour, minute) → boolean
Creates shadows for the specified date and time.
year
number
Solar time (year).
month
number
Solar time (month).
day
number
Solar time (day).
hour
number
Solar time (hour).
minute
number
Solar time (minute).
Return
true: Creation successful.
false: Creation failed.
createSlopePlane(angle, color) → boolean
Creates a slope analysis triangular plane.
angle
number
Angle from the terrain.
Return
true : Object creation successful.
false : Object creation failed.
Sample
Refer to function getSlopePlane.
CreateInterpolationPath(option) → array
Returns interpolated line coordinates.
option
Start point, input points, area, number of vertices, line length
Return
array : List of interpolated line coordinates returned successfully.
NULL : Failed to return the list of interpolated line coordinates.
Sample
Refer to function createInterpolatedLine.
getGridAnal() → JSGridAnal
Returns the JSGridAnal class.
Return
JSGridAnal : JSGridAnal object returned successfully.
null : Failed to return the JSGridAnal object.
Sample
Refer to function setWindRenderMode.
getJomangRatio(height) → string
Returns the viewshed occlusion ratio.
The input height is considered terrain below the set height, and a mountain above it.
height
number
Terrain reference height
Return
Building#OcclusionRatio#Mountain#OcclusionRatio#Terrain#OcclusionRatio#Sky#OcclusionRatio
build#43.15#mount#17.47#terrain#35.04#sky#4.34
Sample
Refer to function getJomangRatio.
getJudong(angle) → string
Measures and returns the main building length.
The input height sets the spreading angle.
angle
number
Spreading angle
Return
LayerName#ObjectKey#MainBuildingLength#Longitude#Latitude,
facility_build#263500000000000023630202#157.677215#129.123663#35.176768, ...
Sample
Refer to function getJudong.
setAllObjectRenderShadow(type)
Sets whether to draw shadows for all objects regardless of selection.
type
boolean
If true, generates shadows for all objects. If false, generates shadows only for selected objects.
Sample
Refer to function initPage.
setShadowSimulation(type)
Starts or stops the solar simulation.
type
boolean
If true, starts the simulation. If false, stops the simulation.
Sample
Refer to function executeShadowSimulation.
setShadowSimulTerm(term)
Sets the time interval for the solar simulation progress.
term
number
Time interval setting for simulation progress (in minutes).
Sample
Refer to function setShadowSimulationTimeTerm.
setShadowSimulTime(year, month, day, startHour, startMin, endHour, endMin)
Sets the solar simulation date (year, month, day), start time (hour, minute), end time (hour, minute).
year
number
Simulation year
month
number
Simulation month
day
number
Simulation day
startHour
number
Simulation start hour
startMin
number
Simulation start minute
endHour
number
Simulation end hour
endMin
number
Simulation end minute
Sample
Refer to function setShadowSimulationTimeTerm.
setViewshedMode(apply)
Starts or stops the viewshed analysis.
apply
boolean
If true, starts the viewshed analysis. If false, stops the viewshed analysis.
Type Definitions
JSAnalysis.InterpolationOption
Interpolation line coordinate creation options.
vertexcount
number
Number of line vertices.
scale
number
Interval for line generation.
Last updated