{ 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 argomento contiene 0 risposte, ha 1 partecipante, ed è stato aggiornato da  David 4 anni, 5 mesi fa.

Stai vedendo 1 articolo (di 1 totali)
  • Autore
    Articoli
  • #24470 Risposta

    David

    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 vedendo 1 articolo (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:




:bye:  :good:  :negative:  :scratch:  :wacko:  :yahoo:  B-) 
more...
 

Non è possibile lasciare nuovi commenti.