Housekeeping...
This commit is contained in:
parent
a6102aa3e0
commit
fa028df4d7
235 changed files with 945 additions and 830 deletions
|
@ -1,4 +1,4 @@
|
|||
|
||||
[//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources)
|
||||
|
||||
Special tag renderings
|
||||
========================
|
||||
|
@ -17,26 +17,32 @@ General usage is `{func_name()}`, `{func_name(arg, someotherarg)}` or `{func_nam
|
|||
|
||||
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
|
||||
|
||||
`{
|
||||
|
||||
```
|
||||
{
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "some_special_visualisation",
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}`
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
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)
|
||||
|
||||
## Table of contents
|
||||
|
||||
|
@ -331,7 +337,7 @@ snap_onto_layers | _undefined_ | If a way of the given layer(s) is closeby, will
|
|||
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'
|
||||
location_picker | photo | Chooses the background for the precise location picker, options are 'map', 'photo' or 'osmbasedmap' or 'none' if the precise input picker should be disabled
|
||||
maproulette_id | _undefined_ | If given, the maproulette challenge will be marked as fixed
|
||||
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.
|
||||
|
||||
|
||||
#### Example usage of import_button
|
||||
|
@ -795,7 +801,9 @@ Id-key | id | The property name where the ID of the note to close can be found
|
|||
|
||||
### maproulette_task
|
||||
|
||||
Show details of a MapRoulette task
|
||||
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.
|
||||
|
||||
#### Example usage of maproulette_task
|
||||
|
||||
|
@ -883,4 +891,4 @@ icon | ./assets/svg/robot.svg | The icon to show on the button
|
|||
|
||||
`{auto_apply(,,,,./assets/svg/robot.svg)}`
|
||||
|
||||
This document is autogenerated from [UI/SpecialVisualizations.ts](https://github.com/pietervdvn/MapComplete/blob/develop/UI/SpecialVisualizations.ts)
|
||||
This document is autogenerated from [UI/SpecialVisualizations.ts](https://github.com/pietervdvn/MapComplete/blob/develop/UI/SpecialVisualizations.ts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue