| 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 callbackSign~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 callbackSign~callback event, parameter {object: signage object, e: {x: screen x coordinate, y: screen y coordinate}} -
Add right-click event
Name Type Description callbackSign~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 jsonObjObject 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 callbackSign~callback Callback event -
Remove the left mouse button double click event
Name Type Description callbackSign~callback Callback event -
Remove the right-click event
Name Type Description callbackSign~callback Callback event -
Set the signage content box style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description contentFrameStyleObject signage content box style Name Type Description visibleBoolean Whether to display lineWidthNumber Line width(mm) lineColorArray.<Color> Line color(example:[Cesium.Color(1, 0, 0, 1)]) lineColorGradientTypeColorGradientType Color Gradient Type (example:ColorGradientType.Horizontal Horizontal Gradient) lineDashNumber dashed line interval (example: 10mm) backgroundColorArray.<Color> background color (example: [Cesium. Color (1,0,0,0.4) ]) backgroundColorGradientTypeColorGradientType Background Color Gradient Type (Example:ColorGradientType.Horizontal Horizontal Gradient) arcCornerBoolean Whether rounded (boolean) imagePathString Background image (example: "http://localhost:8090/iserver/mgis/situationSimulation/Sign/technology.png") -
Set Signage Traction Line Style
Name Type Description indecatorLineStyleObject Traction Line Style Name Type Description lineWidthNumber Line width(mm) aryLineColorsArray.<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 signImageString Base64 resource string or image path for the signage image -
Set signage text array
Name Type Description textsArray.<String> Text Array -
Set the signage content text style
Name Type Description textStyleObject Signage content text style Name Type Description visibleBoolean Whether to display colorColor Text color (example: Cesium. Color (1255,0,0,1)) fontFamilyString Font family fontStyleString Font style (example: 1. Default value: normal (normal) 2.italic (tilt)) fontSizeString Font size (unit: mm) fontWeightString Font thickness (example: 1. Keyword normal (normal) bold (bold) 2. Pure numbers 100-900 integer 400 (normal) 700 bold) indexNumber 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 textStylesArray text style array textStyleObject Text style to JSON object Name Type Description colorColor Signage Text Color (Example: Cesium. Color (1,0,0,1)) fontFamilyString Signage Text Font Arial | Helvetica |... (Example: "Microsoft YaHei") fontStyleString Signage Text Style italic | oblique (Example: "normal") fontSizeNumber Signage Text Size (Unit: mm) fontWeightString Signage Text Weight normal | bold | bolder | lighter | 100 | 200 | 300 |... | 900 (Example: "400") -
Set signage title
Name Type Description titleString Signage title -
Set the signage title box style, (signParmMode == SignParmMode. Parameter) takes effect
Name Type Description titleFrameStyleObject Signage title box style Name Type Description visibleBoolean Whether to display lineWidthNumber Line width(mm) lineColorArray.<Color> Line color(Example:[Cesium.Color(1, 0, 0, 1)]) lineColorGradientTypeColorGradientType Color Gradient Type(Example:ColorGradientType.Horizontal Horizontal Gradient) lineDashNumber Dashed line interval (example: 10 mm) backgroundColorArray.<Color> Background color(Example:Cesium.Color(1, 0, 0, 0.4)]) backgroundColorGradientTypeColorGradientType Background Color Gradient Type(Example:ColorGradientType.Horizontal Horizontal Gradient) arcCornerBoolean Whether rounded (boolean) imagePathString 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 titleStyleObject Signage title style Name Type Description visibleBoolean Whether to display colorColor Text color (example: Cesium. Color (1,0,0,1)) fontFamilyString Font family fontStyleString Font style (example: 1. Default value: normal (normal) 2.italic (tilt)) fontSizeString Font size (unit: mm) fontWeightString 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 trayStyleObject Signage tray style Name Type Description visibleBoolean Whether to display lineWidthNumber Line width(mm) lineColorArray.<Color> Line color(Example:[Cesium.Color(1, 0, 0, 1)]) lineDashNumber 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 optionsObject optional Object with the following properties: Name Type Description pointMPoint3D optional Location point rotateMPoint3D optional Rotation scaleMPoint3D optional Scaling
Type Definitions
-
Callback function of mouse click event
Name Type Description paramsObject Return parameter object Name Type Description objectObject Signage object eObject Screen coordinates Name Type Description xNumber Screen X Coordinates yNumber Screen Y Coordinates
