Kazu46Machi / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

Add Time component to GEView #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What should this feature enhancement do?

Allow to control time programmally if the timeline support is added

Are there any known workarounds that produce the similar results?

Original issue reported on code.google.com by qlu...@yahoo.com on 5 Mar 2009 at 1:46

GoogleCodeExporter commented 8 years ago
This is certainly a critical aspect in all phases of advanced time-enabled 
animation.  
I want to be able to initiate the time control, modify or lock its 
configuration, stop 
it, reset it, etc.

Roman, is there any reason why the time controller is unavailable in the api?

Original comment by tyson.k...@gmail.com on 23 Oct 2009 at 10:48

GoogleCodeExporter commented 8 years ago
Fixed in 5.2.1.1329

Original comment by jli...@google.com on 16 Jun 2010 at 3:30

GoogleCodeExporter commented 8 years ago
Using the GE API v1.006, I get an error (Uncaught TypeError: Object [object 
Object] has no method 'setBegin') for the following code:

var timeSpan = ge.createTimeSpan('optional_id');
timeSpan.setBegin('2009-01-01T17:00:00-08:00');
timeSpan.setEnd('2011-05-05');
ge.getTime().setTimePrimitive(timeSpan);

Likewise, using timeSpan.getBegin.set('2009-01-01T17:00:00-08:00') also results 
in an error (Uncaught TypeError: Object function getBegin() { [native code] } 
has no method 'set').

Can you please verify these errors?
Thanks!

Original comment by warren.h...@gmail.com on 5 Nov 2010 at 7:47

GoogleCodeExporter commented 8 years ago
The docs have a typo.  Please try 
timeSpan.getBegin().set('2009-01-01T17:00:00-08:00')

Original comment by jli...@google.com on 6 Nov 2010 at 1:46

GoogleCodeExporter commented 8 years ago
ugh, forgot the parentheses, thanks that worked!

Original comment by warren.h...@gmail.com on 8 Nov 2010 at 7:22