new PointGlobe( textureSrc, geometryBin ) → {PointGlobe}

Description
Creates a Pointglobe object
Parameters
Name Type Description
textureSrc String Texture image src URL
geometryBin String Globekit geometry binary URL
Returns

Members


material :ShaderMaterial


lookup :Lookup


currentSelection :number

Description
Current selection id, -1 == no selection

previousSelection :number

Description
Previous selection id, -1 == no selection

inAnimation :Tween

Description
In Animation

outAnimation :Tween

Description
Out Animation

dataTexture :Datatexture

Description
Data Texture

dataTextureSize :number

Description
Length of data texture side, it is a square

updateCMDs :Array

Description
Update commands

highlightAnimationProps :Object

Description
Animation properties

init

Description
Initialize object into WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to initialize into
onInit * Callback fired when 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

setIdColor

Description
Sets a color in datatexture for id
Parameters
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 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
Parses collision object to drawable specific data
Parameters
Name Type Description
lat number target latitude
lon number target longitude
collision Object Collision description

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
Set hover state for country id to hover
Parameters
Name Type Description
countryIndex number CountryId to 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

rippleAtLocation

Description
Create a ripple animation at location
Parameters
Name Type Description
lat number target latitude
lon number target longitude
duration * how long should the ripple take?