1
0
Fork 0

Added function to draw a flight

This commit is contained in:
Michael Hackstein 2015-04-17 22:11:44 -07:00
parent fa40ed9146
commit 37a51856d4
1 changed files with 18 additions and 1 deletions

View File

@ -102,6 +102,13 @@
lat: airport.Latitude
};
});
imageData.push({
color: "#FF0000",
lines: [{
latitudes: [ 51.5002, 50.4422 ],
longitudes: [ -0.1262, 30.5367 ]
}]
});
return imageData;
},
@ -140,10 +147,20 @@
areaSettings: {
autoZoom: true,
selectedColor: self.MAPcolor
}
},
linesSettings: {
color: "#FF0000",
alpha: 1
},
linesAboveImages: true
});
},
addFlightLine: function(from, to) {
this.lines.push(this.createFlightEntry(from, to));
this.map.validateData();
},
renderDummy: function() {
// svg path for target icon