wp-plugin-trackserver icon indicating copy to clipboard operation
wp-plugin-trackserver copied to clipboard

error in track output

Open djSupport opened this issue 8 months ago • 6 comments

On many previous pages I have added [tsmap track=xxx] and had perfect tracks shown, I've uploaded 2 new tracks for work so not live recorded I've done the same and unless I put 'user' setting in they don't display correctly but I also have to force live 'false' to be able to view

Image

with user added:

Image

I've added them to separate pages and one map is showing both tracks despite only one track listed?!?

I'm not sure what's gone on both maps viewed from track list show correctly

Image

is this a bug? it was simple as putting [tsmap track=323] etc before and they all still work it's just NOT these!

djSupport avatar May 25 '25 21:05 djSupport

after hours of searching, updates, disabling plugins and more I found it's because for some reason when I export from the 'Memory map' app it adds this line and this was causing all these issues in trackserver! I removed the section highlighted using Notepad++ and saved it and all is now well once re-uploaded!!

Image

djSupport avatar May 25 '25 22:05 djSupport

Hi!

This is an interesting find, and I'm surely going to look into it. The tracks I use and test Trackserver with generally have timestamps on all the trkpt elements, OR they have no timestamps at all, in which case Trackserver autogenerates them. But I think that your case here is kind of unhandled, and the timestamps are undefined, leading to the weird lines (mixing up the order of points) you're seeing.

I'll keep this open for now, thanks!

Martijn.

tinuzz avatar May 27 '25 19:05 tinuzz

If you need a faulty GPX I'll send you one to diagnose

djSupport avatar May 27 '25 19:05 djSupport

Oh that would be helpful. I assume it's just a GPX with a timestamp on the first point only, but better to not assume :-) Can you fetch my email from my GH profile?

tinuzz avatar May 27 '25 19:05 tinuzz

done :)

djSupport avatar May 27 '25 20:05 djSupport

I have also sent an email to the app developers to a. see if this is by design b. whether it's a bug and c. is it the correct format? it worked fine before but is no longer and it must be something they did

djSupport avatar May 27 '25 20:05 djSupport