mapcomplete/Docs/SpecialRenderings.md

1168 lines
51 KiB
Markdown
Raw Normal View History

2023-02-12 23:08:57 +01:00
[//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources)
2022-02-14 04:59:49 +01:00
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Special tag renderings
========================
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
In a tagrendering, some special values are substituted by an advanced UI-element. This allows advanced features and visualizations to be reused by custom themes or even to query third-party API's.
2024-04-28 03:46:56 +02:00
2024-06-19 00:08:40 +02:00
General usage is `{func_name()}`, `{func_name(arg, someotherarg)}` or `{func_name(args):cssClasses}`. Note that you _do not_ need to use quotes around your arguments, the comma is enough to separate them. This also implies you cannot use a comma in your args
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Table of contents
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
- [Using expanded syntax](#using-expanded-syntax)
1. [questions](#questions)
- [Example usage of questions](#example-usage-of-questions)
2. [add_new_point](#add_new_point)
- [Example usage of add_new_point](#example-usage-of-add_new_point)
2024-08-14 13:53:56 +02:00
3. [language_picker](#language_picker)
2024-05-07 00:41:59 +02:00
- [Example usage of language_picker](#example-usage-of-language_picker)
2024-08-14 13:53:56 +02:00
4. [logout](#logout)
2024-05-07 00:41:59 +02:00
- [Example usage of logout](#example-usage-of-logout)
2024-08-14 13:53:56 +02:00
5. [histogram](#histogram)
2024-05-07 00:41:59 +02:00
- [Example usage of histogram](#example-usage-of-histogram)
2024-08-14 13:53:56 +02:00
6. [steal](#steal)
2024-05-07 00:41:59 +02:00
- [Example usage of steal](#example-usage-of-steal)
2024-08-14 13:53:56 +02:00
7. [minimap](#minimap)
2024-05-07 00:41:59 +02:00
- [Example usage of minimap](#example-usage-of-minimap)
2024-08-14 13:53:56 +02:00
8. [split_button](#split_button)
2024-05-07 00:41:59 +02:00
- [Example usage of split_button](#example-usage-of-split_button)
2024-08-14 13:53:56 +02:00
9. [move_button](#move_button)
2024-05-07 00:41:59 +02:00
- [Example usage of move_button](#example-usage-of-move_button)
2024-08-14 13:53:56 +02:00
10. [delete_button](#delete_button)
2024-05-07 00:41:59 +02:00
- [Example usage of delete_button](#example-usage-of-delete_button)
2024-08-14 13:53:56 +02:00
11. [share_link](#share_link)
2024-05-07 00:41:59 +02:00
- [Example usage of share_link](#example-usage-of-share_link)
2024-08-14 13:53:56 +02:00
12. [export_as_gpx](#export_as_gpx)
2024-05-07 00:41:59 +02:00
- [Example usage of export_as_gpx](#example-usage-of-export_as_gpx)
2024-08-14 13:53:56 +02:00
13. [upload_to_osm](#upload_to_osm)
2024-05-07 00:41:59 +02:00
- [Example usage of upload_to_osm](#example-usage-of-upload_to_osm)
2024-08-14 13:53:56 +02:00
14. [multi_apply](#multi_apply)
2024-05-07 00:41:59 +02:00
- [Example usage of multi_apply](#example-usage-of-multi_apply)
2024-08-14 13:53:56 +02:00
15. [add_note_comment](#add_note_comment)
2024-05-07 00:41:59 +02:00
- [Example usage of add_note_comment](#example-usage-of-add_note_comment)
2024-08-14 13:53:56 +02:00
16. [open_note](#open_note)
2024-05-07 00:41:59 +02:00
- [Example usage of open_note](#example-usage-of-open_note)
2024-08-14 13:53:56 +02:00
17. [close_note](#close_note)
2024-05-07 00:41:59 +02:00
- [Example usage of close_note](#example-usage-of-close_note)
2024-08-14 13:53:56 +02:00
18. [plantnet_detection](#plantnet_detection)
2024-05-07 00:41:59 +02:00
- [Example usage of plantnet_detection](#example-usage-of-plantnet_detection)
2024-08-14 13:53:56 +02:00
19. [tag_apply](#tag_apply)
2024-05-07 00:41:59 +02:00
- [Example usage of tag_apply](#example-usage-of-tag_apply)
2024-08-14 13:53:56 +02:00
20. [import_button](#import_button)
2024-05-07 00:41:59 +02:00
- [Specifying which tags to copy or add](#specifying-which-tags-to-copy-or-add)
- [Importing a dataset into OpenStreetMap: requirements](#importing-a-dataset-into-openstreetmap-requirements)
- [Disabled in unofficial themes](#disabled-in-unofficial-themes)
- [Example usage of import_button](#example-usage-of-import_button)
2024-08-14 13:53:56 +02:00
21. [import_way_button](#import_way_button)
2024-05-07 00:41:59 +02:00
- [Specifying which tags to copy or add](#specifying-which-tags-to-copy-or-add)
- [Importing a dataset into OpenStreetMap: requirements](#importing-a-dataset-into-openstreetmap-requirements)
- [Disabled in unofficial themes](#disabled-in-unofficial-themes)
- [Example usage of import_way_button](#example-usage-of-import_way_button)
2024-08-14 13:53:56 +02:00
22. [conflate_button](#conflate_button)
2024-05-07 00:41:59 +02:00
- [Specifying which tags to copy or add](#specifying-which-tags-to-copy-or-add)
- [Importing a dataset into OpenStreetMap: requirements](#importing-a-dataset-into-openstreetmap-requirements)
- [Disabled in unofficial themes](#disabled-in-unofficial-themes)
- [Example usage of conflate_button](#example-usage-of-conflate_button)
2024-08-14 13:53:56 +02:00
23. [nearby_images](#nearby_images)
2024-05-07 00:41:59 +02:00
- [Example usage of nearby_images](#example-usage-of-nearby_images)
2024-08-14 13:53:56 +02:00
24. [wikipedia](#wikipedia)
2024-05-07 00:41:59 +02:00
- [Example usage of wikipedia](#example-usage-of-wikipedia)
2024-08-14 13:53:56 +02:00
25. [wikidata_label](#wikidata_label)
2024-05-07 00:41:59 +02:00
- [Example usage of wikidata_label](#example-usage-of-wikidata_label)
2024-08-14 13:53:56 +02:00
26. [mapillary_link](#mapillary_link)
2024-05-07 00:41:59 +02:00
- [Example usage of mapillary_link](#example-usage-of-mapillary_link)
2024-08-14 13:53:56 +02:00
27. [language_chooser](#language_chooser)
2024-05-07 00:41:59 +02:00
- [Example usage of language_chooser](#example-usage-of-language_chooser)
2024-08-14 13:53:56 +02:00
28. [all_tags](#all_tags)
2024-05-07 00:41:59 +02:00
- [Example usage of all_tags](#example-usage-of-all_tags)
2024-08-14 13:53:56 +02:00
29. [image_carousel](#image_carousel)
2024-05-07 00:41:59 +02:00
- [Example usage of image_carousel](#example-usage-of-image_carousel)
2024-08-14 13:53:56 +02:00
30. [image_upload](#image_upload)
2024-05-07 00:41:59 +02:00
- [Example usage of image_upload](#example-usage-of-image_upload)
2024-08-14 13:53:56 +02:00
31. [rating](#rating)
2024-05-07 00:41:59 +02:00
- [Example usage of rating](#example-usage-of-rating)
2024-08-14 13:53:56 +02:00
32. [create_review](#create_review)
2024-05-07 00:41:59 +02:00
- [Example usage of create_review](#example-usage-of-create_review)
2024-08-14 13:53:56 +02:00
33. [list_reviews](#list_reviews)
2024-05-07 00:41:59 +02:00
- [Example usage of list_reviews](#example-usage-of-list_reviews)
2024-08-14 13:53:56 +02:00
34. [reviews](#reviews)
- [Example usage of reviews](#example-usage-of-reviews)
2024-05-07 00:41:59 +02:00
35. [import_mangrove_key](#import_mangrove_key)
- [Example usage of import_mangrove_key](#example-usage-of-import_mangrove_key)
36. [opening_hours_table](#opening_hours_table)
- [Example usage of opening_hours_table](#example-usage-of-opening_hours_table)
37. [opening_hours_state](#opening_hours_state)
- [Example usage of opening_hours_state](#example-usage-of-opening_hours_state)
38. [canonical](#canonical)
- [Example usage of canonical](#example-usage-of-canonical)
39. [export_as_geojson](#export_as_geojson)
- [Example usage of export_as_geojson](#example-usage-of-export_as_geojson)
40. [open_in_iD](#open_in_id)
- [Example usage of open_in_iD](#example-usage-of-open_in_id)
41. [open_in_josm](#open_in_josm)
- [Example usage of open_in_josm](#example-usage-of-open_in_josm)
42. [clear_location_history](#clear_location_history)
- [Example usage of clear_location_history](#example-usage-of-clear_location_history)
43. [visualize_note_comments](#visualize_note_comments)
- [Example usage of visualize_note_comments](#example-usage-of-visualize_note_comments)
44. [add_image_to_note](#add_image_to_note)
- [Example usage of add_image_to_note](#example-usage-of-add_image_to_note)
45. [title](#title)
- [Example usage of title](#example-usage-of-title)
46. [maproulette_task](#maproulette_task)
- [Example usage of maproulette_task](#example-usage-of-maproulette_task)
47. [maproulette_set_status](#maproulette_set_status)
- [Example usage of maproulette_set_status](#example-usage-of-maproulette_set_status)
#### Using expanded syntax
2024-04-28 03:46:56 +02:00
Instead of using `{"render": {"en": "{some_special_visualisation(some_arg, some other really long message, more args)} , "nl": "{some_special_visualisation(some_arg, een boodschap in een andere taal, more args)}}`, one can also write
2024-05-07 00:41:59 +02:00
```
{
"render": {
"special": {
"type": "some_special_visualisation",
"argname": "some_arg",
"message": {
"en": "some other really long message",
"nl": "een boodschap in een andere taal"
},
"other_arg_name": "more args"
},
"before": {
"en": "Some text to prefix before the special element (e.g. a title)",
"nl": "Een tekst om voor het element te zetten (bv. een titel)"
},
"after": {
"en": "Some text to put after the element, e.g. a footer"
2024-04-28 03:46:56 +02:00
}
2024-05-07 00:41:59 +02:00
}
}
```
2023-02-12 23:08:57 +01:00
In other words: use `{ "before": ..., "after": ..., "special": {"type": ..., "argname": ...argvalue...}`. The args are in the `special` block; an argvalue can be a string, a translation or another value. (Refer to class `RewriteSpecial` in case of problems)
2022-04-03 03:49:09 +02:00
2024-04-28 03:46:56 +02:00
### questions
The special element which shows the questions which are unkown. Added by default if not yet there
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| labels | _undefined_ | One or more ';'-separated labels. If these are given, only questions with these labels will be given. Use `unlabeled` for all questions that don't have an explicit label. If none given, all questions will be shown |
| blacklisted-labels | _undefined_ | One or more ';'-separated labels of questions which should _not_ be included |
2024-04-28 03:46:56 +02:00
#### Example usage of questions
2024-05-07 00:41:59 +02:00
<code>`{questions(,)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### add_new_point
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
An element which allows to add a new point on the 'last_click'-location. Only makes sense in the layer `last_click`
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of add_new_point
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{add_new_point()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### language_picker
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
A component to set the language of the user interface
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of language_picker
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
<code>`{language_picker()}`</code>
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
### logout
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
Shows a button where the user can log out
2021-11-08 02:36:01 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of logout
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{logout()}`</code>
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
### histogram
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
Create a histogram for a list of given values, read from the properties.
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _undefined_ | The key to be read and to generate a histogram from |
| title | _empty string_ | This text will be placed above the texts (in the first column of the visulasition) |
| countHeader | _empty string_ | This text will be placed above the bars |
| colors* | _undefined_ | (Matches all resting arguments - optional) Matches a regex onto a color value, e.g. `3[a-zA-Z+-]*:#33cc33` |
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
#### Example usage of histogram
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{histogram('some_key')}` with properties being `{some_key: ["a","b","a","c"]} to create a histogram</code>
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
### steal
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
Shows a tagRendering from a different object as if this was the object itself
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| featureId | _undefined_ | The key of the attribute which contains the id of the feature from which to use the tags |
| tagRenderingId | _undefined_ | The layer-id and tagRenderingId to render. Can be multiple value if ';'-separated (in which case every value must also contain the layerId, e.g. `layerId.tagRendering0; layerId.tagRendering1`). Note: this can cause layer injection |
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
#### Example usage of steal
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{steal(,)}`</code>
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
### minimap
2023-04-15 03:02:01 +02:00
2024-04-28 03:46:56 +02:00
A small map showing the selected feature.
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| zoomlevel | 18 | The (maximum) zoomlevel: the target zoomlevel after fitting the entire feature. The minimap will fit the entire feature, then zoom out to this zoom level. The higher, the more zoomed in with 1 being the entire world and 19 being really close |
| idKey | id | (Matches all resting arguments) This argument should be the key of a property of the feature. The corresponding value is interpreted as either the id or the a list of ID's. The features with these ID's will be shown on this minimap. (Note: if the key is 'id', list interpration is disabled) |
2022-02-14 04:59:49 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of minimap
2024-07-16 19:31:00 +02:00
<code>`{minimap()}`, `{minimap(17, id, _list_of_embedded_feature_ids_calculated_by_calculated_tag):height:10rem; border: 2px solid black}`</code>
2024-05-07 00:41:59 +02:00
### split_button
2024-04-28 03:46:56 +02:00
Adds a button which allows to split a way
2024-05-07 00:41:59 +02:00
#### Example usage of split_button
2024-05-07 00:41:59 +02:00
<code>`{split_button()}`</code>
2024-05-07 00:41:59 +02:00
### move_button
2021-11-08 02:36:01 +01:00
2024-05-07 00:41:59 +02:00
Adds a button which allows to move the object to another location. The config will be read from the layer config
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of move_button
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{move_button()}`</code>
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
### delete_button
2021-10-28 03:21:17 +02:00
2024-05-07 00:41:59 +02:00
Adds a button which allows to delete the object at this location. The config will be read from the layer config
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of delete_button
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{delete_button()}`</code>
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
### share_link
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
Creates a link that (attempts to) open the native 'share'-screen
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| url | _undefined_ | The url to share (default: current URL) |
| text | _undefined_ | The text to show on the button. If none is given, will act as a titleIcon |
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of share_link
2021-11-08 02:36:01 +01:00
2024-05-07 00:41:59 +02:00
<code>{share_link()} to share the current page, {share_link(<some_url>)} to share the given url</code>
2024-05-07 00:41:59 +02:00
### export_as_gpx
2024-05-07 00:41:59 +02:00
Exports the selected feature as GPX-file
2024-05-07 00:41:59 +02:00
#### Example usage of export_as_gpx
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
<code>`{export_as_gpx()}`</code>
2023-05-08 00:20:32 +02:00
2024-05-07 00:41:59 +02:00
### upload_to_osm
2023-05-08 00:20:32 +02:00
2024-05-07 00:41:59 +02:00
Uploads the GPS-history as GPX to OpenStreetMap.org; clears the history afterwards. The actual feature is ignored.
2023-05-08 00:20:32 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of upload_to_osm
2023-05-08 00:20:32 +02:00
2024-05-07 00:41:59 +02:00
<code>`{upload_to_osm()}`</code>
2024-05-07 00:41:59 +02:00
### multi_apply
2022-02-04 01:21:45 +01:00
2024-05-07 00:41:59 +02:00
A button to apply the tagging of this object onto a list of other features. This is an advanced feature for which you'll need calculatedTags
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| feature_ids | _undefined_ | A JSON-serialized list of IDs of features to apply the tagging on |
| keys | _undefined_ | One key (or multiple keys, seperated by ';') of the attribute that should be copied onto the other features. |
| text | _undefined_ | The text to show on the button |
| autoapply | _undefined_ | A boolean indicating wether this tagging should be applied automatically if the relevant tags on this object are changed. A visual element indicating the multi_apply is still shown |
| overwrite | _undefined_ | If set to 'true', the tags on the other objects will always be overwritten. The default behaviour will be to only change the tags on other objects if they are either undefined or had the same value before the change |
2021-11-08 02:36:01 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of multi_apply
2024-05-07 00:41:59 +02:00
<code>{multi_apply(_features_with_the_same_name_within_100m, name:etymology:wikidata;name:etymology, Apply etymology information on all nearby objects with the same name)}</code>
2024-05-07 00:41:59 +02:00
### add_note_comment
2021-11-08 02:36:01 +01:00
2024-04-28 03:46:56 +02:00
A textfield to add a comment to a node (with the option to close the note).
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| Id-key | id | The property name where the ID of the note to close can be found |
2024-05-07 00:41:59 +02:00
#### Example usage of add_note_comment
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{add_note_comment(id)}`</code>
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
### open_note
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
Creates a new map note on the given location. This options is placed in the 'last_click'-popup automatically if the 'notes'-layer is enabled
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of open_note
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{open_note()}`</code>
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
### close_note
2023-04-15 03:02:01 +02:00
2024-07-12 03:16:41 +02:00
Button to close a note. A predefined text can be defined to close the note with. If the note is already closed, will show a small text.
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| text | _undefined_ | Text to show on this button |
| icon | checkmark.svg | Icon to show |
| idkey | id | The property name where the ID of the note to close can be found |
| comment | _undefined_ | Text to add onto the note when closing |
| minZoom | _undefined_ | If set, only show the closenote button if zoomed in enough |
| zoomButton | _undefined_ | Text to show if not zoomed in enough |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of close_note
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{close_note(,checkmark.svg,id,,,)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### plantnet_detection
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Sends the images linked to the current object to plantnet.org and asks it what plant species is shown on it. The user can then select the correct species; the corresponding wikidata-identifier will then be added to the object (together with `source:species:wikidata=plantnet.org AI`).
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| image_key | image,mapillary,image,wikidata,wikimedia_commons,image,image | The keys given to the images, e.g. if <span class='literal-code'>image</span> is given, the first picture URL will be added as <span class='literal-code'>image</span>, the second as <span class='literal-code'>image:0</span>, the third as <span class='literal-code'>image:1</span>, etc... Multiple values are allowed if ';'-separated |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of plantnet_detection
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{plantnet_detection(image,mapillary,image,wikidata,wikimedia_commons,image,image)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### tag_apply
2024-04-28 03:46:56 +02:00
Shows a big button; clicking this button will apply certain tags onto the feature.
2024-05-07 00:41:59 +02:00
The first argument takes a specification of which tags to add.
These can either be a tag to add, such as `amenity=fast_food` or can use a substitution, e.g. `addr:housenumber=$number`.
This new point will then have the tags `amenity=fast_food` and `addr:housenumber` with the value that was saved in `number` in the original feature.
2023-04-15 03:02:01 +02:00
If a value to substitute is undefined, empty string will be used instead.
This supports multiple values, e.g. `ref=$source:geometry:type/$source:geometry:ref`
Remark that the syntax is slightly different then expected; it uses '$' to note a value to copy, followed by a name (matched with `[a-zA-Z0-9_:]*`). Sadly, delimiting with `{}` as these already mark the boundaries of the special rendering...
Note that these values can be prepare with javascript in the theme by using a [calculatedTag](calculatedTags.md#calculating-tags-with-javascript)
2024-05-07 00:41:59 +02:00
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| tags_to_apply | _undefined_ | A specification of the tags to apply. This is either hardcoded in the layer or the `$name` of a property containing the tags to apply. If redirected and the value of the linked property starts with `{`, the other property will be interpreted as a json object |
| message | _undefined_ | The text to show to the contributor |
| image | _undefined_ | An image to show to the contributor on the button |
| id_of_object_to_apply_this_one | _undefined_ | If specified, applies the the tags onto _another_ object. The id will be read from properties[id_of_object_to_apply_this_one] of the selected object. The tags are still calculated based on the tags of the _selected_ element |
| maproulette_id | _undefined_ | If specified, this maproulette-challenge will be closed when the tags are applied. This should be the ID of the task, _not_ the task_id. |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of tag_apply
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
<code>`{tag_apply(survey_date=$_now:date, Surveyed today!)}`, `{tag_apply(addr:street=$addr:street, Apply the address, apply_icon.svg, _closest_osm_id)</code>
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
### import_button
2024-04-28 03:46:56 +02:00
This button will copy the point from an external dataset into OpenStreetMap
2024-05-07 00:41:59 +02:00
Note that the contributor must zoom to at least zoomlevel 18 to be able to use this functionality.
It is only functional in official themes, but can be tested in unoffical themes.
2021-12-11 02:52:51 +01:00
#### Specifying which tags to copy or add
2023-06-11 02:32:14 +02:00
The argument `tags` of the import button takes a `;`-seperated list of tags to add (or the name of a property which contains a JSON-list of properties).
2021-12-11 02:52:51 +01:00
2024-05-07 00:41:59 +02:00
These can either be a tag to add, such as `amenity=fast_food` or can use a substitution, e.g. `addr:housenumber=$number`.
This new point will then have the tags `amenity=fast_food` and `addr:housenumber` with the value that was saved in `number` in the original feature.
2021-12-11 02:52:51 +01:00
If a value to substitute is undefined, empty string will be used instead.
This supports multiple values, e.g. `ref=$source:geometry:type/$source:geometry:ref`
2022-02-14 04:59:49 +01:00
Remark that the syntax is slightly different then expected; it uses '$' to note a value to copy, followed by a name (matched with `[a-zA-Z0-9_:]*`). Sadly, delimiting with `{}` as these already mark the boundaries of the special rendering...
2021-12-11 02:52:51 +01:00
2022-02-14 04:59:49 +01:00
Note that these values can be prepare with javascript in the theme by using a [calculatedTag](calculatedTags.md#calculating-tags-with-javascript)
2024-05-07 00:41:59 +02:00
#### Importing a dataset into OpenStreetMap: requirements
2021-09-18 02:29:47 +02:00
If you want to import a dataset, make sure that:
2024-05-07 00:41:59 +02:00
1. The dataset to import has a suitable license
2. The community has been informed of the import
3. All other requirements of the [import guidelines](https://wiki.openstreetmap.org/wiki/Import/Guidelines) have been followed
2021-10-11 23:46:58 +02:00
There are also some technicalities in your theme to keep in mind:
2024-05-07 00:41:59 +02:00
1. The new feature will be added and will flow through the program as any other new point as if it came from OSM.
This means that there should be a layer which will match the new tags and which will display it.
2. The original feature from your geojson layer will gain the tag '_imported=yes'.
This should be used to change the appearance or even to hide it (eg by changing the icon size to zero)
3. There should be a way for the theme to detect previously imported points, even after reloading.
A reference number to the original dataset is an excellent way to do this
4. When importing ways, the theme creator is also responsible of avoiding overlapping ways.
2022-10-11 01:39:09 +02:00
2021-11-07 16:34:51 +01:00
#### Disabled in unofficial themes
2024-05-07 00:41:59 +02:00
The import button can be tested in an unofficial theme by adding `test=true` or `backend=osm-test` as [URL-paramter](URL_Parameters.md).
The import button will show up then. If in testmode, you can read the changeset-XML directly in the web console.
In the case that MapComplete is pointed to the testing grounds, the edit will be made on https://master.apis.dev.openstreetmap.org
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| targetLayer | _undefined_ | The id of the layer where this point should end up. This is not very strict, it will simply result in checking that this layer is shown preventing possible duplicate elements |
| tags | _undefined_ | The tags to add onto the new object - see specification above. If this is a key (a single word occuring in the properties of the object), the corresponding value is taken and expanded instead |
| text | Import this data into OpenStreetMap | The text to show on the button |
| icon | ./assets/svg/addSmall.svg | A nice icon to show in the button |
| snap_onto_layers | _undefined_ | If a way of the given layer(s) is closeby, will snap the new point onto this way (similar as preset might snap). To show multiple layers to snap onto, use a `;`-seperated list |
| max_snap_distance | 5 | The maximum distance that the imported point will be moved to snap onto a way in an already existing layer (in meters). This is previewed to the contributor, similar to the 'add new point'-action of MapComplete |
| note_id | _undefined_ | If given, this key will be read. The corresponding note on OSM will be closed, stating 'imported' |
| maproulette_id | _undefined_ | The property name of the maproulette_id - this is probably `mr_taskId`. If given, the maproulette challenge will be marked as fixed. Only use this if part of a maproulette-layer. |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of import_button
2021-12-11 02:52:51 +01:00
2024-05-07 00:41:59 +02:00
<code>`{import_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,5,,)}`</code>
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
### import_way_button
2024-04-28 03:46:56 +02:00
This button will copy the data from an external dataset into OpenStreetMap, copying the geometry and adding it as a 'line'
2024-05-07 00:41:59 +02:00
Note that the contributor must zoom to at least zoomlevel 18 to be able to use this functionality.
It is only functional in official themes, but can be tested in unoffical themes.
#### Specifying which tags to copy or add
2023-06-11 02:32:14 +02:00
The argument `tags` of the import button takes a `;`-seperated list of tags to add (or the name of a property which contains a JSON-list of properties).
2024-05-07 00:41:59 +02:00
These can either be a tag to add, such as `amenity=fast_food` or can use a substitution, e.g. `addr:housenumber=$number`.
This new point will then have the tags `amenity=fast_food` and `addr:housenumber` with the value that was saved in `number` in the original feature.
If a value to substitute is undefined, empty string will be used instead.
This supports multiple values, e.g. `ref=$source:geometry:type/$source:geometry:ref`
2022-02-14 04:59:49 +01:00
Remark that the syntax is slightly different then expected; it uses '$' to note a value to copy, followed by a name (matched with `[a-zA-Z0-9_:]*`). Sadly, delimiting with `{}` as these already mark the boundaries of the special rendering...
2022-02-14 04:59:49 +01:00
Note that these values can be prepare with javascript in the theme by using a [calculatedTag](calculatedTags.md#calculating-tags-with-javascript)
2024-05-07 00:41:59 +02:00
2021-12-11 02:52:51 +01:00
#### Importing a dataset into OpenStreetMap: requirements
2021-11-07 17:18:10 +01:00
2021-12-11 02:52:51 +01:00
If you want to import a dataset, make sure that:
2024-05-07 00:41:59 +02:00
1. The dataset to import has a suitable license
2. The community has been informed of the import
3. All other requirements of the [import guidelines](https://wiki.openstreetmap.org/wiki/Import/Guidelines) have been followed
2021-12-11 02:52:51 +01:00
There are also some technicalities in your theme to keep in mind:
2024-05-07 00:41:59 +02:00
1. The new feature will be added and will flow through the program as any other new point as if it came from OSM.
This means that there should be a layer which will match the new tags and which will display it.
2. The original feature from your geojson layer will gain the tag '_imported=yes'.
This should be used to change the appearance or even to hide it (eg by changing the icon size to zero)
3. There should be a way for the theme to detect previously imported points, even after reloading.
A reference number to the original dataset is an excellent way to do this
4. When importing ways, the theme creator is also responsible of avoiding overlapping ways.
2022-10-11 01:39:09 +02:00
2021-12-11 02:52:51 +01:00
#### Disabled in unofficial themes
2024-05-07 00:41:59 +02:00
The import button can be tested in an unofficial theme by adding `test=true` or `backend=osm-test` as [URL-paramter](URL_Parameters.md).
The import button will show up then. If in testmode, you can read the changeset-XML directly in the web console.
In the case that MapComplete is pointed to the testing grounds, the edit will be made on https://master.apis.dev.openstreetmap.org
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| targetLayer | _undefined_ | The id of the layer where this point should end up. This is not very strict, it will simply result in checking that this layer is shown preventing possible duplicate elements |
| tags | _undefined_ | The tags to add onto the new object - see specification above. If this is a key (a single word occuring in the properties of the object), the corresponding value is taken and expanded instead |
| text | Import this data into OpenStreetMap | The text to show on the button |
| icon | ./assets/svg/addSmall.svg | A nice icon to show in the button |
| snap_to_point_if | _undefined_ | Points with the given tags will be snapped to or moved |
| max_snap_distance | 0.05 | If the imported object is a LineString or (Multi)Polygon, already existing OSM-points will be reused to construct the geometry of the newly imported way |
| move_osm_point_if | _undefined_ | Moves the OSM-point to the newly imported point if these conditions are met |
| max_move_distance | 0.05 | If an OSM-point is moved, the maximum amount of meters it is moved. Capped on 20m |
| snap_onto_layers | _undefined_ | If no existing nearby point exists, but a line of a specified layer is closeby, snap to this layer instead |
| snap_to_layer_max_distance | 0.1 | Distance to distort the geometry to snap to this layer |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of import_way_button
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{import_way_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,0.05,,0.05,,0.1)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### conflate_button
2024-04-28 03:46:56 +02:00
This button will modify the geometry of an existing OSM way to match the specified geometry. This can conflate OSM-ways with LineStrings and Polygons (only simple polygons with one single ring). An attempt is made to move points with special values to a decent new location (e.g. entrances)
2024-05-07 00:41:59 +02:00
Note that the contributor must zoom to at least zoomlevel 18 to be able to use this functionality.
It is only functional in official themes, but can be tested in unoffical themes.
2021-12-11 02:52:51 +01:00
#### Specifying which tags to copy or add
2023-06-11 02:32:14 +02:00
The argument `tags` of the import button takes a `;`-seperated list of tags to add (or the name of a property which contains a JSON-list of properties).
2021-12-11 02:52:51 +01:00
2024-05-07 00:41:59 +02:00
These can either be a tag to add, such as `amenity=fast_food` or can use a substitution, e.g. `addr:housenumber=$number`.
This new point will then have the tags `amenity=fast_food` and `addr:housenumber` with the value that was saved in `number` in the original feature.
2021-12-11 02:52:51 +01:00
If a value to substitute is undefined, empty string will be used instead.
This supports multiple values, e.g. `ref=$source:geometry:type/$source:geometry:ref`
2022-02-14 04:59:49 +01:00
Remark that the syntax is slightly different then expected; it uses '$' to note a value to copy, followed by a name (matched with `[a-zA-Z0-9_:]*`). Sadly, delimiting with `{}` as these already mark the boundaries of the special rendering...
2021-12-11 02:52:51 +01:00
2022-02-14 04:59:49 +01:00
Note that these values can be prepare with javascript in the theme by using a [calculatedTag](calculatedTags.md#calculating-tags-with-javascript)
2024-05-07 00:41:59 +02:00
2021-12-11 02:52:51 +01:00
#### Importing a dataset into OpenStreetMap: requirements
If you want to import a dataset, make sure that:
2024-05-07 00:41:59 +02:00
1. The dataset to import has a suitable license
2. The community has been informed of the import
3. All other requirements of the [import guidelines](https://wiki.openstreetmap.org/wiki/Import/Guidelines) have been followed
2021-12-11 02:52:51 +01:00
There are also some technicalities in your theme to keep in mind:
2024-05-07 00:41:59 +02:00
1. The new feature will be added and will flow through the program as any other new point as if it came from OSM.
This means that there should be a layer which will match the new tags and which will display it.
2. The original feature from your geojson layer will gain the tag '_imported=yes'.
This should be used to change the appearance or even to hide it (eg by changing the icon size to zero)
3. There should be a way for the theme to detect previously imported points, even after reloading.
A reference number to the original dataset is an excellent way to do this
4. When importing ways, the theme creator is also responsible of avoiding overlapping ways.
2022-10-11 01:39:09 +02:00
2021-12-11 02:52:51 +01:00
#### Disabled in unofficial themes
2024-05-07 00:41:59 +02:00
The import button can be tested in an unofficial theme by adding `test=true` or `backend=osm-test` as [URL-paramter](URL_Parameters.md).
The import button will show up then. If in testmode, you can read the changeset-XML directly in the web console.
In the case that MapComplete is pointed to the testing grounds, the edit will be made on https://master.apis.dev.openstreetmap.org
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| targetLayer | _undefined_ | The id of the layer where this point should end up. This is not very strict, it will simply result in checking that this layer is shown preventing possible duplicate elements |
| tags | _undefined_ | The tags to add onto the new object - see specification above. If this is a key (a single word occuring in the properties of the object), the corresponding value is taken and expanded instead |
| text | Import this data into OpenStreetMap | The text to show on the button |
| icon | ./assets/svg/addSmall.svg | A nice icon to show in the button |
| way_to_conflate | _undefined_ | The key, of which the corresponding value is the id of the OSM-way that must be conflated; typically a calculatedTag |
2024-05-07 00:41:59 +02:00
#### Example usage of conflate_button
2021-11-30 22:45:25 +01:00
2024-05-07 00:41:59 +02:00
<code>`{conflate_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,)}`</code>
2024-05-07 00:41:59 +02:00
### nearby_images
2021-12-30 22:02:11 +01:00
2024-04-28 03:46:56 +02:00
A component showing nearby images loaded from various online services such as Mapillary. In edit mode and when used on a feature, the user can select an image to add to the feature
2021-12-30 22:02:11 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| mode | closed | Either `open` or `closed`. If `open`, then the image carousel will always be shown |
| readonly | _undefined_ | If 'readonly', will not show the 'link'-button |
2021-12-30 22:02:11 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of nearby_images
2022-06-09 03:00:13 +02:00
2024-05-07 00:41:59 +02:00
<code>`{nearby_images(closed,)}`</code>
2022-06-09 03:00:13 +02:00
2024-04-28 03:46:56 +02:00
### wikipedia
2022-06-09 03:00:13 +02:00
2024-04-28 03:46:56 +02:00
A box showing the corresponding wikipedia article(s) - based on the **wikidata** tag.
2022-06-09 03:00:13 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| keyToShowWikipediaFor | wikidata;wikipedia | Use the wikidata entry from this key to show the wikipedia article for. Multiple keys can be given (separated by ';'), in which case the first matching value is used |
2022-02-14 04:59:49 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of wikipedia
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
<code>`{wikipedia()}` is a basic example, `{wikipedia(name:etymology:wikidata)}` to show the wikipedia page of whom the feature was named after. Also remember that these can be styled, e.g. `{wikipedia():max-height: 10rem}` to limit the height</code>
2022-02-14 04:59:49 +01:00
2024-05-07 00:41:59 +02:00
### wikidata_label
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
Shows the label of the corresponding wikidata-item
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| keyToShowWikidataFor | wikidata | Use the wikidata entry from this key to show the label |
2022-01-12 02:31:51 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of wikidata_label
2024-05-07 00:41:59 +02:00
<code>`{wikidata_label()}` is a basic example, `{wikipedia(name:etymology:wikidata)}` to show the label itself</code>
2024-05-07 00:41:59 +02:00
### mapillary_link
2022-01-12 02:31:51 +01:00
2024-04-28 03:46:56 +02:00
Adds a button to open mapillary on the specified location
2022-01-12 02:31:51 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| zoom | 18 | The startzoom of mapillary |
2024-05-07 00:41:59 +02:00
#### Example usage of mapillary_link
2023-09-28 23:50:27 +02:00
2024-05-07 00:41:59 +02:00
<code>`{mapillary_link(18)}`</code>
2023-09-28 23:50:27 +02:00
2024-05-07 00:41:59 +02:00
### language_chooser
2023-09-28 23:50:27 +02:00
2024-04-28 03:46:56 +02:00
The language element allows to show and pick all known (modern) languages. The key can be set
2023-09-28 23:50:27 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _undefined_ | What key to use, e.g. `language`, `tactile_writing:braille:language`, ... If a language is supported, the language code will be appended to this key, resulting in `language:nl=yes` if nl is picked |
| question | _undefined_ | What to ask if no questions are known |
| render_list_item | {language()} | How a single language will be shown in the list of languages. Use `{language}` to indicate the language (which it must contain). |
| render_single_language | _undefined_ | What will be shown if the feature only supports a single language |
| render_all | {list()} | The full rendering. Use `{list}` to show where the list of languages must come. Optional if mode=single |
| no_known_languages | _undefined_ | The text that is shown if no languages are known for this key. If this text is omitted, the languages will be prompted instead |
2023-09-28 23:50:27 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of language_chooser
2022-02-28 17:16:21 +01:00
2024-05-07 00:41:59 +02:00
<code>`{language_chooser(,,{language()},,{list()},)}`</code>
2022-02-28 17:16:21 +01:00
2024-05-07 00:41:59 +02:00
### all_tags
2022-02-28 17:16:21 +01:00
2024-05-07 00:41:59 +02:00
Prints all key-value pairs of the object - used for debugging
2024-03-13 00:00:29 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of all_tags
2022-06-04 16:56:15 +02:00
2024-05-07 00:41:59 +02:00
<code>`{all_tags()}`</code>
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
### image_carousel
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
Creates an image carousel for the given sources. An attempt will be made to guess what source is used. Supported: Wikidata identifiers, Wikipedia pages, Wikimedia categories, IMGUR (with attribution, direct links)
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| image_key | image,mapillary,image,wikidata,wikimedia_commons,image,image | The keys given to the images, e.g. if <span class='literal-code'>image</span> is given, the first picture URL will be added as <span class='literal-code'>image</span>, the second as <span class='literal-code'>image:0</span>, the third as <span class='literal-code'>image:1</span>, etc... Multiple values are allowed if ';'-separated |
2023-12-19 22:08:00 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of image_carousel
2023-12-19 22:08:00 +01:00
2024-05-07 00:41:59 +02:00
<code>`{image_carousel(image,mapillary,image,wikidata,wikimedia_commons,image,image)}`</code>
2023-12-19 22:08:00 +01:00
2024-05-07 00:41:59 +02:00
### image_upload
2022-06-04 16:56:15 +02:00
2024-04-28 03:46:56 +02:00
Creates a button where a user can upload an image to IMGUR
2022-06-04 16:56:15 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| image-key | _undefined_ | Image tag to add the URL to (or image-tag:0, image-tag:1 when multiple images are added) |
| label | _undefined_ | The text to show on the button |
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of image_upload
2022-06-04 16:56:15 +02:00
2024-05-07 00:41:59 +02:00
<code>`{image_upload(,)}`</code>
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
### rating
2022-11-02 13:47:34 +01:00
2024-06-16 16:06:26 +02:00
Shows stars which represent the average rating on mangrove.
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
2024-06-16 16:06:26 +02:00
| subjectKey | name | The key to use to determine the subject. If the value is specified, the subject will be <b>tags[subjectKey]</b> and will use this to filter the reviews. |
2024-05-07 00:41:59 +02:00
| fallback | _undefined_ | The identifier to use, if <i>tags[subjectKey]</i> as specified above is not available. This is effectively a fallback value |
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of rating
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
<code>`{rating(name,)}`</code>
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
### create_review
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
Invites the contributor to leave a review. Somewhat small UI-element until interacted
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| subjectKey | name | The key to use to determine the subject. If specified, the subject will be <b>tags[subjectKey]</b> |
| fallback | _undefined_ | The identifier to use, if <i>tags[subjectKey]</i> as specified above is not available. This is effectively a fallback value |
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of create_review
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
<code>`{create_review(name,)}`</code>
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
### list_reviews
2022-11-02 13:47:34 +01:00
2024-04-28 03:46:56 +02:00
Adds an overview of the mangrove-reviews of this object. Mangrove.Reviews needs - in order to identify the reviewed object - a coordinate and a name. By default, the name of the object is given, but this can be overwritten
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| subjectKey | name | The key to use to determine the subject. If specified, the subject will be <b>tags[subjectKey]</b> |
| fallback | _undefined_ | The identifier to use, if <i>tags[subjectKey]</i> as specified above is not available. This is effectively a fallback value |
2022-11-02 13:47:34 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of list_reviews
2022-06-04 16:56:15 +02:00
2024-08-14 13:53:56 +02:00
<code>`{list_reviews(name,)}`</code>
### reviews
A pragmatic combination of `create_review` and `list_reviews`
| name | default | description |
-----|-----|----- |
| subjectKey | name | The key to use to determine the subject. If specified, the subject will be <b>tags[subjectKey]</b> |
| fallback | _undefined_ | The identifier to use, if <i>tags[subjectKey]</i> as specified above is not available. This is effectively a fallback value |
#### Example usage of reviews
2024-05-07 00:41:59 +02:00
<code>`{reviews()}` for a vanilla review, `{reviews(name, play_forest)}` to review a play forest. If a name is known, the name will be used as identifier, otherwise 'play_forest' is used</code>
2022-06-04 16:56:15 +02:00
2024-05-07 00:41:59 +02:00
### import_mangrove_key
2023-02-12 23:08:57 +01:00
2024-04-28 03:46:56 +02:00
Only makes sense in the usersettings. Allows to import a mangrove public key and to use this to make reviews
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| text | _undefined_ | The text that is shown on the button |
2024-05-07 00:41:59 +02:00
#### Example usage of import_mangrove_key
2023-06-11 02:32:14 +02:00
2024-05-07 00:41:59 +02:00
<code>`{import_mangrove_key()}`</code>
2024-05-07 00:41:59 +02:00
### opening_hours_table
2024-05-07 00:41:59 +02:00
Creates an opening-hours table. Usage: {opening_hours_table(opening_hours)} to create a table of the tag 'opening_hours'.
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | opening_hours | The tagkey from which the table is constructed. |
| prefix | _empty string_ | Remove this string from the start of the value before parsing. __Note: use `&LPARENs` to indicate `(` if needed__ |
| postfix | _empty string_ | Remove this string from the end of the value before parsing. __Note: use `&RPARENs` to indicate `)` if needed__ |
2022-07-26 16:58:51 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of opening_hours_table
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
<code>A normal opening hours table can be invoked with `{opening_hours_table()}`. A table for e.g. conditional access with opening hours can be `{opening_hours_table(access:conditional, no @ &LPARENS, &RPARENS)}`</code>
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
### opening_hours_state
2022-07-31 13:33:45 +02:00
2024-04-28 03:46:56 +02:00
A small element, showing if the POI is currently open and when the next change is
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | opening_hours | The tagkey from which the opening hours are read. |
| prefix | _empty string_ | Remove this string from the start of the value before parsing. __Note: use `&LPARENs` to indicate `(` if needed__ |
| postfix | _empty string_ | Remove this string from the end of the value before parsing. __Note: use `&RPARENs` to indicate `)` if needed__ |
2023-04-15 03:02:01 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of opening_hours_state
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
<code>`{opening_hours_state(opening_hours,,)}`</code>
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
### canonical
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
Converts a short, canonical value into the long, translated text including the unit. This only works if a `unit` is defined for the corresponding value. The unit specification will be included in the text.
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _undefined_ | The key of the tag to give the canonical text for |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of canonical
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>If the object has `length=42`, then `{canonical(length)}` will be shown as **42 meter** (in english), **42 metre** (in french), ...</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### export_as_geojson
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Exports the selected feature as GeoJson-file
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of export_as_geojson
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{export_as_geojson()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### open_in_iD
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Opens the current view in the iD-editor
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of open_in_iD
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{open_in_iD()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### open_in_josm
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Opens the current view in the JOSM-editor
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of open_in_josm
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{open_in_josm()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### clear_location_history
2024-04-28 03:46:56 +02:00
A button to remove the travelled track information from the device
2024-05-07 00:41:59 +02:00
#### Example usage of clear_location_history
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{clear_location_history()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### visualize_note_comments
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Visualises the comments for notes
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| commentsKey | comments | The property name of the comments, which should be stringified json |
| start | 0 | Drop the first 'start' comments |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of visualize_note_comments
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{visualize_note_comments(comments,0)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### add_image_to_note
2024-04-28 03:46:56 +02:00
Adds an image to a node
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| Id-key | id | The property name where the ID of the note to close can be found |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of add_image_to_note
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{add_image_to_note(id)}`</code>
2024-04-28 03:46:56 +02:00
### title
Shows the title of the popup. Useful for some cases, e.g. 'What is phone number of {title()}?'
#### Example usage of title
2024-05-07 00:41:59 +02:00
<code>`What is the phone number of {title()}`, which might automatically become `What is the phone number of XYZ`.</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### maproulette_task
2024-04-28 03:46:56 +02:00
Fetches the metadata of MapRoulette campaign that this task is part of and shows those details (namely `title`, `description` and `instruction`).
This reads the property `mr_challengeId` to detect the parent campaign.
2024-05-07 00:41:59 +02:00
#### Example usage of maproulette_task
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{maproulette_task()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### maproulette_set_status
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Change the status of the given MapRoulette task
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| message | _undefined_ | A message to show to the user |
| image | confirm | Image to show |
| message_confirm | _undefined_ | What to show when the task is closed, either by the user or was already closed. |
| status | 1 | A statuscode to apply when the button is clicked. 1 = `close`, 2 = `false_positive`, 3 = `skip`, 4 = `deleted`, 5 = `already fixed` (on the map, e.g. for duplicates), 6 = `too hard` |
| maproulette_id | mr_taskId | The property name containing the maproulette id |
| ask_feedback | _empty string_ | If not an empty string, this will be used as question to ask some additional feedback. A text field will be added |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of maproulette_set_status
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code> The following example sets the status to '2' (false positive)
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
```json
{
"id": "mark_duplicate",
"render": {
"special": {
"type": "maproulette_set_status",
"message": {
"en": "Mark as not found or false positive"
},
"status": "2",
"image": "close"
}
}
}
```</code>
2024-04-28 03:46:56 +02:00
### statistics
2024-05-07 00:41:59 +02:00
Show general statistics about the elements currently in view. Intended to use on the `current_view`-layer
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of statistics
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
<code>`{statistics()}`</code>
2022-07-31 13:33:45 +02:00
2024-05-07 00:41:59 +02:00
### send_email
2023-08-24 12:22:45 +02:00
2024-05-07 00:41:59 +02:00
Creates a `mailto`-link where some fields are already set and correctly escaped. The user will be promted to send the email
2023-08-24 12:22:45 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| to | _undefined_ | Who to send the email to? |
| subject | _undefined_ | The subject of the email |
| body | _undefined_ | The text in the email |
| button_text | _undefined_ | The text shown on the button in the UI |
2023-08-24 12:22:45 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of send_email
2023-08-24 12:22:45 +02:00
2024-05-07 00:41:59 +02:00
<code>`{send_email(,,,)}`</code>
2023-08-24 12:22:45 +02:00
2024-04-28 03:46:56 +02:00
### link
2023-08-24 12:22:45 +02:00
2024-04-28 03:46:56 +02:00
Construct a link. By using the 'special' visualisation notation, translations should be easier
2023-08-24 12:22:45 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| text | _undefined_ | Text to be shown |
| href | _undefined_ | The URL to link to. Note that this will be URI-encoded before |
| class | _undefined_ | CSS-classes to add to the element |
| download | _undefined_ | Expects a string which denotes the filename to download the contents of `href` into. If set, this link will act as a download-button. |
| arialabel | _undefined_ | If set, this text will be used as aria-label |
2024-08-14 13:53:56 +02:00
| icon | _undefined_ | If set, show this icon next to the link. You might want to combine this with `class: button` |
2023-10-30 16:32:43 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of link
2024-08-14 13:53:56 +02:00
<code>`{link(,,,,,)}`</code>
2024-04-28 03:46:56 +02:00
### multi
Given an embedded tagRendering (read only) and a key, will read the keyname as a JSON-list. Every element of this list will be considered as tags and rendered with the tagRendering
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _undefined_ | The property to read and to interpret as a list of properties |
| tagrendering | _undefined_ | An entire tagRenderingConfig |
| classes | _undefined_ | CSS-classes to apply on every individual item. Seperated by `space` |
2024-04-28 03:46:56 +02:00
#### Example usage of multi
2024-05-07 00:41:59 +02:00
<code>```json
{
"render": {
"special": {
"type": "multi",
"key": "_doors_from_building_properties",
"tagrendering": {
"en": "The building containing this feature has a <a href='#{id}'>door</a> of width {entrance:width}"
}
2024-04-28 03:46:56 +02:00
}
2024-05-07 00:41:59 +02:00
}
}
```</code>
2023-10-30 16:32:43 +01:00
2024-04-28 03:46:56 +02:00
### translated
2023-10-30 16:32:43 +01:00
2024-04-28 03:46:56 +02:00
If the given key can be interpreted as a JSON, only show the key containing the current language (or 'en'). This specialRendering is meant to be used by MapComplete studio and is not useful in map themes
2023-10-30 16:32:43 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | value | The attribute to interpret as json |
2023-10-30 16:32:43 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of translated
2024-05-07 00:41:59 +02:00
<code>`{translated(value)}`</code>
2024-05-07 00:41:59 +02:00
### fediverse_link
2024-04-28 03:46:56 +02:00
Converts a fediverse username or link into a clickable link
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _undefined_ | The attribute-name containing the link |
2024-05-07 00:41:59 +02:00
#### Example usage of fediverse_link
2024-05-07 00:41:59 +02:00
<code>`{fediverse_link()}`</code>
2023-12-19 22:08:00 +01:00
2024-04-28 03:46:56 +02:00
### braced
2023-12-19 22:08:00 +01:00
2024-04-28 03:46:56 +02:00
Show a literal text within braces
2023-12-19 22:08:00 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| text | _undefined_ | The value to show |
2023-12-19 22:08:00 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of braced
2023-12-19 22:08:00 +01:00
2024-05-07 00:41:59 +02:00
<code>`{braced()}`</code>
2023-12-19 22:08:00 +01:00
2024-04-28 03:46:56 +02:00
### tags
2023-12-19 22:08:00 +01:00
2024-04-28 03:46:56 +02:00
Shows a (json of) tags in a human-readable way + links to the wiki
2023-12-30 15:24:30 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | value | The key to look for the tags |
2023-12-30 15:24:30 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of tags
2023-12-30 15:24:30 +01:00
2024-05-07 00:41:59 +02:00
<code>`{tags(value)}`</code>
2023-12-30 15:24:30 +01:00
2024-04-28 03:46:56 +02:00
### giggity
2023-12-30 15:24:30 +01:00
2024-04-28 03:46:56 +02:00
Shows events that are happening based on a Giggity URL
2023-12-30 15:24:30 +01:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| giggityUrl | _undefined_ | The URL of the giggity-XML |
2024-02-12 12:52:28 +01:00
2024-04-28 03:46:56 +02:00
#### Example usage of giggity
2024-02-12 12:52:28 +01:00
2024-05-07 00:41:59 +02:00
<code>`{giggity()}`</code>
2024-02-12 12:52:28 +01:00
2024-05-07 00:41:59 +02:00
### gps_all_tags
2024-02-12 12:52:28 +01:00
2024-04-28 03:46:56 +02:00
Shows the current tags of the GPS-representing object, used for debugging
2024-02-12 12:52:28 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of gps_all_tags
2024-02-12 12:52:28 +01:00
2024-05-07 00:41:59 +02:00
<code>`{gps_all_tags()}`</code>
2024-02-12 12:52:28 +01:00
2024-05-07 00:41:59 +02:00
### favourite_status
2024-02-20 13:33:38 +01:00
2024-05-07 00:41:59 +02:00
A button that allows a (logged in) contributor to mark a location as a favourite location
2024-02-20 13:33:38 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of favourite_status
2024-02-20 13:33:38 +01:00
2024-05-07 00:41:59 +02:00
<code>`{favourite_status()}`</code>
2024-02-20 13:33:38 +01:00
2024-05-07 00:41:59 +02:00
### favourite_icon
2024-04-13 02:40:21 +02:00
2024-05-07 00:41:59 +02:00
A small button that allows a (logged in) contributor to mark a location as a favourite location, sized to fit a title-icon
2024-04-13 02:40:21 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of favourite_icon
2024-04-13 02:40:21 +02:00
2024-05-07 00:41:59 +02:00
<code>`{favourite_icon()}`</code>
2024-04-13 02:40:21 +02:00
2024-05-07 00:41:59 +02:00
### direction_indicator
2024-04-13 02:40:21 +02:00
2024-05-07 00:41:59 +02:00
Gives a distance indicator and a compass pointing towards the location from your GPS-location. If clicked, centers the map on the object
2022-01-26 21:40:38 +01:00
2024-05-07 00:41:59 +02:00
#### Example usage of direction_indicator
2021-12-12 02:59:59 +01:00
2024-05-07 00:41:59 +02:00
<code>`{direction_indicator()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### qr_code
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Generates a QR-code to share the selected object
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of qr_code
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{qr_code()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### direction_absolute
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Converts compass degrees (with 0° being north, 90° being east, ...) into a human readable, translated direction such as 'north', 'northeast'
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | _direction:centerpoint | The attribute containing the degrees |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of direction_absolute
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{direction_absolute(_direction:centerpoint)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### compare_data
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Gives an interactive element which shows a tag comparison between the OSM-object and the upstream object. This allows to copy some or all tags into OSM
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| url | _undefined_ | The attribute containing the url where to fetch more data |
| host | _undefined_ | The domain name(s) where data might be fetched from - this is needed to set the CSP. A domain must include 'https', e.g. 'https://example.com'. For multiple domains, separate them with ';'. If you don't know the possible domains, use '*'. |
| readonly | _undefined_ | If 'yes', will not show 'apply'-buttons |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of compare_data
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{compare_data(,,)}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### login_button
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Show a login button
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of login_button
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{login_button()}`</code>
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
### linked_data_from_website
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
Attempts to load (via a proxy) the specified website and parsed ld+json from there. Suitable data will be offered to import into OSM
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| key | website | Attempt to load ld+json from the specified URL. This can be in an embedded <script type='ld+json'> |
| useProxy | yes | If 'yes', uses the provided proxy server. This proxy server will scrape HTML and search for a script with `lang='ld+json'`. If `no`, the data will be downloaded and expects a linked-data-json directly |
| host | _undefined_ | If not using a proxy, define what host the website is allowed to connect to |
| mode | _undefined_ | If `display`, only show the data in tabular and readonly form, ignoring already existing tags. This is used to explicitly show all the tags. If unset or anything else, allow to apply/import on OSM |
2024-06-19 00:08:40 +02:00
| collapsed | yes | If the containing accordion should be closed |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of linked_data_from_website
2024-04-28 03:46:56 +02:00
2024-06-19 00:08:40 +02:00
<code>`{linked_data_from_website(website,yes,,,yes)}`</code>
### if_nothing_known
Shows a 'nothing is currently known-message if there is at least one unanswered question and no known (answerable) question
| name | default | description |
-----|-----|----- |
| text | _undefined_ | Text to show |
| cssClasses | _undefined_ | Classes to apply onto the text |
#### Example usage of if_nothing_known
<code>`{if_nothing_known(,)}`</code>
2024-04-28 03:46:56 +02:00
2024-08-09 16:55:08 +02:00
### preset_description
Shows the extra description from the presets of the layer, if one matches. It will pick the most specific one (e.g. if preset `A` implies `B`, but `B` does not imply `A`, it'll pick B) or the first one if no ordering can be made. Might be empty
#### Example usage of preset_description
<code>`{preset_description()}`</code>
2024-08-14 13:53:56 +02:00
### pending_changes
A module showing the pending changes, with the option to clear the pending changes
#### Example usage of pending_changes
<code>`{pending_changes()}`</code>
### clear_caches
A button which clears the locally downloaded data and the service worker. Login status etc will be kept
| name | default | description |
-----|-----|----- |
| text | _undefined_ | The text to show on the button |
#### Example usage of clear_caches
<code>`{clear_caches()}`</code>
### group
A collapsable group (accordion)
| name | default | description |
-----|-----|----- |
| header | _undefined_ | The _identifier_ of a single tagRendering. This will be used as header |
| labels | _undefined_ | A `;`-separated list of either identifiers or label names. All tagRenderings matching this value will be shown in the accordion |
#### Example usage of group
<code>`{group(,)}`</code>
### preset_type_select
An editable tag rendering which allows to change the type
#### Example usage of preset_type_select
<code>`{preset_type_select()}`</code>
2024-05-07 00:41:59 +02:00
### auto_apply
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
A button to run many actions for many features at once. To effectively use this button, you'll need some ingredients:
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
- A target layer with features for which an action is defined in a tag rendering. The following special visualisations support an autoAction: tag_apply, import_way_button, conflate_button
- A host feature to place the auto-action on. This can be a big outline (such as a city). Another good option for this is the layer
- [current_view](./BuiltinLayers.md#current_view)
- Then, use a calculated tag on the host feature to determine the overlapping object ids
- At last, add this component
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
| name | default | description |
-----|-----|----- |
| target_layer | _undefined_ | The layer that the target features will reside in |
| target_feature_ids | _undefined_ | The key, of which the value contains a list of ids |
| tag_rendering_id | _undefined_ | The ID of the tagRendering containing the autoAction. This tagrendering will be calculated. The embedded actions will be executed |
| text | _undefined_ | The text to show on the button |
| icon | ./assets/svg/robot.svg | The icon to show on the button |
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
#### Example usage of auto_apply
2024-04-28 03:46:56 +02:00
2024-05-07 00:41:59 +02:00
<code>`{auto_apply(,,,,./assets/svg/robot.svg)}`</code>
2024-07-12 03:16:41 +02:00
This document is autogenerated from [src/UI/SpecialVisualizations.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/UI/SpecialVisualizations.ts)