Kazu46Machi / earth-api-samples

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

Time slider range control #208

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load timestamped placemarks
2.
3.

What is the expected output or behavior? 
To see the placemarks.
What do you see instead?
The timeslider control appears in a "closed" state and none of the
placemarks are visible!
They can only be shown by the user "opening" the time slider.
I would expect to have been provided with an API interface to the behaviour
of the time slider so I can decide whether it's active or not.

Which plugin version are you using?
1.002

IT REALLY IS A PROBLEM - my app loads time-stamped placemarks which ,
because the time slider opens in a "closed" state means that my placemarks
are not displayed.
That's a real problem.

I know it' been reported an an enhancement request (102)  but this isn't an
enhancement request - it's a BUG REPORT because something that worked in
the previous version now fails.

Original issue reported on code.google.com by gpsanima...@gmail.com on 4 Apr 2009 at 3:59

GoogleCodeExporter commented 8 years ago
To achieve the old behavior, you can remove TimeSpan and TimeStamp information 
from
the file.

This looks like a feature request to control the time range in the time slider.

Original comment by api.roman.public@gmail.com on 6 Apr 2009 at 5:30

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 6 Apr 2009 at 5:31

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 9 Aug 2009 at 12:55

GoogleCodeExporter commented 8 years ago
I'm interested in this feature request, as I've just voted.  I was looking at 
Camera gx:timeStamp and wondering if 
I loaded a KML using the KML plugin API and used a time range specification in 
a Camera element if that would 
set the time slider to a range, rather than a point.

Original comment by mbu...@gmail.com on 5 Oct 2009 at 8:04

GoogleCodeExporter commented 8 years ago
I am wondering if you can programmatically control what is originally set in 
the 
time slider control.  Whenever a kml or kmz file is loaded, it always shows the 
first event, then you have to manually slide the control to find the other 
events.

I am also interested in programmatically setting the control settings.  (ie. 
The 
timescale play speed)

Other things that might be useful are:
- When the kml element is selected or visible that you can set the time slider 
to 
include that element to be seen.

Original comment by jonetta.ng@gmail.com on 5 Jan 2010 at 9:54

GoogleCodeExporter commented 8 years ago

Original comment by jli...@google.com on 11 Jun 2010 at 5:02

GoogleCodeExporter commented 8 years ago
Fixed in 5.2.1.1329

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

GoogleCodeExporter commented 8 years ago
Could anyone tell me where the api instructions are for this fix?

Original comment by P...@realphotopros.com on 15 Jun 2012 at 6:10

GoogleCodeExporter commented 8 years ago
To set the time slider to the full range of the data use:

    ge.getTime().setTimePrimitive(ge.getTime().getControl().getExtents());

Only problem I had was when I tried to call this snippet immediately after 
loading a KML file using fetchKML it didn't seem to do anything. If put into a 
button click callback it worked fine. So, I wrapped it in a setTimeout call and 
all is good.

setTimeout(function() {
    ge.getTime().setTimePrimitive(ge.getTime().getControl().getExtents());
}, 0);

Original comment by ja...@newmoyergeospatial.com on 25 Jul 2014 at 6:55