Replies: 1 comment 7 replies
-
Why not a simple solution where the the aircraft is centered as is? Maybe speed and probably altitude dependent. And update the map not more often than once per second. I'd not do one pix updates. These already look bad in LNM since not all map objects use sub-pixel rendering (which does not work for labels anyway). I'm slowly improving it but it affects a lot of code. Keep it simple. 🙂 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Zoom into map when navigating tight corners and zoom out when going along a straight line for some time, set refresh rate so that aircraft has moved 1px after the refresh delay ie. let aircraft/map animation appear smooth (every pixel is used (instead of jumping some pixels on refresh, appearing jittery)).
Actual attempt: the map is centered around the aircraft. Show the remaining part of the current section to the nex waypoint and the whole following section in front of the aircraft in the viewport. Refresh every x seconds so that every 1px movement is caught. Zoom to 0 when closing in on a waypoint, zoom back afterwards.
Note: the field of view depends on the map size and the zoom level, not the zoom level only. The zoom level used by the server is certain integers, not all, not decimal.
The following is experimental but "works": https://1drv.ms/v/s!Ag8I6whv8uZOzcUddNKi9jLOFm3L0g?e=IXA6ML
code (add to map.html):
Flightplan:
Beta Was this translation helpful? Give feedback.
All reactions