mapcomplete/Docs/Layers/icons.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

177 lines
4.5 KiB
Markdown
Raw Normal View History

2023-03-08 19:17:03 +01:00
[//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources)
icons
=======
A layer acting as library for icon-tagrenderings, especially to show as badge next to a POI
- This layer is shown at zoomlevel **0** and higher
- Elements don't have a title set and cannot be toggled nor will they show up in the dashboard. If you import this layer in your theme, override `title` to make this toggleable.
- Not visible in the layer selection by default. If you want to make this layer toggable, override `name`
- Not rendered on the map by default. If you want to rendering this on the map, override `mapRenderings`
Basic tags for this layer
---------------------------
Elements must have the all of following tags to be shown on this layer:
- id~.+
[Execute on overpass](http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A90%5D%3B(%20%20%20%20nwr%5B%22id%22%5D(%7B%7Bbbox%7D%7D)%3B%0A)%3Bout%20body%3B%3E%3Bout%20skel%20qt%3B)
Supported attributes
----------------------
Warning:
this quick overview is incomplete
attribute | type | values which are supported by this layer
----------- | ------ | ------------------------------------------
[<img src='https://mapcomplete.osm.be/assets/svg/statistics.svg' height='18px'>](https://taginfo.openstreetmap.org/keys/wikipedia#values) [wikipedia](https://wiki.openstreetmap.org/wiki/Key:wikipedia) | Multiple choice | [](https://wiki.openstreetmap.org/wiki/Tag:wikipedia%3D)
[<img src='https://mapcomplete.osm.be/assets/svg/statistics.svg' height='18px'>](https://taginfo.openstreetmap.org/keys/_isOpen#values) [_isOpen](https://wiki.openstreetmap.org/wiki/Key:_isOpen) | Multiple choice | [yes](https://wiki.openstreetmap.org/wiki/Tag:_isOpen%3Dyes) [no](https://wiki.openstreetmap.org/wiki/Tag:_isOpen%3Dno) [](https://wiki.openstreetmap.org/wiki/Tag:_isOpen%3D) [parse_error](https://wiki.openstreetmap.org/wiki/Tag:_isOpen%3Dparse_error)
[<img src='https://mapcomplete.osm.be/assets/svg/statistics.svg' height='18px'>](https://taginfo.openstreetmap.org/keys/smoking#values) [smoking](https://wiki.openstreetmap.org/wiki/Key:smoking) | Multiple choice | [no](https://wiki.openstreetmap.org/wiki/Tag:smoking%3Dno) [yes](https://wiki.openstreetmap.org/wiki/Tag:smoking%3Dyes)
### wikipedialink
This tagrendering has no question and is thus read-only
- *<a href='https://www.wikidata.org/wiki/{wikidata}' target='_blank'><img src='./assets/svg/wikidata.svg' alt='WD'/></a>* corresponds with ``
This tagrendering is only visible in the popup if the following condition is met: `wikipedia~.+|wikidata~.+`
This tagrendering has labels `defaults`
### isOpen
This tagrendering has no question and is thus read-only
- *clock:#0f0;ring:#0f0* corresponds with `_isOpen=yes`
- *circle:#f00;clock:#fff* corresponds with `_isOpen=no`
- *clock:#ff0;ring:#ff0* corresponds with `opening_hours~.+`
- *circle:#f0f;clock:#fff* corresponds with `_isOpen=parse_error&opening_hours~.+`
This tagrendering has labels `defaults`
### phonelink
This tagrendering has no question and is thus read-only
This tagrendering is only visible in the popup if the following condition is met: `phone~.+`
This tagrendering has labels `defaults`
### emaillink
This tagrendering has no question and is thus read-only
This tagrendering is only visible in the popup if the following condition is met: `email~.+`
This tagrendering has labels `defaults`
### smokingicon
This tagrendering has no question and is thus read-only
- *<img textmode='🚭️' alt='no-smoking' src='./assets/tagRenderings/no_smoking.svg'/>* corresponds with `smoking=no`
- *<img textmode='🚬️' alt='smoking-allowed' src='./assets/tagRenderings/smoking.svg'/>* corresponds with `smoking=yes`
This tagrendering has labels `defaults`
### sharelink
This tagrendering has no question and is thus read-only
This tagrendering has labels `defaults`
### osmlink
This tagrendering has no question and is thus read-only
- ** corresponds with `id~^(.*\/-.*)$`
- *<a href='{_backend}/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'/></a>* corresponds with `_backend~.+`
This tagrendering is only visible in the popup if the following condition is met: `id~^((node|way|relation)\/[0-9]*)$`
This tagrendering has labels `defaults`
This document is autogenerated from [assets/layers/icons/icons.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/icons/icons.json)