Browse Source

Doc CategoryAsYAML: add links

master
parent
commit
e73dc2870e
  1. 8
      doc/CategoryAsYAML.md

8
doc/CategoryAsYAML.md

@ -1,6 +1,6 @@
Categories can be created as YAML files. This is much simpler as JSON files and allows adding comments. Categories can be created as YAML files. This is much simpler as JSON files and allows adding comments.
A simple example:
A simple example ([Source](https://www.openstreetbrowser.org/dev/OpenStreetBrowser/examples/src/branch/master/example1.yaml)):
```yaml ```yaml
type: overpass type: overpass
@ -9,7 +9,7 @@ query:
15: nwr[amenity=restaurant] 15: nwr[amenity=restaurant]
``` ```
Another example, showing fountains from z15 and (additionally) drinking_water from z17:
Another example, showing fountains from z15 and (additionally) drinking_water from z17 ([Source](https://www.openstreetbrowser.org/dev/OpenStreetBrowser/examples/src/branch/master/example2.yaml)):
```yaml ```yaml
type: overpass type: overpass
query: query:
@ -30,8 +30,8 @@ feature:
{% endif %} {% endif %}
``` ```
Roads, with different color depending on its priority:
```
Roads, with different color depending on its priority ([Source](https://www.openstreetbrowser.org/dev/OpenStreetBrowser/examples/src/branch/master/example3.yaml)):
```yaml
type: overpass type: overpass
name: name:
en: Roads # English name of the category en: Roads # English name of the category

Loading…
Cancel
Save