GIScene.Control.TextPanel Class
The Compass Control provides a panel on which you can add text.
Constructor
GIScene.Control.TextPanel
(
-
[config] object properties may be: width, height, text:['Line1','Line2']
Parameters:
-
[config] object properties may be: width, height, text:['Line1','Line2']
Object optional, textAlign:'left|start|center|end|right', pxFromLeft, pxFromTop, fontSize, lineSpace, fontFamily, fontStyle, color, halo
Methods
activate
()
Activates this Control
deactivate
()
Deactivates this Control
setScene
(
-
scene
Sets the scene property. This is automatically called on scene.addControl()
Parameters:
-
scene
Object
Properties
config
Object
The config which is used to initialize the CameraLight-Control. Merged from defaults and passed config Object.