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
Last revision Both sides next revision
ivac2:firdef_map_lines [2015/06/08 00:10]
splendor.bouman [lines]
ivac2:firdef_map_lines [2017/11/24 10:34]
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^
Line 8: Line 11:
 |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|
-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 26: Line 28:
 </​code>​ </​code>​
  
-<​HTML>​ +''​Use [[firdef_map_path|path]] instead of lines to draw continuous lines.''​
-<p style="​border:​1px dashed #​C11B17;​color:#​C11B17;">​Use <b>[[firdef_map_path|path]]</​b> ​instead of <b>lines</​b> ​to draw continuous lines.</​p>​ +
-</​HTML>​+