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)):