Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
Members
-
Scaling of 2D Billboard signage. Effective when signRenderMode == SignRenderMode. Billboard
-
Default Value:
1
-
Sets whether the billboard sign has depth detection enabled. Effective when signRenderMode == SignRenderMode. Billboard
-
Default Value:
false
-
Signage dom string, effective when signParmMode == Custom
-
Effect id
-
Set the length of the traction line (unit: mm)
-
Default Value:
8
-
Set/Get the traction line rotation (the angle with the X-axis of the screen as 0 and the counterclockwise direction as positive, unit: degrees)
-
Default Value:
90
-
offset2D : MPoint3D
-
2D Signage Offset (in pixels) takes effect when signRenderMode == SignRenderMode. Billboard or signRenderMode == SignRenderMode. DOM
-
Default Value:
MPoint3D(0,0,0)
-
offset3D : MPoint3D
-
3D Signage Offset (Percentage of Model [Plotted] Control Points) takes effect when signRenderMode == SignRenderMode. Solid
-
Default Value:
MPoint3D(0,0,0)
-
Signage resources are ready
-
Whether to show traction line
-
Default Value:
true
-
signEffectType : SignEffectType
-
Signage type, effective when signParmMode == SignParmMode. Parameter
-
Default Value:
SignEffectType.Sign1
-
signParmMode : SignParmMode
-
Signage Creation Mode
-
Default Value:
SignParmMode.Parameter
-
signRenderMode : SignRenderMode
-
Set the rendering mode of the signage
-
Default Value:
SignRenderMode.Billboard
-
solidRotation : MPoint3D
-
Sets the rotation of the 3D signage. Effective when signRenderMode == SignRenderMode. Solid
-
Default Value:
MPoint3D(0,0,0)
-
Sets the scaling of 3D signage. Effective when signRenderMode == SignRenderMode. Solid
-
Default Value:
1
-
Signage template resource path. This parameter is valid when signParmMode == Custom
Methods
-
Add left mouse click event
Name Type Description callback
Sign~callback event, parameter {object: signage object, e: {x: screen x coordinate, y: screen y coordinate}} -
Add left mouse button double click event
Name Type Description callback
Sign~callback event, parameter {object: signage object, e: {x: screen x coordinate, y: screen y coordinate}} -
Add right-click event
Name Type Description callback
Sign~callback event, parameter {object: signage object, e: {x: screen x coordinate, y: screen y coordinate}} -
Release resources
-
Json object to effect object, note: json object does not contain scene and geoGraphicObject objects, you need to call the corresponding interface settings (not completed)
Name Type Description jsonObj
Object json object -
Get the signage content box style
Returns:
Signage content box style (object see setContentFrameStyle() interface) -
Get the signage traction line style
Returns:
Traction line style (setIndecatorLineStyle() interface) -
Get the Base64 resource string or image path of the signage image
-
Get an array of signage text
Returns:
Text array -
Get an array of signage text styles
Returns:
Array of text styles (for object objects, see: setTextStyles () interface) -
Get the sign title
Returns:
Signage title -
Get the signage title box style
Returns:
Signage title box style (see setTitleFrameStyle () interface for object details) -
Get the signage title style
Returns:
Signage title style (see setTitleStyle () interface for object details) -
Get the signage tray style
Returns:
Signage tray style (setTrayStyle () interface) -
Remove the left mouse click event
Name Type Description callback
Sign~callback Callback event -
Remove the left mouse button double click event
Name Type Description callback
Sign~callback Callback event -
Remove the right-click event
Name Type Description callback
Sign~callback Callback event -
Set the signage content box style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description contentFrameStyle
Object signage content box style Name Type Description visible
Boolean Whether to display lineWidth
Number Line width(mm) lineColor
Array.<Color> Line color(example:[Cesium.Color(1, 0, 0, 1)]) lineColorGradientType
ColorGradientType Color Gradient Type (example:ColorGradientType.Horizontal Horizontal Gradient) lineDash
Number dashed line interval (example: 10mm) backgroundColor
Array.<Color> background color (example: [Cesium. Color (1,0,0,0.4) ]) backgroundColorGradientType
ColorGradientType Background Color Gradient Type (Example:ColorGradientType.Horizontal Horizontal Gradient) arcCorner
Boolean Whether rounded (boolean) imagePath
String Background image (example: "http://localhost:8090/iserver/mgis/situationSimulation/Sign/technology.png") -
Set Signage Traction Line Style
Name Type Description indecatorLineStyle
Object Traction Line Style Name Type Description lineWidth
Number Line width(mm) aryLineColors
Array.<Color> Line color(Example:[MGIS_SuperMap3D.Color(255, 0, 0, 1)]) -
Set the Base64 resource string or image path of the signage image (signParmMode == 2 takes effect)
Name Type Description signImage
String Base64 resource string or image path for the signage image -
Set signage text array
Name Type Description texts
Array.<String> Text Array -
Set the signage content text style
Name Type Description textStyle
Object Signage content text style Name Type Description visible
Boolean Whether to display color
Color Text color (example: Cesium. Color (1255,0,0,1)) fontFamily
String Font family fontStyle
String Font style (example: 1. Default value: normal (normal) 2.italic (tilt)) fontSize
String Font size (unit: mm) fontWeight
String Font thickness (example: 1. Keyword normal (normal) bold (bold) 2. Pure numbers 100-900 integer 400 (normal) 700 bold) index
Number The signage content specifies the row index, if not set, the default is all content styles. -
Set the signage text style array (the text style array needs to correspond one-to-one with the text array)
Name Type Description textStyles
Array text style array textStyle
Object Text style to JSON object Name Type Description color
Color Signage Text Color (Example: Cesium. Color (1,0,0,1)) fontFamily
String Signage Text Font Arial | Helvetica |... (Example: "Microsoft YaHei") fontStyle
String Signage Text Style italic | oblique (Example: "normal") fontSize
Number Signage Text Size (Unit: mm) fontWeight
String Signage Text Weight normal | bold | bolder | lighter | 100 | 200 | 300 |... | 900 (Example: "400") -
Set signage title
Name Type Description title
String Signage title -
Set the signage title box style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description titleFrameStyle
Object Signage title box style Name Type Description visible
Boolean Whether to display lineWidth
Number Line width(mm) lineColor
Array.<Color> Line color(Example:[Cesium.Color(1, 0, 0, 1)]) lineColorGradientType
ColorGradientType Color Gradient Type(Example:ColorGradientType.Horizontal Horizontal Gradient) lineDash
Number Dashed line interval (example: 10 mm) backgroundColor
Array.<Color> Background color(Example:Cesium.Color(1, 0, 0, 0.4)]) backgroundColorGradientType
ColorGradientType Background Color Gradient Type(Example:ColorGradientType.Horizontal Horizontal Gradient) arcCorner
Boolean Whether rounded (boolean) imagePath
String Background image (example: "http://localhost:8090/iserver/mgis/situationSimulation/Sign/technology.png") -
Set the signage title style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description titleStyle
Object Signage title style Name Type Description visible
Boolean Whether to display color
Color Text color (example: Cesium. Color (1,0,0,1)) fontFamily
String Font family fontStyle
String Font style (example: 1. Default value: normal (normal) 2.italic (tilt)) fontSize
String Font size (unit: mm) fontWeight
String Font weight (example: 1. Keyword normal (normal) bold (bold) 2. Pure numbers 100-900 integer 400 (normal) 700 bold) -
Set the signage tray style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description trayStyle
Object Signage tray style Name Type Description visible
Boolean Whether to display lineWidth
Number Line width(mm) lineColor
Array.<Color> Line color(Example:[Cesium.Color(1, 0, 0, 1)]) lineDash
Number dashed line interval (example: 10 mm) -
Effect object to Json object, note: json object does not contain scene and geoGraphicObject objects (not completed)
Returns:
Json string -
Set effect properties
Name Type Description options
Object optional Object with the following properties: Name Type Description point
MPoint3D optional Location point rotate
MPoint3D optional Rotation scale
MPoint3D optional Scaling
Type Definitions
-
Callback function of mouse click event
Name Type Description params
Object Return parameter object Name Type Description object
Object Signage object e
Object Screen coordinates Name Type Description x
Number Screen X Coordinates y
Number Screen Y Coordinates