Differences

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

Link to this comparison view

Next revision
Previous revision
ivac2:firdef_map_lines [2015/06/07 21:23]
splendor.bouman created
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| 
-|width|float|line width in pixels| +|stroke_width|float|line width in pixels| 
-|color|string|color id name| +|stroke_color|string|color id name| 
-|r|byte|color RGB value  ​(0-255)| +|followgrid|boolean|If true, paths follow grid (rhumb line). If false paths follow great circle ''​NEW''​|
-|g|byte|color RGB value  (0-255)| +
-|b|byte|color RGB value  (0-255)| +
- +
- +
-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 29: Line 27:
   </​lines>​   </​lines>​
 </​code>​ </​code>​
 +
 +''​Use [[firdef_map_path|path]] instead of lines to draw continuous lines.''​
 +
  
 ===== Example ===== ===== Example =====