20,741
edits
Line 96: | Line 96: | ||
== Adding new features == | == Adding new features == | ||
{{Note|Please get in touch with [[User:Gijs]] before touching navdisplay.mfd | {{Note|Please get in touch with [[User:Gijs]] before touching navdisplay.mfd | ||
If you are primarily interested in porting/adding new layers (such as e.g. waypoints, route, weather etc), please see the [[MapStructure]] article for details. | If you are primarily interested in porting/adding new '''mapping''' layers (such as e.g. waypoints, route, weather etc), please see the [[MapStructure]] article for details. | ||
Otherwise, this section is focused on dealing with non-mapping aspects, i.e. ND-specific SVG symbols and animating them via properties and calculations. Typically, a new symbol will require 10-20 lines of code added to navdisplay.mfd}} | Otherwise, this section is focused on dealing with non-mapping aspects, i.e. ND-specific SVG symbols and animating them via properties and calculations. Typically, a new symbol will require 10-20 lines of code added to navdisplay.mfd}} | ||
If you want to add new features to the navdisplay.mfd code, you need to open that file and map an SVG element to a callback routine - that's how everything is working currently. | If you want to add new features to the navdisplay.mfd code, you need to open that file and map an SVG element to a callback routine - that's how everything is working currently. |