chiranthsiddappa / earth-api-samples

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

Time slider won't interval in one day increments #984

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Time slider won't interval in one day increments, I`m using multiple Placemarks 
with timespans 'some have same dates/days', I`am using parseKml for Google 
Earth Plugin Version 7.1.2.2041

I tried with timestamps, same issue, keeps giving me increments of hours not 
days, no matter what I try.

I also tried with making a Placemark after they were loaded, using  
timeSpan.getBegin().set('2013') and timeSpan.getEnd().set('2014') and 
setTimePrimitive, but this puts the time slider to 2012 - 2013 and gives Days, 
but it skips a pile of days randomly when you click it to increase to the next 
day... Please help I`am completely stumped here

    timeSpan.getBegin().set('2014-03');
    timeSpan.getEnd().set('2015-04');
    var placemark = ge.createPlacemark('');
    var point = ge.createPoint('');
    point.setLatitude(12.345);
    point.setLongitude(54.321);
    placemark.setGeometry(point);
    ge.getFeatures().appendChild(placemark);
    var lookAt = ge.createLookAt('');
    placemark.setTimePrimitive(timeSpan);
    lookat.setTimePrimitive(timeSpan);
    ge.getTime().setTimePrimitive(timeSpan);

Original issue reported on code.google.com by structdjm on 8 Apr 2014 at 11:37

GoogleCodeExporter commented 8 years ago
please ignore the code on the bottom, its not relative at all, not sure how it 
even got there

Original comment by structdjm on 9 Apr 2014 at 2:12