Skip to content

Commit

Permalink
Tutorial custom categories
Browse files Browse the repository at this point in the history
  • Loading branch information
plepe committed Jun 4, 2023
1 parent 48a383d commit aebc135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Tutorial.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Categories can be created as YAML files. This is much simpler as JSON files, because you don't have to add all these quotes, you can use multi-line strings and allows adding comments.

A short tutorial is available as Youtube video:<br>
[![Video - Tutorial Custom Categories](./tutorial-customCategories.jpg)](https://www.youtube.com/watch?v=I0x4Kwz6u90)

A simple example ([Source](https://www.openstreetbrowser.org/dev/OpenStreetBrowser/examples/src/branch/master/example1.yaml) | [Try this](https://www.openstreetbrowser.org/#categories=openstreetbrowser/examples/example1)). It queries nodes, ways and relations with amenity=restaurant from OpenStreetMap (via Overpass API), starting from zoom level 15. `nwr` is short for `(node[amenity=restaurant];way[amenity=restaurant];relation[amenity=restaurant];)`. Please note, that only a subset of OverpassQL is available (see [overpass-frontend](https://github.com/plepe/overpass-frontend) for details).

```yaml
Expand Down
Binary file added doc/tutorial-customCategories.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aebc135

Please sign in to comment.