FlightGear Newsletter March 2014: Difference between revisions

m (→‎TerraGear developers looking for your help: http://forum.flightgear.org/viewtopic.php?f=5&t=22464&p=204067#p204067)
Line 96: Line 96:
If you can't run the latest codebase, here is a screenshot:
If you can't run the latest codebase, here is a screenshot:
https://www.dropbox.com/s/98ejva4n4m38po1/HTMLRadioSettings.jpg.
https://www.dropbox.com/s/98ejva4n4m38po1/HTMLRadioSettings.jpg.
=== New built-in moving map ===[[File:Browsermap-2.jpg|300px|right|Central Europe with Navdata and Weather Layers]]
When starting FlightGear with the internal web server enabled (--httpd=8080), a new moving map application is accessible for those with a working internet connection and state-of-the-art web browser. http://localhost:8080/gui/map opens an interactive map covering the entire world, enriched with FlightGear navigation data and life weather information. An aircraft symbol is showing the current position of the simulated FlightGear aircraft, also indicating it's heading and altitude. The position information is sent through a websocket in realtime without the need for polling the FlightGear web server. The update rate of the map is currently throttled to 1Hz but refresh frequencies up to 20Hz have been successfully tested. The map can follow the aircraft's position or may be panned free around the world, still tracking the planes position on the map.
[[File:Browsermap-3.jpg|300px|right|Around Hamburg (EDDH) with LOC courses]]Three base layers currently exist: openstreetmap, Mapquest road and Mapquest satelite. Overlays for the FlightGear navdata, precipitation and sea level pressure isobares from openweather.org may be added in any combination. The level of detail for the navigation data varies with the zoom level. To keep the load on the FlightGear instance low, Navigation data will only be displayed up to a radius of 250NM around the maps center. In detailed zoom levels, all airports (including runways), navigation aids, localizer courses of the displayed area will show up after a short delay. A click on a marker brings up a popup with detailed information about the item like name, frequency, runway length etc.
[[File:Browsermap-4.jpg|300px|right|At GA Parking EDDH with popup for ALSTER DME]]Several modern web techniques power all this: There is [http://http://leafletjs.com/ Leaflet], "Open-Source JavaScript Library for Mobile-Friendly Interactive Maps". There is [http://jquery.com/ jQuery], "a fast, small, and feature-rich JavaScript library". On the server side lives [http://cesanta.com/mongoose.shtml mongoose], "The easiest to use web server on the planet". Data flows as [http://www.json.org/fatfree.html JSON], "The Fat-Free Alternative to XML". A lot of HTML5 and CSS3 is also involved.
The map has been tested on Safari on OSX and iOS. Chrome on Android, OSX and Linux. Firefox on OSX and Linux. It runs on workstations with huge screens, laptop computers with small screens, tablets, smartphones and even an old iPod with iOS 6.


=== Cloud Shadows (by Thorsten) ===
=== Cloud Shadows (by Thorsten) ===