set MFD map size relative to the size of EIS space...
..., headers and softkeys lines
... | ... |
@@ -220,6 +220,16 @@ var displayClass = { |
220 | 220 |
next = 10; |
221 | 221 |
me.device.timers.map.restart(next); |
222 | 222 |
}); |
223 |
+ me.device.data.mapclip = { |
|
224 |
+ top: math.ceil(me.screenElements['Header'].getTransformedBounds()[3]), |
|
225 |
+ right: me.display.get('view[0]'), |
|
226 |
+ bottom: math.ceil(me.screenElements['SoftKeysTexts'].getTransformedBounds()[1]), |
|
227 |
+ left: math.ceil(me.screenElements['EIS'].getTransformedBounds()[2]), |
|
228 |
+ }; |
|
229 |
+ me.device.data.mapsize = [ |
|
230 |
+ me.device.data.mapclip.right - me.device.data.mapclip.left, |
|
231 |
+ me.device.data.mapclip.bottom - me.device.data.mapclip.top, |
|
232 |
+ ]; |
|
223 | 233 |
me.device.timers.map.singleShot = 1; |
224 | 234 |
me.device.data.zoom = 10; |
225 | 235 |
me.MFDMapTiles = MapTiles.new(me.device); |