Showing 2 changed files with 6 additions and 6 deletions
+2
Nasal/maps/navaids.nas
... ...
@@ -124,6 +124,7 @@ var MapAirportItem = {
124 124
         me._can.label = me._can.group.createChild('text', 'airport-label_' ~ me._id)
125 125
             .setDrawMode( canvas.Text.TEXT )
126 126
             .setTranslation(0, 37)
127
+            .setCenter(0, -37)
127 128
             .setAlignment('center-bottom-baseline')
128 129
             .setFont('LiberationFonts/LiberationSans-Regular.ttf')
129 130
             .setFontSize(24);
... ...
@@ -255,6 +256,7 @@ var MapNavaidItem = {
255 256
         me._can.label = me._can.group.createChild('text', me._type ~ '-label_' ~ me._id)
256 257
             .setDrawMode( canvas.Text.TEXT )
257 258
             .setTranslation(0,42)
259
+            .setCenter(0, -42)
258 260
             .setAlignment('center-bottom-baseline')
259 261
             .setFont('LiberationFonts/LiberationSans-Regular.ttf')
260 262
             .setFontSize(16);
+4 -6
Nasal/maps/tcas.nas
... ...
@@ -27,14 +27,15 @@ var TcasItemClass = {
27 27
     },
28 28
 
29 29
     setData : func(lat, lon, alt, vs, level, callsign, orientation) {
30
-        me._group.setVisible(1);
31
-        me._group.setGeoPosition(lat, lon);
30
+        me._group
31
+            .setVisible(1)
32
+            .setGeoPosition(lat, lon)
33
+            .setRotation(orientation);
32 34
         
33 35
         if (alt and level)
34 36
             me._can.Alt
35 37
                 .setText(sprintf("%+i", alt))
36 38
                 .set('fill', me._colors[level])
37
-                .setRotation(orientation)
38 39
                 .setVisible(1);
39 40
         else
40 41
             me._can.Alt.setVisible(0);
... ...
@@ -43,7 +44,6 @@ var TcasItemClass = {
43 44
             me._can.Arrow[vs < 0]
44 45
                 .set('fill', me._colors[level])
45 46
                 .set('stroke', me._colors[level])
46
-                .setRotation(orientation)
47 47
                 .setVisible(1);
48 48
 
49 49
             me._can.Arrow[vs > 0].setVisible(0);
... ...
@@ -55,13 +55,11 @@ var TcasItemClass = {
55 55
 
56 56
         for (var i = 0; i < 4; i += 1)
57 57
             me._can.ThreadLevel[i]
58
-                .setRotation(orientation)
59 58
                 .setVisible(level == i);
60 59
 
61 60
         me._can.Callsign
62 61
             .setText(callsign)
63 62
             .set('fill', me._colors[level])
64
-            .setRotation(orientation)
65 63
             .setVisible(1);
66 64
     },
67 65
 };