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
manual:advanced:map_tools:theming [2015/09/10 08:48] mstupkamanual:advanced:map_tools:theming [2022/04/20 14:53] (current) – [Possible values] mstupka
Line 6: Line 6:
 ==== Basic information ==== ==== Basic information ====
  
-This page contains **mapping XML** file used by Locus Map for generating OSM-based vector maps.+This page contains the **mapping XML** file used by Locus Map for generating OSM-based vector maps.
  
 ==== 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%> +The XML file used for the 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>
-**{{:manual:advanced:map_tools:tag-mapping-tourist_20150407.zip|tag-mapping.zip}}** +
-</WRAP>+
  
  
 ==== Internal themes ==== ==== Internal themes ====
  
-Definition of five default themes +Definition of five default themes <WRAP center round download 60%> **{{:manual:advanced:map_tools:locus_internal_theme_20170119.zip|locus_internal_theme_20170119.zip}} ** </WRAP>
-<WRAP center round download 60%> +
-**{{:manual:advanced:map_tools:locus_internal_theme_20150407.zip|locus_internal_theme_20150407.zip}}** +
-</WRAP> +
  
 ---- ----
- + 
 ===== LoMaps - theme configuration ===== ===== LoMaps - theme configuration =====
  
Line 69: Line 64:
  
   * curve   * curve
-  * dy +  * dy
   * src   * src
   * stroke   * stroke
Line 97: Line 92:
   * dy   * dy
   * upper-case   * upper-case
 +  * rotate_up
   * scale-font-size   * scale-font-size
   * bg-rect-fill   * bg-rect-fill
Line 118: 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 124: Line 122:
 === bg-rect-* === === bg-rect-* ===
  
-Background rectangle is very useful method of drawing a nicely looking rectangle as a background of texts.+A background rectangle is very useful method of drawing a nicely looking rectangle as a background for texts.
  
   * 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 143: Line 141:
 === fill === === fill ===
  
-  * Fills colours of items.  +  * Fills colors of items. 
-  * value: colour+  * value: color
  
 === force-draw === === force-draw ===
Line 150: 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 means that path text doesn't follow the direction of the way but it automatically rotates 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 the direction of the way
  
 === scale === === scale ===
Line 159: Line 161:
 === scale-icon-size === === scale-icon-size ===
  
-  * Allows to scale a symbol based on current zoom level. Very useful method of increasing the size of symbols on map when you change the zoom level. Method is defined by two values separated by comma, where 1st value is base zoom level, 2nd value is exponent. Base scale value is from attribute **scale**.+  * Allows scaling a symbol based on the current zoom level. A very useful method of increasing the size of symbols on the map when you change the zoom level. The method is defined by two values separated by comma, where 1st value is the base zoom level, and the 2nd value is the exponent. The base scale value is from attribute **scale**.
  
   * 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 ===
  
-  * Stroke colours for items. +  * Stroke colors for items. 
-  * value: colour+  * value: color
  
 === stroke-width === === stroke-width ===
  
-  * Width of stroke color+  * Width of the stroke color
   * value: decimal number   * value: decimal number
  
 === 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 190: Line 194:
   * used in: caption, pathText   * used in: caption, pathText
   * value: boolean   * value: boolean
 +
  
 ==== Possible values ==== ==== Possible values ====
Line 204: Line 209:
  
 Common decimal number Common decimal number
 +<WRAP center round important>
 +Use only **UTF-8** charset for filenames and other texts.
 +</WRAP>
 +For more information about the custom map themes, **[[https://medium.com/@menion.asamm/custom-map-themes-in-locus-map-203aead34ccb|please visit >>]]**
manual/advanced/map_tools/theming.1441867731.txt.gz · Last modified: 2015/09/10 09:48 (external edit)