JSMultiPoint
API for creating and modifying Multi POI objects.
Create a API with Module.createMultiPoint.
var object = Module.createMultiPoint("ID");
Function
getId() → string
Returns the ID of the object.
Return
string: Successful return of the object's Key string.
null: If the object is null.
setMainPoint(id, position, icon) → boolean
Creates a MultiPoint object.
Creates a main POI for visualization at the center coordinate.
id
string
id of the Multi POI object.
Return
true: Creation successful.
false: Creation failed.
Sample
Refer to function initPage.
setMainPointVisible(visible) → boolean
Sets the visibility of the Main POI.
visible
boolean
true: Make the object visible. false: Hide the object.
Return
true: Object setting successful.
false: If the object does not exist.
setSpreadEffect(set) → boolean
Sets the effect of Sub POIs spreading out based on the distance between the camera and the object on/off.
When off, Sub POIs remain in a spread out state regardless of camera distance.
set
boolean
Set the effect on/off. true for on, false for off.
Return
true: Object setting successful.
false: If the object does not exist.
insertSubPoint(id, icon) → boolean
Adds a MultiPoint object.
Adds a POI automatically arranged in a clockwise direction based on the central coordinate.
The key of the object is composed of (main POI name)#(name received as input).
id
string
id of the Multi POI object.
Return
true: Addition successful.
false: Addition failed.
Sample
Refer to function createSubPoints.
setBar(color, altitude, width) → boolean
Creates a line connecting the terrain to the main POI location.
The altitude and width units are in meters.
altitude
number
Starting height of the column
width
number
Thickness of the column
Return
true: Object addition successful.
false: Object addition failed.
Sample
Refer to function createMultiPoint.
Getter / Setter
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.
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