JSSurfaceGraph

API for creating and modifying 3D mesh grid graph objects.

Creates a 3D mesh grid graph object using the Module.createPointGraph API.

var object = Module.createSurfaceGraph("ID");

Function

create(position, size) → boolean

Creates the graph.

Name
Type
Description

position

Graph location coordinates (longitude, latitude, altitude).

size

Size of the mesh grid graph.

getId() → string

Returns the ID of the object.

  • Return

    • string: Successful return of the object's Key string.

    • null: If the object is null.

insertAxisPoint(axis, value) → boolean

Adds tick values to the list for the X and Y axes.

Name
Type
Description

axis

number

Axis type. 0: X-axis. 1: Y-axis

value

number

Tick value.

insertLegend(value, color) → boolean

Sets the legend position value and color.

Name
Type
Description

value

number

Legend section value.

color

Legend color.

setAnimationSpeed(speed) → boolean

Sets the animation playback speed for the 3D mesh grid graph.

Name
Type
Description

speed

number

Bar rising animation speed (set values between 0.1 and 1.0)

setData(x, y, value) → boolean

Adds data to compose the 3D mesh grid graph.

Name
Type
Description

x

number

X-axis tick value.

y

number

Y-axis tick value.

value

number

Data.

setValueRange(min, max, interval) → boolean

Sets the height axis range for the 3D mesh grid graph.

Name
Type
Description

min

number

Axis minimum value.

max

number

Axis maximum value.

interval

number

Graph tick mark display interval (input values greater than 0.0).

setUnitText(text) → boolean

Sets the unit display text for the height axis of the 3D mesh grid graph.

Name
Type
Description

text

string

Unit display text.

Getter / Setter

getDescription(), setDescription(desc) → string

Set a description for the object.

Name
Type
Description

desc

string

Object description string.

  • Return

    • string: Successful return of the object's description string.

    • null: If the object is null.

getName(), setName(name) → string

Sets the name of the object.

Name
Type
Description

name

string

The name to set for the object.

  • Return

    • string: Successful return of the object's name.

    • null: If the object is null.

getVisible(), setVisible(visible) → boolean

Sets the visibility state of an object.

Name
Type
Description

visible

boolean

true: Make the object visible. false: Hide the object.

  • Return

    • true: Object visible state.

    • false: Object hidden state.

Last updated