Uncaught (in promise) TypeError: Cannot read property 'track' of undefined
at Object.do_draw (trackserver.js?ver=3.0-20170227:139)
at alltracksPromise.then.str (trackserver.js?ver=3.0-20170227:387)
do_draw @ trackserver.js?ver=3.0-20170227:139
alltracksPromise.then.str @ trackserver.js?ver=3.0-20170227:387
'mymapdata' has the track IDs even for live maps, and it is set only at page load. When the query for a live track (user=xyz) returns a track that is not in the 'mymapdata' object, which happens when the user started a new tracks while the page is open in the browser, these JavaScript error occur.
Uncaught (in promise) TypeError: Cannot read property 'track' of undefined
at Object.do_draw (trackserver.js?ver=3.0-20170227:139)
at alltracksPromise.then.str (trackserver.js?ver=3.0-20170227:387)
do_draw @ trackserver.js?ver=3.0-20170227:139
alltracksPromise.then.str @ trackserver.js?ver=3.0-20170227:387
'mymapdata' has the track IDs even for live maps, and it is set only at page load. When the query for a live track (user=xyz) returns a track that is not in the 'mymapdata' object, which happens when the user started a new tracks while the page is open in the browser, these JavaScript error occur.