iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.1k stars 298 forks source link

TypeError: intersection.distanceTo is not a function #147

Closed iamvdo closed 7 years ago

iamvdo commented 8 years ago

Using getRange() from ApiGlobe when altitude is high (eg when you see the whole globe), I get this error

TypeError: intersection.distanceTo is not a function

Turning the globe once seems to fix the issue O_o

gchoqueux commented 7 years ago

@vcoindet can you check?

vcoindet commented 7 years ago

works fine as a callback in the itowns.viewer.addEventListener('globe-loaded', callback)