Members
-
material :ShaderMaterial
-
Description
ShaderMaterial -
lookup :Lookup
-
Description
Data lookup -
currentSelection :number
-
Description
Current selection id -
previousSelection :number
-
Description
previous selection id -
inAnimation :Tween
-
Description
Highlight animation in -
outAnimation :Tween
-
Description
Highlight animation out -
selection0 :number
-
-
selection1 :number
-
-
current :number
-
-
dataTexture :DataTexture
-
Description
Data texture -
dataTextureSize :number
-
Description
Length of datatexture side, it is square -
updateCMDs :Array
-
Description
Update geometry command -
highlightAnimationProps :Object
-
Description
Highlight animation properties -
init
-
Description
Initializes object in WebglContextParameters
Name Type Description gl
webglContext WebglContext onInit
function Callback fired when object is inited -
getValueForId
-
Description
Get data value from idParameters
Name Type Description id
String Id to lookup Returns
-
getValueForCode
-
Description
Get data value from CodeParameters
Name Type Description code
String Code to lookup Returns
-
getValueForName
-
Description
Get data value from NameParameters
Name Type Description Name
String Name to lookup Returns
-
setIdColor
-
Description
Sets a color in datatexture for idParameters
Name Type Description id
String set datatexture color color
* Hex code for color, ex: '#ffffff alpha
* [0-1] representation of alpha -
createCollisionGeo
-
Description
Create collision geometry, used in raycasting -
rayCastFrom
-
Description
Raycast to objectParameters
Name Type Description ray
Object Ray to cast Returns
-
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
Parses collision object to drawable specific dataParameters
Name Type Description lat
number target latitude lon
number target longitude collision
Object Collision description -
onHover
-
Description
Unused function -
update
-
Description
Updates Uniforms in WebglContextParameters
Name Type Description gl
WebglContext WebglContext sceneProps
Object Scene uniform object time
number frametime -
draw
-
Description
Draws object to WebglContextParameters
Name Type Description gl
WebglContext WebglContext to draw to -
setCountryHover
-
Description
Set hover state for country id to hoverParameters
Name Type Description countryIndex
number CountryId to hover -
setHighlightId
-
Description
Highlights a region on the globe using idParameters
Name Type Description id
String Id to highlight -
animateIn
-
Description
Animate id inParameters
Name Type Description id
String Id to animate in duration
number duration of animation onComplete
function Callback fired when complete -
animateOut
-
Description
Animate id outParameters
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 globeParameters
Name Type Description data
Object Id dataset