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_color_rgb [2015/04/17 23:18]
filip.jonckers
ivac2:firdef_map_color_rgb [2017/04/08 14:27] (current)
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] 
  
 ====== Color and RGB attributes ====== ====== Color and RGB attributes ======
Line 8: Line 7:
  
 <code XML> <code XML>
-  <line color="​airspace_low">​+  <lines stroke_color="​airspace_low">​
       <point lon="​E0042957"​ lat="​N0511059"/>​       <point lon="​E0042957"​ lat="​N0511059"/>​
       <point lon="​E0044324"​ lat="​N0510755"/>​       <point lon="​E0044324"​ lat="​N0510755"/>​
-  </line>+  </lines>
 </​code>​ </​code>​
  
 +----
  
 +[[ivac2:​firdef|Back]]
  
-There are two alternative ways to define the color used: 
-  - Using R,G,B values 
-  - Using webcolors in hexadecimal #RRGGBB format 
- 
-When the string value of the color attribute starts with a # then it shall be defined as #RRGGBB 
- 
-<code XML> 
-  <line color="#​FF9922">​ 
-      <point lon="​E0042957"​ lat="​N0511059"/>​ 
-      <point lon="​E0044324"​ lat="​N0510755"/>​ 
-  </​line>​ 
-</​code>​ 
- 
-Otherwise you can use R,G,B values like: 
- 
-<code XML> 
-  <line r="​65"​ g="​112"​ b="​40">​ 
-      <point lon="​E0042957"​ lat="​N0511059"/>​ 
-      <point lon="​E0044324"​ lat="​N0510755"/>​ 
-  </​line>​ 
-</​code>​ 
- 
- 
- 
-<​HTML>​ 
-<p style="​border:​1px dashed #​C11B17;​color:#​C11B17;">​ 
-We strongly suggest to use the color attribute to keep everything as user friendly as possible. 
-</p> 
-</​HTML>​ 
- 
- 
-The color attribute has priority over the the rgb attributes.