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.
Return
X-axis offset value (in meters).
Sample
Refer to function displayGhostSymbolProperties.
getBasePointY() → number
Returns the Y-axis offset value based on the center coordinates of the ghost symbol.
Return
Y-axis offset value (in meters).
Sample
Refer to function displayGhostSymbolProperties.
getBasePointZ() → number
Returns the Z-axis offset value based on the center coordinates of the ghost symbol.
Return
Z-axis offset value (in meters).
Sample
Refer to function displayGhostSymbolProperties.
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
Refer to function displayGhostSymbolProperties.
getRotationX() → number
Returns the X-axis rotation angle of the ghost symbol object.
Return
X-axis rotation angle.
Sample
Refer to function displayGhostSymbolProperties.
getRotationY() → number
Returns the Y-axis rotation angle of the ghost symbol object.
Return
Y-axis rotation angle.
Sample
Refer to function displayGhostSymbolProperties.
getRotationZ() → number
Returns the Z-axis rotation angle of the ghost symbol object.
Return
Z-axis rotation angle.
Sample
Refer to function displayGhostSymbolProperties.
getScale() → JSSize3D
Returns the size of the ghost symbol object.
Return
JSSize3D: Successful return of the ghost symbol size (x,y,z).
null: Failure to return size.
Sample
Refer to function displayGhostSymbolProperties.
moveVertically(alt) → boolean
Moves the object vertically (up/down).
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.
x
number
X-axis movement value (in meters).
y
number
Y-axis movement value (in meters).
z
number
Z-axis movement value (in meters).
Return
true: Successful object setting.
false: Failed object setting.
Sample
Refer to function setBasePoint.
setGhostSymbol(name) → boolean
Specifies the object model registered in the ghost symbol map.
name
string
Name of the registered object.
Return
true: Successful object setting.
false: Failed object setting.
Sample
Refer to function createGhostSymbol.
setPosition(position) → boolean
Sets the position of the ghost symbol object.
Return
true: Setting successful.
false: Setting failed.
Sample
Refer to function createGhostSymbol.
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).
Return
true: Successful object setting.
false: Failed object setting.
Sample
Refer to function createGhostSymbol.
setRotation(x, y, z) → boolean
Sets the rotation angles of the ghost symbol object.
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.
Return
true: Successful object setting.
false: Failed object setting.
Sample
Refer to function setRotation.
Getter / Setter
getColor(), setColor(color) → JSColor
Sets the color of the object.
Return
The color of the object
getDescription(), setDescription(desc) → string
Set a description for the object.
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
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.
opacity
number
Opacity of the object
Return
The opacity of the object
getVisible(), setVisible(visible) → boolean
Sets the visibility state of an object.
visible
boolean
true: Make the object visible. false: Hide the object.
Return
true: Object visible state.
false: Object hidden state.
Last updated