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

Next revision
Previous revision
manual:advanced:map_tools:theming [2015/05/06 09:56] – created mstupkamanual:advanced:map_tools:theming [2022/04/20 14:53] (current) – [Possible values] mstupka
Line 1: Line 1:
-====== Locus Maps Theming ======+====== LoMaps Theming ======
  
 ---- ----
-===== Vector Maps Content =====+===== LoMaps content =====
  
 ==== Basic information ==== ==== Basic information ====
  
-This page contains **mapping XML** fileused by Locus for generating OSM-based vector maps +This page contains the **mapping XML** file used by Locus Map for generating OSM-based vector maps.
-blabla+
  
 ==== TAG file ==== ==== TAG file ====
-XML file used for generation of vector map. It contains combination OSM tag KEY-VALUE of element that are rendered in Locus vector maps. 
-{{:manual:map_tools:tag-mapping-tourist_20150407.zip|tag-mapping.zip}} 
  
-==== Internal themes ====+The XML file used for the generation of vector maps contains a 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>
  
-Definition of five default themes 
-{{:manual:map_tools:locus_internal_theme_20150407.zip|}} 
-  
-====== Vector Maps - theme configuration ====== 
  
-<WRAP alert>+==== Internal themes ====
  
-**PAGE IN PREPARATION**+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>+----
  
-<WRAP box left>  
-  * Locus type: <html><b><a href="https://play.google.com/store/apps/details?id=menion.android.locus&amp;referrer=utm_source%3Ddocs%26utm_medium%3Dheader%26utm_content%3Dvector_maps_theme_config" target="_blank">Free</a>/<a href="https://play.google.com/store/apps/details?id=menion.android.locus.pro&amp;referrer=utm_source%3Ddocs%26utm_medium%3Dheader%26utm_content%3Dvector_maps_theme_config" target="_blank">Pro</a></b></html>, **2.5.0+** 
-  * Last updated manual: **2.5.0** 
-</WRAP> 
  
-===== Basic information =====+===== LoMaps - theme configuration =====
  
-some text ... 
  
-===== Supported tags =====+==== Supported tags ====
  
-==== area ====+=== area ===
  
   * src   * src
Line 44: Line 32:
   * stroke-width   * stroke-width
  
-==== caption ====+=== caption ===
  
   * k   * k
Line 65: Line 53:
   * force-draw   * force-draw
  
-==== circle ====+=== circle ===
  
   * r   * r
Line 73: Line 61:
   * stroke-width   * stroke-width
  
-==== line ====+=== line ===
  
   * curve   * curve
-  * dy +  * dy
   * src   * src
   * stroke   * stroke
Line 83: Line 71:
   * stroke-linecap   * stroke-linecap
  
-==== lineSymbol ====+=== lineSymbol ===
  
   * src   * src
Line 92: Line 80:
   * scale-icon-size   * scale-icon-size
  
-==== pathText ====+=== pathText ===
  
   * k   * k
Line 104: Line 92:
   * dy   * dy
   * upper-case   * upper-case
 +  * rotate_up
   * scale-font-size   * scale-font-size
   * bg-rect-fill   * bg-rect-fill
Line 111: Line 100:
   * bg-rect-rounded   * bg-rect-rounded
  
-==== symbol ====+=== symbol ===
  
   * src   * src
Line 121: Line 110:
   * force-draw   * force-draw
  
----- 
  
-===== Details about tags =====+==== Detailed information about tags ==== 
 + 
 +=== curve === 
 + 
 +Adds possibility to draw line extrapolated as a curve. It helps in some situations to create "smooth" lines:
  
-==== curve ==== 
-Add possibility to draw line extrapolated as curve. It helps in some situation 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"/>''
  
-==== bg-rect-* ====+=== bg-rect-* ===
  
-Background rectangle is very useful method how to draw nice looking rectangle on 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
  
-==== fill ====+=== fill ===
  
-  * Fill colours of items.  +  * Fills colors of items. 
-  * value: colour+  * value: color
  
-==== force-draw ====+=== force-draw ===
  
-  * useful method to draw icon no matter if other overlay it or not+  * useful method of drawing an icon no matter if others overlay it or not
   * value: boolean   * value: boolean
  
-==== scale ====+=== 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 symbol for drawing   * Scale symbol for drawing
Line 165: Line 159:
   * value: decimal number   * value: decimal number
  
-==== scale-icon-size ====+=== scale-icon-size ===
  
-  * Allow to scale symbol based on current zoom level. Very useful method how to increase size of symbols on map when you change zoom level. Method is defined by two values separated by comma, where 1. value is base zoom level, 2. 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 colour+  * Width of the stroke color
   * value: decimal number   * value: decimal number
  
-==== symbol-width, symbol-height ==== +=== symbol-width, symbol-height === 
-enables to resize symbol icon to specific width or height+ 
 +enables to resize the symbol icon to specific width or height 
   * value: decimal number   * value: decimal number
  
-==== upper-case ====+=== upper-case ===
  
-  * allow to display texts in upper-case+  * allows to display texts in upper-case
   * used in: caption, pathText   * used in: caption, pathText
   * value: boolean   * value: boolean
  
-===== Possible values ===== 
  
-==== boolean ====+==== Possible values ====
  
-Boolean value may be written as text ''true'', ''false'' or as an number ''1'' (as ''true''), ''0'' (as ''false'')+=== boolean ===
  
-==== colour ====+Boolean value may be written as text ''true'', ''false'' or as number ''1'' (as ''true''), ''0'' (as ''false'')
  
-Supported formats are Supported formats are: #RRGGBB #AARRGGBB 'red', 'blue', 'green', 'black', 'white', 'gray', 'cyan', 'magenta', 'yellow', 'lightgray', 'darkgray'+=== colour ===
  
-==== decimal number ====+Supported formats are: #RRGGBB #AARRGGBB 'red', 'blue', 'green', 'black', 'white', 'gray', 'cyan', 'magenta', 'yellow', 'lightgray', 'darkgray' 
 + 
 +=== decimal number ===
  
 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.1430898991.txt.gz · Last modified: 2015/05/06 10:56 (external edit)