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_map_lines [2015/06/07 21:51]
splendor.bouman
ivac2:firdef_map_lines [2017/11/24 11:22] (current)
splendor.bouman
Line 1: Line 1:
 ====== lines ====== ====== lines ======
  
-Use a line element to draw a single point on the map.  You might remember this one as the only way to draw objects in IVAC v1 sectorfiles.+Use a lines element to quickly ​draw a lot of independent unconnected lines.  You might remember this one as the only way to draw objects in IVAC v1 sectorfiles. ​
  
 +Each line consists of two <​point>​ elements where the first <​point>​ is the start and the second <​point>​ element is the end of the line to draw. The total amount of <​point>​ elements must be even.
 +
 +^Root Element|map||
 ^Element|lines|| ^Element|lines||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|pattern|double array|line pattern described in an array of doubles|+|stroke_pattern|double array|line ​[[firdef_map_pattern|pattern]] described in an array of doubles|
 |stroke_width|float|line width in pixels| |stroke_width|float|line width in pixels|
 |stroke_color|string|color id name| |stroke_color|string|color id name|
- +|followgrid|boolean|If true, paths follow grid (rhumb ​line)If false paths follow great circle ''​NEW''​|
-Each line consists of an even amount of <​point>​ elements where the first <​point>​ is the start and the second <​point>​ element is the end of the line to draw.+
  
 {{:​ivac2:​firdef:​firdef_opengl_line.png?​|}} {{:​ivac2:​firdef:​firdef_opengl_line.png?​|}}
Line 25: Line 27:
   </​lines>​   </​lines>​
 </​code>​ </​code>​
 +
 +''​Use [[firdef_map_path|path]] instead of lines to draw continuous lines.''​
 +
  
 ===== Example ===== ===== Example =====