|
|
|
|
@ -143,7 +143,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
double height = getHeight();
|
|
|
|
|
|
|
|
|
|
gc.clearRect(0, 0, width, height);
|
|
|
|
|
System.out.println("Race Map Canvas Width: "+ width + ", Height:" + height);
|
|
|
|
|
//System.out.println("Race Map Canvas Width: "+ width + ", Height:" + height);
|
|
|
|
|
this.map = new RaceMap(32.278, -64.863, 32.320989, -64.821, (int)width, (int)height);
|
|
|
|
|
|
|
|
|
|
if (map == null){
|
|
|
|
|
@ -176,7 +176,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
if (boat != null) {
|
|
|
|
|
// System.out.print("Drawing Boat At: " + boat.getCurrentPosition());
|
|
|
|
|
displayMark(this.map.convertGPS(boat.getCurrentPosition()), boat.getColour());
|
|
|
|
|
displayText(boat.getName(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));
|
|
|
|
|
displayText(boat.getName().getValue(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|