private void removePath() {
        if (pathStored) {
            layer.remove(KEY_HISTORY_LINE);
            pathStored = false;
        }
    }
maximum distance (in meters) up to which two points in the trail get connected by a drawn line
main/src/main/java/cgeo/geocaching/unifiedmap/layers/PositionHistoryLayer.java