Glad to see you updated the cache with filetime per my previous request, thank you!
This time I have a bug report. Took me a while to figure out why some tracks weren’t displaying correctly (or at all). I’ll keep it short, I’m sure you get it.
In “Print Track” lastCut and i is used to slice points for path. When having several tracks no point is pushed for null which makes the two arrays “out of sync”..
in …
for (i=0; i < mapData.length; i++) {
if (mapData == null) {
… I did a quick fix by adding a dummy-point and also adjusting the lastCut var …
lastCut=i+1;
var p = new google.maps.LatLng(0, 0);
points.push(p);
… which sorted it.
A disclaimer from my side is that I made quite a few edits to your code without keeping track of them so I have not updated to latest version. I did however tried the latest JS on my site and issue persisted.
Cheers,
David