marcin-gryszkalis / veloviewer-explorer-overlay

Generic overlay for VeloViewer Explorer squares
MIT License
13 stars 1 forks source link

Bugs in refresh.php map matching code #1

Open marcin-gryszkalis opened 3 years ago

marcin-gryszkalis commented 3 years ago

mg_20210417_4

As reported by Richard https://veloviewer.com/athlete/1051766/

a) strange flat lines as visible on screenshot b) some activities not counted 1098144675

marcin-gryszkalis commented 3 years ago

There's on particular replace in vv's vv.pd.134.js:

    for (var att in tmaps) {
        if (typeof(tacts[att]) !== 'undefined') {
            var lm = (typeof(tmaps[att].m) === 'undefined' ? tmaps[att] : tmaps[att].m);
            tacts[att].map = (lm == null ? null : lm.replace(/\}\,\{/g, '}{'));
        }
    }

So in encoded polylines },{ have to be replaced with }{.