JSIndexMap

API for setting up and controlling the index map.

Creates the Module.getIndexMap API.

var map = Module.getIndexMap();

Function

setCameraTilt(tilt)

Sets the index map camera option.

Changes the camera tilt (in degrees).

Name
Type
Description

tilt

number

Camera tilt.

setDistanceMinMax(min, max)

Sets the index map camera option.

Sets the minimum and maximum distance from the visible point to the camera.

Name
Type
Description

min

number

Minimum camera visibility distance (in meters).

max

number

Maximum camera visibility distance (in meters).

setPosition(x, y)

Sets the position of the index map.

Name
Type
Description

x

number

Horizontal axis position coordinate (in pixels).

y

number

Vertical axis position coordinate (in pixels).

setSize(width, height)

Sets the width and height of the index map.

Name
Type
Description

width

number

Width of the index map (in pixels).

height

number

Height of the index map (in pixels).

setVisible(visible)

Sets the visibility option for the index map.

Sets the index map to a transparent/semi-transparent state.

Name
Type
Description

visible

boolean

true to make the index map visible. false to hide the index map.

Last updated