Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Keeping animated to true renders all markers flat #31

Open
Orbyt opened this issue May 16, 2015 · 1 comment
Open

Keeping animated to true renders all markers flat #31

Orbyt opened this issue May 16, 2015 · 1 comment

Comments

@Orbyt
Copy link

Orbyt commented May 16, 2015

Keeping the animated field on true makes all markers render flat on the globe, eg, 0 magnitude. Setting the animated field to false causes the markers to render at their proper magnitudes.

for (i=0;i<data.length;i++) { globe.addData(data[i][1], {format: 'magnitude', name: data[i][0], animated: false}); }

Any ideas on why this is happening, and a fix?

@mattslocum
Copy link

If you are using animation you need to set the globe.time. That is what the main demo does when you mouse over the year.
https://github.com/dataarts/webgl-globe/blob/master/globe/index.html#L145
They are using a tween, but you could simply do globe.time = 0 or 1 or something in between.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants