From f6e51898b743a48b4846baf90f167ea743c2c929 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Wed, 27 Feb 2019 18:58:24 +0100 Subject: [PATCH] Improve Rendertheme docs --- docs/Rendertheme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Rendertheme.md b/docs/Rendertheme.md index 62d6c533..fb111ebc 100644 --- a/docs/Rendertheme.md +++ b/docs/Rendertheme.md @@ -14,13 +14,13 @@ It is always recommended to study the [default](https://github.com/mapsforge/vtm ## Rules -A rule element `` has several attributes to specify which map elements the rule matches. Non of them is required. +A rule element `` (_match_) has several attributes to specify which map elements the rule matches. Non of them is required. |**Attribute**|**Valid values**|**Description**|**Default**| |-------------|----------------|---------------|------------| |e|
  • node
  • way
  • any
|Defines which map element type will be matched.|*any*| -|k|[string](http://www.w3.org/TR/xmlschema-2/#string)|The key of the OpenStreetMap tag.
  • A vertical bar "`\|`" can be used to specify multiple keys.
  • |any key| -|v|[string](http://www.w3.org/TR/xmlschema-2/#string)|The value of the OpenStreetMap tag.
    • A vertical bar "`\|`" can be used to specify multiple values.
    • A minus sign "`-`" excludes the other values after "`\|`". It never works alone.
    • A tilde "`~`" matches if the map element does not have a tag with the specified key.
    • |any value| +|k|[string](http://www.w3.org/TR/xmlschema-2/#string)|The key of the tile source tag.
      • A vertical bar "`\|`" can be used to specify multiple keys.
      • |any key| +|v|[string](http://www.w3.org/TR/xmlschema-2/#string)|The value of the tile source tag.
        • A vertical bar "`\|`" can be used to specify multiple values.
        • A minus sign "`-`" excludes the other values after "`\|`". It never works alone.
        • A tilde "`~`" matches if the map element does not have a tag with the specified key.
        • |any value| |closed|
          • yes
          • no
          • any
          |Defines which ways will be matched. A way is considered as closed if its first node and its last node are equal.|*any*| |select|
          • first
          • when-matched
          • any
          |
          • Only add the first matching sub-rule in this rule section (the others are ignored)
          • Select all matches of the enclosing rule section
          • Select all (whether it was matched or not)
          |*any*| |zoom-min|[unsigned byte](http://www.w3.org/TR/xmlschema-2/#unsignedByte)|The minimum zoom level on which the rule will be matched.|*0*|