JSAnalysisGridShadow
API for setting solar access analysis functions within the map.
Can be created with the Module.getAnalysisGridShadow API.
var gridShadow = Module.getAnalysisGridShadow();Function
clear() → boolean
Initializes the visualized results of the solar access analysis.
Clears the visualized grid and selected objects.
- Return - true : initialization successful. 
- false : initialization failed. 
- Failure conditions - If there is no grid. 
- If there is no layer. 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.clear();create(layerName, gap, isClip) → boolean
Creates a grid for solar access analysis.
Generates a grid with the specified gap size (unit: m) for both width and height.
layerName
string
The name of the layer that will contain the visualized grid objects
gap
number
The size of the grid (width x height)
isClip
boolean
Whether to evenly divide the specified area into grid sizes
- Return - true : creation successful. 
- false : creation failed. 
- Failure conditions - When the entered layer name is not created on the map. 
- When creating a grid area, there are 3 or fewer points 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.create("gridlayer", 10, true);getResult() → string
Returns the results of the solar access analysis.
Returns the analysis results of sunlight exposure per grid.
- Return - JSON of sunlight exposure per grid, continuous sunlight exposure. 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
var result = gridShadow.getResult();
const json = JSON.parse(result);reset() → boolean
Resets the options for the solar access analysis grid.
Initializes options such as exclusion grid, grid color.
- Return - true : Solar access analysis grid option reset successful. 
- false : Solar access analysis grid option reset failed. 
- Failure conditions - If there is no grid. 
- If there is no layer. 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.reset();setAnalysis(id, isAnalysis) → boolean
Sets exclusion grids.
Excludes the grid with the entered id from the solar access analysis.
id
string
Grid id
isAnalysis
boolean
Whether to include in analysis
- Return - true : setting successful. 
- false : setting failed. 
- Failure conditions - If there is no grid. 
- If there is no layer. 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.setAnalysis("id", false);setColor(id, color) → boolean
Changes the color of the solar access analysis grid.
Changes the color of the grid for the specified id object.
id
string
Grid id
- Return - true : setting successful. 
- false : setting failed. 
- Failure conditions - If there is no grid. 
- If there is no layer. 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.setColor("id", new Module.JSColor(150, 0, 255, 0));startAnalysis(startTime, endTime, interval) → boolean
Executes the solar access analysis.
Runs the solar access analysis based on the start time, end time, and time interval.
interval
number
Analysis time interval (unit: minutes)
- Return - true : Solar access analysis successful. 
- false : Solar access analysis failed. 
- Failure conditions - If there is no grid. 
- If there is no layer. 
- If no objects are selected. 
 
 
- Sample - Refer to function setEarthquakeMesh. 
 
var gridShadow = Module.getAnalysisGridShadow();
gridShadow.startAnalysis(new Module.JSDateTime(2023, 4, 17, 9, 30, 0), new Module.JSDateTime(2023, 4, 17, 15, 30, 0), 10);createWindow(layerName) → boolean
Creates a window for window analysis.
A window is created with two points entered by clicking with the mouse (Module.MML_ANALYS_WINDOWSHADOW).
layerName
string
Layer name
- Return - true : Window creation successful. 
- false : Window creation failed. 
- Failure conditions - If fewer than 2 points are entered. 
 
 
- Sample - Refer to function inputWindow. 
 
copyPasteWindow() → boolean
Copies and pastes a window for window analysis.
Pastes the most recently created window to the top-left corner of the point entered by clicking with the mouse (Module.MML_ANALYS_WINDOWSHADOW).
- Return - true : Window copy successful. 
- false : Window copy failed. 
- Failure conditions - If there is no layer. 
- If no window has been created. 
- If no point has been entered. 
 
 
- Sample - Refer to function copyPasteWindow. 
 
copyPasteFloor() → boolean
Copies and pastes a floor for window analysis.
Pastes all the most recently created windows to the top-left corner of the point entered by clicking with the mouse (Module.MML_ANALYS_WINDOWSHADOW).
- Return - true : Floor copy successful. 
- false : Floor copy failed. 
 
- Conditions for floor copy failure - If there is no layer. 
- If no window has been created. 
- If no point has been entered. 
 
- Sample - Refer to function copyPasteFloor. 
 
Last updated
