Display entire gx:Track KML file without animation.

I’m trying to figure out how to just display the path of gx:track KML data without animation or anything. I can only figure out how to display track data with the animation, like in this sandcastle. I assume this is simple to do, but can’t figure out what I’m missing.

Ultimately, I’d like to be able to load a GeoJSON file, a few KML gps track files, and zoom to view the entire result.

Thanks

Hi Arel,

You should be able to define a path with no animation with a LineString.

Thanks,

Gabby

The problem is that I’m not creating an XML file, I’m just trying to display a user imported XML file. Is there an option I can pass in or something to just tell Cesium to display the entire file instead of animating it? Can I set the clock to the last frame or something?

Here is an example of what it looks like:

<?xml version="1.0" encoding="UTF-8"?>

1

1

ffDB9034 4 80DB9034 f8000080 8

KIWI-KIWI

#trackStyle

gx:Track

absolute

1

gx:interpolate1</gx:interpolate>

2018-06-30T18:21:37.997Z

gx:coord-69.71025514422888 43.96415925123166 46.69718679700353</gx:coord>

2018-06-30T18:27:17.992Z

gx:coord-69.71027182421619 43.96415493455153 47.133793925706975</gx:coord>

2018-06-30T18:27:31.992Z

gx:coord-69.71026679507429 43.96415656902265 47.03692753688649</gx:coord>

2018-06-30T18:27:43.992Z

gx:coord-69.71027174039716 43.96415887404602 47.064260290892406</gx:coord>

2018-06-30T18:27:44.992Z

gx:coord-69.71027232713038 43.964158413041346 47.13305841729885</gx:coord>

2018-06-30T18:27:51.992Z

``

If you know when the last frame is (perhaps parsing it out of the input XML?) you can set Cesium’s clock with:

viewer.clock.currentTime.secondsOfDay =

``

Here’s an example, where it starts at what I think is the end of the trail.

Nice!! Thanks for the suggestion!

Thanks again for the suggestion. Instead of digging in to find the clock end time, I just put a very high number, and it works every time!

Good to hear you figured out a simple way to do it, and thanks for posting it back here so others can find it!