... | ... |
@@ -26,7 +26,7 @@ var TcasItemClass = { |
26 | 26 |
return m; |
27 | 27 |
}, |
28 | 28 |
|
29 |
- setData : func(lat, lon, alt, vs, level, callsign) { |
|
29 |
+ setData : func(lat, lon, alt, vs, level, callsign, orientation) { |
|
30 | 30 |
me._group.setVisible(1); |
31 | 31 |
me._group.setGeoPosition(lat, lon); |
32 | 32 |
|
... | ... |
@@ -57,6 +57,7 @@ var TcasItemClass = { |
57 | 57 |
me._can.Callsign |
58 | 58 |
.setText(callsign) |
59 | 59 |
.set('fill', me._colors[level]) |
60 |
+ .setRotation(-orientation * D2R) |
|
60 | 61 |
.setVisible(1); |
61 | 62 |
}, |
62 | 63 |
}; |
... | ... |
@@ -95,7 +96,7 @@ var MapTcas = { |
95 | 96 |
append(me._item, TcasItemClass.new(me.group, me._itemIndex)); |
96 | 97 |
me._itemCount += 1; |
97 | 98 |
} |
98 |
- me._item[me._itemIndex].setData(ac.lat, ac.lon, ac.alt, ac.vs, ac.level, ac.callsign); |
|
99 |
+ me._item[me._itemIndex].setData(ac.lat, ac.lon, ac.alt, ac.vs, ac.level, ac.callsign, me.device.data.orientation.map); |
|
99 | 100 |
me._itemIndex += 1; |
100 | 101 |
} |
101 | 102 |
|