fix for issue #5 gate lines

-removed drawing of lines between the marks as only the start and finish line should have a line drawn

 #story[782]
main
hba56 9 years ago
parent d52b09e74a
commit 12e457824d

@ -203,10 +203,12 @@ public class ResizableRaceCanvas extends ResizableCanvas {
public void drawMarkers() { public void drawMarkers() {
for(Marker marker: markers) { for(Marker marker: markers) {
GraphCoordinate mark1 = this.map.convertGPS(marker.getMark1()); GraphCoordinate mark1 = this.map.convertGPS(marker.getMark1());
// removed drawing of lines between the marks as only
// the start and finish line should have a line drawn
if(marker.isCompoundMark()) { if(marker.isCompoundMark()) {
GraphCoordinate mark2 = this.map.convertGPS(marker.getMark2()); GraphCoordinate mark2 = this.map.convertGPS(marker.getMark2());
// TODO - improve colour coding of markers displayPoint(mark1, Color.LIMEGREEN);
displayLine(mark1, mark2, Color.GREEN); displayPoint(mark2, Color.LIMEGREEN);
} else { } else {
displayPoint(mark1, Color.GREEN); displayPoint(mark1, Color.GREEN);
} }

Loading…
Cancel
Save