public void resetColor() {
        historyLine = AndroidGraphicFactory.INSTANCE.createPaint();
        historyLine.setStrokeWidth(MapLineUtils.getHistoryLineWidth(false));
        historyLine.setStyle(Style.STROKE);
        historyLine.setColor(MapLineUtils.getTrailColor());
    }
maximum distance (in meters) up to which two points in the trail get connected by a drawn line
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/layers/HistoryLayer.java