COnnected maps to airlines, Airports and ROutes

This commit is contained in:
YaFedImYaEatIm
2016-09-17 20:06:19 +12:00
parent 44ed68ee7a
commit 5363cf8b4e
12 changed files with 114 additions and 7 deletions
@@ -35,6 +35,11 @@ public class Map {
webEngine.load(getClass().getClassLoader().getResource("map.html").toExternalForm());
}
public void displayAirport(RoutePath newRoute) {
String scriptToExecute = "displayAirport(" + newRoute.toJSONArray() + ");";
webEngine.executeScript(scriptToExecute);
}
public void displayRoute(RoutePath newRoute) {
String scriptToExecute = "displayRoute(" + newRoute.toJSONArray() + ");";
webEngine.executeScript(scriptToExecute);