JSGhostSymbol

API for creating and modifying ghost symbol objects.

Create a API with Module.createGhostSymbol.

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

Function

getBasePointX() → number

Returns the X-axis offset value based on the center coordinates of the ghost symbol.

getBasePointY() → number

Returns the Y-axis offset value based on the center coordinates of the ghost symbol.

getBasePointZ() → number

Returns the Z-axis offset value based on the center coordinates of the ghost symbol.

getDescription() → string

Returns the description of the object.

  • Return

    • string: Successful return of the object description string.

    • null: If the object is null.

getGhostSymbolMapKey() → string

Returns the referenced object name of the ghost symbol.

  • Return

    • string: Successful return of the referenced object name of the ghost symbol.

    • null: Failure to return the name.

getId() → string

Returns the Key of the object.

  • Return

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

    • null: If the object is null.

getPosition() → JSVector3D

Returns the latitude and longitude position of the ghost symbol object.

  • Return

    • JSVector3D: Returns the centroid coordinates (longitude, latitude, altitude) of the ghost symbol successfully.

    • null: Coordinate return failed.

  • Sample

getRotationX() → number

Returns the X-axis rotation angle of the ghost symbol object.

getRotationY() → number

Returns the Y-axis rotation angle of the ghost symbol object.

getRotationZ() → number

Returns the Z-axis rotation angle of the ghost symbol object.

getScale() → JSSize3D

Returns the size of the ghost symbol object.

moveVertically(alt) → boolean

Moves the object vertically (up/down).

Name
Type
Description

alt

number

Vertical movement distance of the object.

  • Return

    • true: Successful specification of movement distance.

    • false: Failure to specify movement distance.

setBasePoint(x, y, z) → boolean

Sets the movement based on the center coordinates of the ghost symbol by the input values.

Name
Type
Description

x

number

X-axis movement value (in meters).

y

number

Y-axis movement value (in meters).

z

number

Z-axis movement value (in meters).

setGhostSymbol(name) → boolean

Specifies the object model registered in the ghost symbol map.

Name
Type
Description

name

string

Name of the registered object.

setPosition(position) → boolean

Sets the position of the ghost symbol object.

Name
Type
Description

position

Ghost symbol location coordinates (longitude, latitude, altitude).

setScale(scale) → boolean

Sets the size of the ghost symbol object.

Input values for scale(x,y,z) must be greater than 0.

Initial size setting for x,y,z is (1,1,1).

Name
Type
Description

scale

Size setting for the ghost symbol.

setRotation(x, y, z) → boolean

Sets the rotation angles of the ghost symbol object.

Name
Type
Description

x

number

Rotation angle change on the X-axis.

y

number

Rotation angle change on the Y-axis.

z

number

Rotation angle change on the Z-axis.

Getter / Setter

getColor(), setColor(color) → JSColor

Sets the color of the object.

Name
Type
Description

color

Color of the object

  • Return

    • The color of the object

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.

getOpacity(), setOpacity(opacity) → number

Sets the opacity of the object.

Name
Type
Description

opacity

number

Opacity of the object

  • Return

    • The opacity of the object

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