User Tools

Site Tools


manual:advanced:map_tools:theming

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
manual:advanced:map_tools:theming [2017/01/19 13:03] – [Internal themes] voldapetmanual:advanced:map_tools:theming [2017/01/19 14:09] – external edit 127.0.0.1
Line 10: Line 10:
 ==== TAG file ==== ==== TAG file ====
  
-The XML file used for generation of vector maps contains combination of OSM tag KEY-VALUE of elements that are rendered in Locus vector maps. <WRAP center round download 60%> **{{:manual:advanced:map_tools:locus_internal_theme_20170119.zip|tag-mapping.zip}} ** </WRAP>+The XML file used for generation of vector maps contains combination of OSM tag KEY-VALUE of elements that are rendered in Locus vector maps. <WRAP center round download 60%> **{{:manual:advanced:map_tools:tag-mapping_20170119.zip|tag-mapping_20170119.zip}}  ** </WRAP>
  
  
Line 64: Line 64:
  
   * curve   * curve
-  * dy +  * dy
   * src   * src
   * stroke   * stroke
Line 92: Line 92:
   * dy   * dy
   * upper-case   * upper-case
 +  * rotate_up
   * scale-font-size   * scale-font-size
   * bg-rect-fill   * bg-rect-fill
Line 113: Line 114:
  
 === curve === === curve ===
 +
 Adds possibility to draw line extrapolated as a curve. It helps in some situations to create "smooth" lines: Adds possibility to draw line extrapolated as a curve. It helps in some situations to create "smooth" lines:
 +
   * value: "cubic"   * value: "cubic"
   * example: ''<line stroke="#A07F5F" stroke-width="0.08" curve="cubic"/>''   * example: ''<line stroke="#A07F5F" stroke-width="0.08" curve="cubic"/>''
Line 122: Line 125:
  
   * bg-rect-fill   * bg-rect-fill
-    * more in **fill** attribute+      * more in **fill**  attribute
   * bg-rect-stroke   * bg-rect-stroke
-    * more in **stroke** attribute+      * more in **stroke**  attribute
   * bg-rect-over   * bg-rect-over
-    * space between text and border +      * space between text and border 
-    * value: decimal number+      * value: decimal number
   * bg-rect-stroke-width   * bg-rect-stroke-width
-    * more in **stroke-width**+      * more in **stroke-width**
   * bg-rect-rounded   * bg-rect-rounded
-    * allow to round corners of bounding rectgangle +      * allow to round corners of bounding rectgangle 
-    * value: decimal number+      * value: decimal number
  
   * used in: caption, pathText   * used in: caption, pathText
Line 138: Line 141:
 === fill === === fill ===
  
-  * Fills colours of items. +  * Fills colours of items.
   * value: colour   * value: colour
  
Line 145: Line 148:
   * useful method of drawing an icon no matter if others overlay it or not   * useful method of drawing an icon no matter if others overlay it or not
   * value: boolean   * value: boolean
 +
 +=== rotate_up ===
 +
 +  * default value ''rotate_up="true"''  automatically rotates text up. It mean that path text doesn't follow direction of the way but it's automatically rotate to the readable direction. This is not ideal for contour lines where text should follow the gradient. Set to ''rotate_up="true"''  and next will be in the same direction as direction of the way
  
 === scale === === scale ===
Line 157: Line 164:
  
   * example: ''scale="1.5" scale-icon-size="12,1.1"''   * example: ''scale="1.5" scale-icon-size="12,1.1"''
-    * for zoom levels 0 - 11, scale: **1.5** +      * for zoom levels 0 - 11, scale: **1.5** 
-    * for zoom level 12, scale: 1.5 * 1.0 = **1.5** +      * for zoom level 12, scale: 1.5 * 1.0 = **1.5** 
-    * for zoom level 13, scale:  +      * for zoom level 13, scale: 
-      * zoom level difference: 1 +        * zoom level difference: 1 
-      * scale: 1.5 * 1.1 = **1.65** +        * scale: 1.5 * 1.1 = **1.65** 
-    * for zoom level 15, scale:  +      * for zoom level 15, scale: 
-      * zoom level difference: 3 +        * zoom level difference: 3 
-      * scale: 1.5 * 1.1 * 1.1 * 1.1 = **2.00**+        * scale: 1.5 * 1.1 * 1.1 * 1.1 = **2.00**
  
 === stroke === === stroke ===
Line 177: Line 184:
  
 === symbol-width, symbol-height === === symbol-width, symbol-height ===
 +
 enables to resize the symbol icon to specific width or height enables to resize the symbol icon to specific width or height
 +
   * value: decimal number   * value: decimal number
  
Line 185: Line 194:
   * used in: caption, pathText   * used in: caption, pathText
   * value: boolean   * value: boolean
 +
  
 ==== Possible values ==== ==== Possible values ====
manual/advanced/map_tools/theming.txt · Last modified: 2022/04/20 14:53 by mstupka