{ Dev Farm }

Web & Windows Development

Bug displaying multi track files

Home Forum Wp Gpx Maps Request a New Feature Bug displaying multi track files

  • Questo topic ha 0 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 9 anni, 1 mese fa da David.
Stai visualizzando 1 post (di 1 totali)
  • Autore
    Post
  • #24470 Rispondi
    David
    Ospite

    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

Stai visualizzando 1 post (di 1 totali)
Rispondi a: Bug displaying multi track files

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.