ndom() / 3) + 0.35);
            jsondata.properties.color = color.replace('rgb(', 'rgba(').replace(')', `, 0.7)`);
            jsondata.properties.width = 3;
        }

        geojsonfeatures.push(jsondata);
        map.getSource('tracks').setData({
                type: 'FeatureCollection',
                features: geojsonfeatures
            }
        );
    }

    function deselectTrack() {
        map.getSource('selectedsource').setData({
                type: 'FeatureCollection',
                fea