I had heretofore been centering the timeline at the current time as
follows.
var d = new Date();
var t = d.getTime();
t += d.getTimezoneOffset()*-60000;
d.setTime(t);
tl.getBand(0).setCenterVisibleDate(d);
However, I think I would really actually just like the timeline to
display itself *starting* at the current time instead of centering
there.
I considered trying to get it to center itself at a time such that the
current time would appear to be at the start, e.g. getTime() + x days
or something. However, I can't help but think that there would be an
easier way to do it?
Thanks so much,
Joseph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---