Differences

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

Link to this comparison view

ivac2:firdef_map_linestrip [2014/04/19 22:28]
filip.jonckers
ivac2:firdef_map_linestrip [2017/04/08 14:27]
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] 
  
-====== linestrip element ====== 
- 
-Use a linestrip element to draw a single point on the map. 
- 
-^Element|linestrip|| 
-^Attribute^Format^Remarks^ 
-|stipple|integer|stipple line bitwise pattern definition| 
-|width|float|line width in pixels| 
-|color|string|color id name| 
-|r|byte|color RGB value  (0-255)| 
-|g|byte|color RGB value  (0-255)| 
-|b|byte|color RGB value  (0-255)| 
- 
-Each linestrip consists of at least three <​point>​ elements where each <​point>​ is connected to the next <​point>​. 
- 
-{{:​ivac2:​firdef:​firdef_opengl_linestrip.png?​|}} 
- 
- 
-The drawing can be written as: 
- 
-<code XML> 
-  <​linestrip color="​myPredefinedColor">​ 
-      <point x="v0 x" y="v0 y" /> 
-      <point x="v1 x" y="v1 y" /> 
-      <point x="v2 x" y="v2 y" /> 
-      <point x="v3 x" y="v3 y" /> 
-  </​linestrip>​ 
-</​code>​ 
- 
- 
-<​HTML>​ 
-<p style="​border:​1px dashed #​C11B17;​color:#​C11B17;">​ 
-Use <​b>​linestrip</​b>​ instead of <​b>​line</​b>​ to draw continues lines. 
-The drawing performance will be much better than using single lines as in the old sectorfile format. ​ (much less data to process)<​br>​This means that if you export an old sectorfile to the new map format, you need to remove the duplicate <​point>​ entries to improve performance. 
-</p> 
-</​HTML>​ 
- 
- 
-===== example ===== 
- 
-The following code draws a rectangle: 
- 
-<code XML> 
-  <​linestrip color="​myPredefinedColor">​ 
-      <point lat="​N0504413"​ lon="​E0043108"/>​ 
-      <point lat="​N0504421"​ lon="​E0042601"/>​ 
-      <point lat="​N0504528"​ lon="​E0042119"/>​ 
-      <point lat="​N0504730"​ lon="​E0041718"/>​ 
-      <point lat="​N0504413"​ lon="​E0043108"/>​ 
-  </​linestrip>​ 
-</​code>​