new GlobeKitView( canvas, options, onInitCB ) → {GlobeKitView}

Description
Creates a GlobeKitView object
Parameters
Name Type Attributes Description
canvas HTMLCanvasElement Canvas to render to
options Object GlobeKitView options
onInitCB onInitCallback <nullable>
Callback fired when Object is initialized
Returns

Members


renderer :Renderer

Description
The Renderer

scene :Scene

Description
Scene

targetDrawable :Drawable

Description
Drawable to target camera on

calloutManager :CalloutManager

Description
Calloutmanager

boundingRect :Object

Description
Bounding rect for GlobeKitView

drawqueue :Array

Description
Array of Drawables to loop over and draw, each loop == frame

<nullable> onInit :onInitCallback

Description
Optional handler for globe initialization.

<nullable> onSelection :function

Description
Optional handler for selection events.

<nullable> onTap :positionEventCallback

Description
Optional handler for tap events.

<nullable> onUpdate :positionEventCallback

Description
Optional handler for update function. Position object represents mouse position.

<readonly> movementModel :MovementModel

Description
Movement model

<readonly> ambientController :AmbientController

Description
Ambient controller

<readonly> animationController :AnimationController

Description
Animation controller

<readonly> interactionController :InteractionController

Description
Interaction controller

<readonly> isWebGL1 :boolean

Description
is webgl version 1.0

<readonly> isWebGL1 :boolean

Description
is webgl version 2.0

Methods


setCameratargetDrawable( targetDrawable )

Description
Set a new interaction target
Parameters
Name Type Description
targetDrawable Drawable drawable to set as interaction target

addDrawable( drawable, onInit )

Description
Adds drawable to queue, and initializes the object in the WebglContext
Parameters
Name Type Description
drawable Drawable Drawable to add
onInit function Callback fired when drawable added to queue

startDrawing()

Description
starts drawing the drawqueue

stopDrawing()

Description
stops drawing the drawqueue

getPosition( lat, lon, alt ) → {PositionObject}

Description
Convert a lat/lon coord to screen position
Parameters
Name Type Description
lat number target latitude
lon number target longitude
alt number target altitude
Returns
Screen position

registerCalloutManager( calloutManager )

Description
Registers a CalloutManager to be used with this GlobeKitView.
Parameters
Name Type Description
calloutManager CalloutManager CalloutManager to register