split("=")[1]) {
            var waypoints = decodeURIComponent(document.location.search.split("=")[1]).split("|")[0].split(",").map(e => { return { lat: e.split(";")[0], long: e.split(";")[1] } });
            var points = decodeURIComponent(document.location.search.split("=")[1]).split("|")[1].split(",").map(e => { return { lat: e.split(";")[0], long: e.split(";")[1] } });
            drawPoints(points);
            drawWaypoints(waypoints);
        }
    }
    function drawPoints(locations) {
        loc