API Docs for: 1.0.2
Show:

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

Item Index

Properties

Methods

activate

()

Inherited from GIScene.Control but overwritten in GIScene\Control\TextPanel.js:79

Activates this Control

deactivate

()

Inherited from GIScene.Control but overwritten in GIScene\Control\TextPanel.js:100

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.

isActive

Boolean