Board index FlightGear Development Canvas

Canvas Map Airport display

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Re: Canvas Map Airport display

Postby Gijs » Tue Aug 26, 2014 8:45 am

@Avionyx, EGKL is shown. You just need to zoom in a little more. Small airports are not shown at large zoom levels.

On the normal map dialog by default, non-hard surface airports (grass, dirt), longest runway less than 2000 ft and heliports are not shown. You can change this behaviour by setting:
- /gui/map/hard-surfaced-airports=0
- /sim/navdb/min-runway-length-ft=200

I did see some airports on the normal map that weren't on the Canvas map (e.g. EHMZ; see below). Not sure why that is...

Image
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9386
Joined: Tue Jul 03, 2007 2:55 pm
Location: Amsterdam/Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Canvas Map Airport display

Postby Hooray » Tue Aug 26, 2014 10:34 am

The C++ code for the hard-coded Map dialog can be found in $FG_SRC/GUI - specifically, it's MapWidget.cxx.

Like I mentioned previously, the property is read from the tree, and defaulted to 2000: https://gitorious.org/fg/flightgear/sou ... t.cxx#L387

The struct/class there basically sets up the filter that is used currently - we don't use this filter in the other dialog though.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11430
Joined: Tue Mar 25, 2008 8:40 am

Re: Canvas Map Airport display

Postby Johan G » Tue Aug 26, 2014 4:53 pm

As those filters are controlled by properties, I guess it means that an aircraft developer could set the map(s) to only show airports/runways usable for that type of aircraft. ;)
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5546
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Previous

Return to Canvas

Who is online

Users browsing this forum: No registered users and 1 guest