Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ivac2:firdef_presets.xml [2015/07/25 08:18]
christophe.delondre
ivac2:firdef_presets.xml [2017/11/24 11:25] (current)
splendor.bouman
Line 7: Line 7:
   * Zoom level   * Zoom level
  
-''​Format subject to change''​+''​New for 2.0.5''​ 
 + 
 +Presets may be all combined into a single file, or we recommend you group them in separate files. All preset files must be located in the ''​fir/​presets/''​ directory.
  
 ^Root Element|presets|| ^Root Element|presets||
Line 15: Line 17:
 |name|string|Preset Display Name| |name|string|Preset Display Name|
 |group|string|Preset Group| |group|string|Preset Group|
-|center_point|Lat/Lon|Visual Centrepoint| +|menu|boolean|If falsepreset will not be displayed ​in the presets menu
-|range|float|Visual range from centrepoint to edge of screenexpressed ​in Nautical Miles|+
 |toolbar|boolean|Add the preset to the toolbar| |toolbar|boolean|Add the preset to the toolbar|
-|clean|boolean|Disable all maps before applying preset| +|clearmaps|boolean|Disable all maps before applying preset| 
-|inset|boolean|Open new preset to display ​preset|+ 
 +^Root Element|preset|| 
 +^Element|main|| 
 +^Attribute^Format^Remarks^ 
 +|lat|string|Latitude of the center point for the main window| 
 +|lon|string|Longitude of the center point for the main window| 
 +|ref|string|Reference point to use as center for the main window (discards lat/lon)| 
 +|range|int|Displayed range in the main windows in Nautical Miles| 
 +|rotation|float|Rotation to be applied in the main window (degrees). Positive angles are clockwise rotation| 
 +|magvar|float|Magnetic variation specific to this preset; over-rides the setting in config.fir if provided. "​auto"​ may be used for automatic calculation of magvar for each lat/lon position| 
 +|north|string|"​mag"​ or "​true"​ specifies whether magnetic-north or true-north are to be displayed upwards for this preset; ; over-rides the setting in config.fir if provided| 
 +|autorotate|boolean|"​true"​ or "​false"​ depending on whether automatic rotation ​to make mag/true north point directly upwards at the centre of this preset; over-rides the setting in config.fir if provided|
  
 ^Root Element|preset|| ^Root Element|preset||
Line 25: Line 37:
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
 |id|string|Map ID to toggle| |id|string|Map ID to toggle|
 +|visible|boolean|Enable / disable the map|
 |text|boolean|Enable / disable text labels| |text|boolean|Enable / disable text labels|
 +
 +^Root Element|preset||
 +^Element|inset||
 +^Attribute^Format^Remarks^
 +|id|string|ID of the inset (must be unique in the FIR Definition)
 +|lat|string|Latitude of the center point for the inset|
 +|lon|string|Longitude of the center point for the inset|
 +|ref|string|Reference point to use as center for the inset (discards lat/lon)|
 +|range|int|Displayed range in the inset window in Nautical Miles|
 +|rotation|float|Rotation to be applied in the inset window (degrees)|
 +|width|string|Default width of the inset, expressed either in pixels (width="​300"​ equals to 300 px), or in percentage of the primary screen width (width="​25%"​ equals to 1/4 of the main screen width)|
 +|height|string|Default height of the inset, expressed either in pixels (height="​300"​ equals to 300 px), or in percentage of the primary screen height (width="​25%"​ equals to 1/4 of the main screen height)|
 +|position|string|Default inset position on the screen, possible values: TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT,​ CENTER, CENTER_RIGHT,​ BOTTOM_LEFT,​ BOTTOM_CENTER,​ BOTTOM_RIGHT|
 +|magvar|float|Magnetic variation specific to this preset; over-rides the setting in config.fir if provided. "​auto"​ may be used for automatic calculation of magvar for each lat/lon position|
 +|north|string|"​mag"​ or "​true"​ specifies whether magnetic-north or true-north are to be displayed upwards for this preset; ; over-rides the setting in config.fir if provided|
 +|autorotate|boolean|"​true"​ or "​false"​ depending on whether automatic rotation to make mag/true north point directly upwards at the centre of this preset; over-rides the setting in config.fir if provided|
  
 ===== Example ===== ===== Example =====
  
 <code XML> <code XML>
 +<?xml version="​1.0"​ encoding="​UTF-8"?>​
 <​presets>​ <​presets>​
- <preset id="acc" clearmaps="​true">​ + <!-- EBBU ACC --> 
- <center ​lat="N05053491100" lon="E00429086400"/>​ + <preset id="01 EBBU ACC" name="​EBBU ACC" group="​ACC" clearmaps="​true"​ toolbar="​true"​ menu="​true">​ 
- <zoom level="​6.5"​ /+ <main range="​150" ​lat="N050534911" lon="E004290864"/>​ 
- <map id="EBBU_AIRSP" ​    ​visible="​true" ​ text="​false"​ /> + <maps
- <map id="EBBU_LOW" ​      ​visible="​true" ​ text="​false"​ /> + <map id="EBBU_BDRY" ​     visible="​true" ​ text="​false"​ /> 
- <map id="EBBU_AIRWAYS" ​  ​visible="​true" ​ text="​false"​ /> + <map id="EBBU_AIRSP" ​    ​visible="​true" ​ text="​false"​ /> 
- <map id="EBBU_FIX_1" ​    ​visible="​true" ​ text="​false"​ /> + <map id="EBBU_LOW" ​      ​visible="​true" ​ text="​false"​ /> 
- <map id="EBBU_FIX_2" ​    ​visible="​false" text="​false"​ /> + <map id="EBBU_AIRWAYS" ​  ​visible="​true" ​ text="​false"​ /> 
- <map id="​EBBU_VOR_1" ​    ​visible="​true" ​ text="​false"​ />+ <map id="EBBU_FIX_1" ​    ​visible="​true" ​ text="​false"​ /> 
 + <map id="​EBBU_VOR_1" ​    ​visible="​true" ​ text="​false"​ /
 + </maps>
  </​preset>​  </​preset>​
  
- <preset id="​EBBR"​ clearmaps="​true">​ + <!-- EBBR APP --> 
- <center ​lat="N05053491100" lon="E00429086400"/>​ + <preset id="02 EBBR APP" name="​EBBR APP" group="​APP" clearmaps="​true" toolbar="​true"​ menu="​false">​ 
- <zoom level="40" /> + <main range="​30" ​lat="N0505405" lon="E0042904"/>​ 
- <map id="​EBBU_AIRSP"​ visible="​true"​ /> + <inset id="EBBR APP" range="​5"​ ref="​BUB"​ width="​400"​ height="​50%" /> 
- <map id="​EBBU_FIX_1"​ visible="​true"​ text="​false"​ /> + <inset id="​EBAW TWR" range="​5"​ lat="​N0511122"​ lon="​E0042737"​ position="​BOTTOM_RIGHT"/>​ 
- <map id="EBBU_FIX_2" visible="​false"​ text="​true"​ /> + <​maps>​ 
- <map id="EBBU_VOR_1" visible="​true" ​ text="​false"​ /> + <!-- EBBU --> 
- <map id="EBBU_VOR_2" visible="​false"​ text="​false"​ /> + <map id="​EBBU_BDRY" ​            ​visible="​true" ​ text="​false"​ /> 
- <map id="EBBU_NDB_1" visible="​true" ​ text="​false"​ /> + <map id="​EBBU_AIRSP" ​           visible="​true" ​ text="​false" /> 
- <map id="EBBU_NDB_2" visible="​false"​ text="​false"​ />+ <map id="​EBBU_FIX_1" ​           visible="​true" ​ text="​false"​ /> 
 + <map id="EBBU_VOR_1" ​           visible="​true" ​ text="​false" ​/> 
 + <!-- EBBR --> 
 + <map id="​EBBR_AD_GND" ​          ​visible="​true"  ​text="​false"​ /> 
 + <map id="​EBBR_AD_RWY" ​          ​visible="true" ​ text="​false" /> 
 + <map id="EBBR_AD_RWY_MARKINGS" ​ visible="​true" ​ text="​false"​ /> 
 + <map id="EBBR_AD_STANDS" ​       visible="​true" ​ text="​false" ​/> 
 + <map id="​EBBR_AD_STOPBARS" ​     visible="​true"  ​text="​false"​ /> 
 + <map id="EBBR_AD_TWY" ​          ​visible="​true" ​ text="​false"​ /> 
 + <map id="EBBR_REC_25" ​          ​visible="​true" ​ text="​false" ​/> 
 + <map id="​EBBR_RWY" ​             visible="​true"  ​text="​false"​ /
 + <map id="​EBBR_VFR" ​             visible="​true" ​ text="​false"​ /> 
 + <!-- EBAW --> 
 + <map id="​EBAW_AD_GND" ​          ​visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_AD_RWY_MARKINGS" ​ visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_AD_TWY" ​          ​visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_CTR" ​             visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_REC_RWY29" ​       visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_RWY" ​             visible="​true" ​ text="​false"​ /> 
 + <map id="​EBAW_VFR" ​             visible="​true" ​ text="​false"​ /> 
 + </maps>
  </​preset>​  </​preset>​
 </​presets>​ </​presets>​