A complete and utter hack for turning the time slider on and off:
var timeProxyPlacemark = ge.parseKml(
'<?xml version="1.0" encoding="UTF-8"?>' +
'<kml xmlns="
http://www.opengis.net/kml/2.2">' +
' <Placemark>' +
' <TimeSpan>' +
' <begin>2007-01-14T21:05:02Z</begin>' +
' <end>2007-01-14T21:05:20Z</end>' +
' </TimeSpan>' +
' </Placemark>' +
'</kml>');
ge.getFeatures().appendChild(timeProxyPlacemark);
// hide the slider
timeProxyPlacemark.setVisibility(false);
// show the slider
timeProxyPlacemark.setVisibility(true);
This only works because the feature is the only time-aware object
'visible'. If other time-aware features are visible, the time slider
will remain shown when calling setVisibility(false).
Hope that superhack helps somewhat,
Roman
On Jun 5, 6:47 am, boak wrote:
> I don't have a problem with tours, those I can enter and exit freely.
> This is a time-based KML, like the following:
http://earth-api-samples.googlecode.com/svn/trunk/examples/kml-parse-...