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

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.

Name
Type
Description

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

getResult() → string

Returns the results of the solar access analysis.

Returns the analysis results of sunlight exposure per grid.

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

setAnalysis(id, isAnalysis) → boolean

Sets exclusion grids.

Excludes the grid with the entered id from the solar access analysis.

Name
Type
Description

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

setColor(id, color) → boolean

Changes the color of the solar access analysis grid.

Changes the color of the grid for the specified id object.

Name
Type
Description

id

string

Grid id

color

Grid color setting.

  • Return

    • true : setting successful.

    • false : setting failed.

    • Failure conditions

      • If there is no grid.

      • If there is no layer.

  • Sample

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.

Name
Type
Description

startTime

Analysis start time

endTime

Analysis end time

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

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).

Name
Type
Description

layerName

string

Layer name

  • Return

    • true : Window creation successful.

    • false : Window creation failed.

    • Failure conditions

      • If fewer than 2 points are entered.

  • Sample

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

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

Last updated