new CustomGlobe( textureSrc, geometryBin ) → {CustomGlobe}

Description
Creates a CustomGlobe object
Parameters
Name Type Description
textureSrc String Texture image src url
geometryBin String Globekit binary file src url
Returns

Members


material :ShaderMaterial

Description
ShaderMaterial for CustomGlobe

lookup :Lookup

Description
Data Lookup

currentSelection :number

Description
Current selection id, -1 = no-selection
Details
number

-1


previousSelection :number

Description
Previous selection id, -1 = no-selection

inAnimation :Tween

Description
In animation Tween

outAnimation :Tween

Description
Out animation Tween

selection0 :number


selection1 :number


current :number


dataTexture :DataTexture

Description
DataTexture for globe

dataTextureSize :number

Description
Length of datatexture edge, it's a square

updateCMDs :Array

Description
Commands to update WebglBuffers

highlightAnimationProps :Object

Description
Animation props for animations

init

Description
Initialize object in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to initialize into
onInit * Callback fired when object is initialized

getValueForId

Description
Get data value from id
Parameters
Name Type Description
id String Id to lookup
Returns
data

getValueForCode

Description
Get data value from Code
Parameters
Name Type Description
code String Code to lookup
Returns
data

getValueForName

Description
Get data value from Name
Parameters
Name Type Description
Name String Name to lookup
Returns
data

createCollisionGeo

Description
Create collision geometry, used in raycasting

rayCastFrom

Description
Raycast to object
Parameters
Name Type Description
ray Object Ray to cast
Returns
Collision point

hitTest

Description
Does the ray intersect with the object?
Parameters
Name Type Description
ray Object Ray to cast
Returns

onSelectionCB

Description
Unused function

onSelection

Description
Unused function

onHover

Description
Unused function

update

Description
Updates Uniforms in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext
sceneProps Object Scene uniform object
time number frametime

draw

Description
Draws object to WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to draw to

setCountryHover

Description
Country Hover

setHighlightId

Description
Highlights a region on the globe using id
Parameters
Name Type Description
id String Id to highlight

animateIn

Description
Animate id in
Parameters
Name Type Description
id String Id to animate in
duration number duration of animation
onComplete function Callback fired when complete

animateOut

Description
Animate id out
Parameters
Name Type Description
id String Id to animate out
duration number duration of animation
start number start point [0-1]
onComplete function Callback fired when complete

addDataset

Description
Add an Id lookup dataset to globe
Parameters
Name Type Description
data Object Id dataset

updateIdState

Description
Unused function