diff --git a/Docs/BuiltinIndex.md b/Docs/BuiltinIndex.md index aa89a7216..27048c3cd 100644 --- a/Docs/BuiltinIndex.md +++ b/Docs/BuiltinIndex.md @@ -758,4 +758,4 @@ -This document is autogenerated from [assets/layers/*.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/*.json) +This document is autogenerated from [assets/layers/*.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/layers/*.json) diff --git a/Docs/BuiltinQuestions.md b/Docs/BuiltinQuestions.md index 85754cf58..e8ec1fd65 100644 --- a/Docs/BuiltinQuestions.md +++ b/Docs/BuiltinQuestions.md @@ -611,4 +611,4 @@ The question is `What is the name of this place?` -This document is autogenerated from [assets/layers/questions/questions.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/questions/questions.json) +This document is autogenerated from [assets/layers/questions/questions.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/layers/questions/questions.json) diff --git a/Docs/CalculatedTags.md b/Docs/CalculatedTags.md index bd611bfae..41c657b3f 100644 --- a/Docs/CalculatedTags.md +++ b/Docs/CalculatedTags.md @@ -5,36 +5,6 @@ Metatags are extra tags available, in order to display more data or to give bett They are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags. **Hint:** when using metatags, add the [query parameter](URL_Parameters.md) `debug=true` to the URL. This will include a box in the popup for features which shows all the properties of the object -## Table of contents - -1. [Metatags calculated by MapComplete](#metatags-calculated-by-mapcomplete) - - [_lat, _lon](#_lat,-_lon) - - [_layer](#_layer) - - [_surface](#_surface) - - [_surface:ha](#_surfaceha) - - [_length, _length:km](#_length,-_lengthkm) - - [Theme-defined keys](#theme-defined-keys) - - [_country](#_country) - - [_isOpen](#_isopen) - - [_direction:numerical, _direction:leftright](#_directionnumerical,-_direction:leftright) - - [_direction:centerpoint](#_directioncenterpoint) - - [_now:date, _now:datetime](#_nowdate,-_now:datetime) - - [_last_edit:contributor, _last_edit:contributor:uid, _last_edit:changeset, _last_edit:timestamp, _version_number, _backend](#_last_editcontributor,-_last_edit:contributor:uid,-_last_edit:changeset,-_last_edit:timestamp,-_version_number,-_backend) - - [sidewalk:left, sidewalk:right, generic_key:left:property, generic_key:right:property](#sidewalkleft,-sidewalk:right,-generic_key:left:property,-generic_key:right:property) - - [_geometry:type](#_geometrytype) - - [_level](#_level) - - [_referencing_ways](#_referencing_ways) - - [_last_edit:passed_time](#_last_editpassed_time) - - [_currency](#_currency) -2. [ Calculating tags with Javascript ](#-calculating-tags-with-javascript-) - - [distanceTo](#distanceto) - - [overlapWith](#overlapwith) - - [enclosingFeatures](#enclosingfeatures) - - [intersectionsWith](#intersectionswith) - - [closest](#closest) - - [closestn](#closestn) - - [get](#get) - ## Metatags calculated by MapComplete The following values are always calculated, by default, by MapComplete and are available automatically on all elements in every theme @@ -234,4 +204,4 @@ Gets the property of the feature, parses it (as JSON) and returns it. Might retu -This document is autogenerated from [src/Logic/SimpleMetaTagger.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/Logic/SimpleMetaTagger.ts), [src/Logic/ExtraFunctions.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/Logic/ExtraFunctions.ts) +This document is autogenerated from [src/Logic/SimpleMetaTagger.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/Logic/SimpleMetaTagger.ts), [src/Logic/ExtraFunctions.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/Logic/ExtraFunctions.ts) diff --git a/Docs/ChangesetMeta.md b/Docs/ChangesetMeta.md index 9fe710d05..9e5249259 100644 --- a/Docs/ChangesetMeta.md +++ b/Docs/ChangesetMeta.md @@ -39,4 +39,4 @@ This might give a reason per modified node or way | DeleteAction | -This document is autogenerated from [src/Logic/Osm/Changes.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/Logic/Osm/Changes.ts), [src/Logic/Osm/ChangesetHandler.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/Logic/Osm/ChangesetHandler.ts) +This document is autogenerated from [src/Logic/Osm/Changes.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/Logic/Osm/Changes.ts), [src/Logic/Osm/ChangesetHandler.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/Logic/Osm/ChangesetHandler.ts) diff --git a/Docs/ELI-overview.md b/Docs/ELI-overview.md index 045ecfb90..211245f23 100644 --- a/Docs/ELI-overview.md +++ b/Docs/ELI-overview.md @@ -892,4 +892,4 @@ This table gives a summary of ids, names and other metainformation. [See the onl -This document is autogenerated from [./public/assets/data/editor-layer-index.json](https://github.com/pietervdvn/MapComplete/blob/develop/./public/assets/data/editor-layer-index.json) +This document is autogenerated from [./public/assets/data/editor-layer-index.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/./public/assets/data/editor-layer-index.json) diff --git a/Docs/Hotkeys.md b/Docs/Hotkeys.md index edc5371eb..bcf599de9 100644 --- a/Docs/Hotkeys.md +++ b/Docs/Hotkeys.md @@ -19,4 +19,4 @@ MapComplete supports the following keys: -This document is autogenerated from [src/UI/Base/Hotkeys.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/UI/Base/Hotkeys.ts) +This document is autogenerated from [src/UI/Base/Hotkeys.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/UI/Base/Hotkeys.ts) diff --git a/Docs/Layers/banks_with_atm.md b/Docs/Layers/banks_with_atm.md index 9b2c6044b..ed385d199 100644 --- a/Docs/Layers/banks_with_atm.md +++ b/Docs/Layers/banks_with_atm.md @@ -86,4 +86,4 @@ This tagrendering has labels -This document is autogenerated from [assets/themes/atm/atm.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/atm/atm.json) +This document is autogenerated from [assets/themes/atm/atm.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/atm/atm.json) diff --git a/Docs/Layers/childcare.md b/Docs/Layers/childcare.md index 20e85e285..5871bfd8e 100644 --- a/Docs/Layers/childcare.md +++ b/Docs/Layers/childcare.md @@ -136,4 +136,4 @@ This tagrendering has labels -This document is autogenerated from [assets/layers/childcare/childcare.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/childcare/childcare.json) +This document is autogenerated from [assets/layers/childcare/childcare.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/layers/childcare/childcare.json) diff --git a/Docs/Layers/dog_toilet.md b/Docs/Layers/dog_toilet.md index 66cddbe71..cf0978dab 100644 --- a/Docs/Layers/dog_toilet.md +++ b/Docs/Layers/dog_toilet.md @@ -70,4 +70,4 @@ This tagrendering has labels `added_by_default` -This document is autogenerated from [assets/layers/dog_toilet/dog_toilet.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/dog_toilet/dog_toilet.json) +This document is autogenerated from [assets/layers/dog_toilet/dog_toilet.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/layers/dog_toilet/dog_toilet.json) diff --git a/Docs/Layers/maproulette.md b/Docs/Layers/maproulette.md index 969ac6fb1..a4c51efb4 100644 --- a/Docs/Layers/maproulette.md +++ b/Docs/Layers/maproulette.md @@ -11,22 +11,19 @@ This layer is loaded from an external source, namely `https://maproulette.org/api/v2/tasks/box/{x_min}/{y_min}/{x_max}/{y_max}` +No themes use this layer + ## Table of contents -1. [Themes using this layer](#themes-using-this-layer) -2. [Basic tags for this layer](#basic-tags-for-this-layer) -3. [Supported attributes](#supported-attributes) +1. [Basic tags for this layer](#basic-tags-for-this-layer) +2. [Supported attributes](#supported-attributes) - [status](#status) - [mark_fixed](#mark_fixed) - [mark_duplicate](#mark_duplicate) - [mark_too_hard](#mark_too_hard) - [leftover-questions](#leftover-questions) - [lod](#lod) -4. [Filters](#filters) - -## Themes using this layer - - - [maproulette](https://mapcomplete.org/maproulette) +3. [Filters](#filters) ## Basic tags for this layer diff --git a/Docs/Layers/maproulette_challenge.md b/Docs/Layers/maproulette_challenge.md index 81b56f9db..3ee168954 100644 --- a/Docs/Layers/maproulette_challenge.md +++ b/Docs/Layers/maproulette_challenge.md @@ -17,7 +17,6 @@ This layer is loaded from an external source, namely 1. [Themes using this layer](#themes-using-this-layer) 2. [Basic tags for this layer](#basic-tags-for-this-layer) 3. [Supported attributes](#supported-attributes) - - [details](#details) - [status](#status) - [leftover-questions](#leftover-questions) - [lod](#lod) @@ -44,11 +43,6 @@ Elements must match the expression **mr_taskId~.+** -----|-----|----- | | [mr_taskStatus](https://wiki.openstreetmap.org/wiki/Key:mr_taskStatus) | Multiple choice | [Created](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DCreated) [Fixed](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DFixed) [False positive](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DFalse positive) [Skipped](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DSkipped) [Deleted](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DDeleted) [Already fixed](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DAlready fixed) [Too hard](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DToo hard) [Disabled](https://wiki.openstreetmap.org/wiki/Tag:mr_taskStatus%3DDisabled) | -### details - -_This tagrendering has no question and is thus read-only_ -*{maproulette_task()}* - ### status _This tagrendering has no question and is thus read-only_ diff --git a/Docs/Layers/medical_shops.md b/Docs/Layers/medical_shops.md index 899ed496a..acd11d412 100644 --- a/Docs/Layers/medical_shops.md +++ b/Docs/Layers/medical_shops.md @@ -934,4 +934,4 @@ This tagrendering has labels -This document is autogenerated from [assets/themes/healthcare/healthcare.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/healthcare/healthcare.json) +This document is autogenerated from [assets/themes/healthcare/healthcare.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/healthcare/healthcare.json) diff --git a/Docs/Layers/shops_second_hand.md b/Docs/Layers/shops_second_hand.md index f25176c81..48da161bb 100644 --- a/Docs/Layers/shops_second_hand.md +++ b/Docs/Layers/shops_second_hand.md @@ -925,4 +925,4 @@ This tagrendering has labels -This document is autogenerated from [assets/themes/circular_economy/circular_economy.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/circular_economy/circular_economy.json) +This document is autogenerated from [assets/themes/circular_economy/circular_economy.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/circular_economy/circular_economy.json) diff --git a/Docs/Layers/waste_basket_dogs.md b/Docs/Layers/waste_basket_dogs.md index 362d62ed8..fbd7bb6b4 100644 --- a/Docs/Layers/waste_basket_dogs.md +++ b/Docs/Layers/waste_basket_dogs.md @@ -94,4 +94,4 @@ This tagrendering has labels `added_by_default` -This document is autogenerated from [assets/themes/pets/pets.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/pets/pets.json) +This document is autogenerated from [assets/themes/pets/pets.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/pets/pets.json) diff --git a/Docs/SpecialInputElements.md b/Docs/SpecialInputElements.md index 2236e5e42..2c97de934 100644 --- a/Docs/SpecialInputElements.md +++ b/Docs/SpecialInputElements.md @@ -207,4 +207,4 @@ Validates monetary amounts Validates a regex -This document is autogenerated from [src/UI/InputElement/Validators.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/UI/InputElement/Validators.ts) +This document is autogenerated from [src/UI/InputElement/Validators.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/UI/InputElement/Validators.ts) diff --git a/Docs/SpecialRenderings.md b/Docs/SpecialRenderings.md index fab9bbf4b..f9adc82a3 100644 --- a/Docs/SpecialRenderings.md +++ b/Docs/SpecialRenderings.md @@ -1,128 +1,37 @@ [//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources) - - - Special tag renderings -======================== +# Special tag renderings 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. 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 -#### Table of contents +# Table of contents - + [Using expanded syntax](#using-expanded-syntax) -1. [default](#default) - - [delete_button](#delete_button) - + [Example usage of delete_button](#example-usage-of-delete_button) - - [if_nothing_known](#if_nothing_known) - + [Example usage of if_nothing_known](#example-usage-of-if_nothing_known) - - [minimap](#minimap) - + [Example usage of minimap](#example-usage-of-minimap) - - [move_button](#move_button) - + [Example usage of move_button](#example-usage-of-move_button) - - [qr_code](#qr_code) - + [Example usage of qr_code](#example-usage-of-qr_code) - - [share_link](#share_link) - + [Example usage of share_link](#example-usage-of-share_link) - - [split_button](#split_button) - + [Example usage of split_button](#example-usage-of-split_button) -2. [favourites](#favourites) - - [favourite_icon](#favourite_icon) - + [Example usage of favourite_icon](#example-usage-of-favourite_icon) - - [favourite_status](#favourite_status) - + [Example usage of favourite_status](#example-usage-of-favourite_status) -3. [images](#images) - - [image_carousel](#image_carousel) - + [Example usage of image_carousel](#example-usage-of-image_carousel) - - [image_upload](#image_upload) - + [Example usage of image_upload](#example-usage-of-image_upload) -4. [notes](#notes) - - [add_image_to_note](#add_image_to_note) - + [Example usage of add_image_to_note](#example-usage-of-add_image_to_note) - - [open_note](#open_note) - + [Example usage of open_note](#example-usage-of-open_note) -5. [reviews](#reviews) - - [create_review](#create_review) - + [Example usage of create_review](#example-usage-of-create_review) - - [list_reviews](#list_reviews) - + [Example usage of list_reviews](#example-usage-of-list_reviews) - - [rating](#rating) - + [Example usage of rating](#example-usage-of-rating) - - [reviews](#reviews) - + [Example usage of reviews](#example-usage-of-reviews) -6. [settings](#settings) - - [clear_caches](#clear_caches) - + [Example usage of clear_caches](#example-usage-of-clear_caches) - - [disabled_questions](#disabled_questions) - + [Example usage of disabled_questions](#example-usage-of-disabled_questions) - - [gps_all_tags](#gps_all_tags) - + [Example usage of gps_all_tags](#example-usage-of-gps_all_tags) - - [gyroscope_all_tags](#gyroscope_all_tags) - + [Example usage of gyroscope_all_tags](#example-usage-of-gyroscope_all_tags) - - [import_mangrove_key](#import_mangrove_key) - + [Example usage of import_mangrove_key](#example-usage-of-import_mangrove_key) - - [login_button](#login_button) - + [Example usage of login_button](#example-usage-of-login_button) - - [logout](#logout) - + [Example usage of logout](#example-usage-of-logout) -7. [Unclassified elements](#unclassified-elements) - - [add_new_point](#add_new_point) - + [Example usage of add_new_point](#example-usage-of-add_new_point) - - [add_note_comment](#add_note_comment) - + [Example usage of add_note_comment](#example-usage-of-add_note_comment) - - [all_tags](#all_tags) - + [Example usage of all_tags](#example-usage-of-all_tags) - - [auto_apply](#auto_apply) - + [Example usage of auto_apply](#example-usage-of-auto_apply) - - [braced](#braced) - + [Example usage of braced](#example-usage-of-braced) - - [canonical](#canonical) - + [Example usage of canonical](#example-usage-of-canonical) - - [clear_location_history](#clear_location_history) - + [Example usage of clear_location_history](#example-usage-of-clear_location_history) - - [close_note](#close_note) - + [Example usage of close_note](#example-usage-of-close_note) - - [compare_data](#compare_data) - + [Example usage of compare_data](#example-usage-of-compare_data) - - [conflate_button](#conflate_button) - + [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) - - [direction_absolute](#direction_absolute) - + [Example usage of direction_absolute](#example-usage-of-direction_absolute) - - [direction_indicator](#direction_indicator) - + [Example usage of direction_indicator](#example-usage-of-direction_indicator) - - [export_as_geojson](#export_as_geojson) - + [Example usage of export_as_geojson](#example-usage-of-export_as_geojson) - - [export_as_gpx](#export_as_gpx) - + [Example usage of export_as_gpx](#example-usage-of-export_as_gpx) - - [fediverse_link](#fediverse_link) - + [Example usage of fediverse_link](#example-usage-of-fediverse_link) - - [group](#group) - + [Example usage of group](#example-usage-of-group) - - [histogram](#histogram) - + [Example usage of histogram](#example-usage-of-histogram) - - [import_button](#import_button) - + [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) - - [import_way_button](#import_way_button) - + [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) - - [language_chooser](#language_chooser) - + [Example usage of language_chooser](#example-usage-of-language_chooser) - - [language_picker](#language_picker) - + [Example usage of language_picker](#example-usage-of-language_picker) - - [link](#link) - + [Example usage of link](#example-usage-of-link) - - [linked_data_from_website](#linked_data_from_website) +1. [Special tag renderings](#special-tag-renderings) +2. [Using expanded syntax](#using-expanded-syntax) +3. [Overview of all special components](#overview-of-all-special-components) + - [data_import](#data_import) + + [compare_data](#compare_data) + * [Example usage of compare_data](#example-usage-of-compare_data) + + [conflate_button](#conflate_button) + * [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) + + [import_button](#import_button) + * [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) + + [import_way_button](#import_way_button) + * [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) + + [linked_data_from_website](#linked_data_from_website) -#### Using expanded syntax +# Using expanded syntax 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 @@ -151,383 +60,11 @@ Instead of using `{"render": {"en": "{some_special_visualisation(some_arg, some 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) -## default +# Overview of all special components -These special visualisations are interactive components that most elements get by default. You'll normally won't need them in custom layers +## data_import -### delete_button - -Adds a button which allows to delete the object at this location. The config will be read from the layer config - -#### Example usage of delete_button - -`{delete_button()}` - -### 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 - -`{if_nothing_known(,)}` - -### minimap - -A small map showing the selected feature. - -| 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) | - -#### Example usage of minimap - -`{minimap()}`, `{minimap(17, id, _list_of_embedded_feature_ids_calculated_by_calculated_tag):height:10rem; border: 2px solid black}` - -### move_button - -Adds a button which allows to move the object to another location. The config will be read from the layer config - -#### Example usage of move_button - -`{move_button()}` - -### qr_code - -Generates a QR-code to share the selected object - -#### Example usage of qr_code - -`{qr_code()}` - -### share_link - -Creates a link that (attempts to) open the native 'share'-screen - -| 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 | - -#### Example usage of share_link - -{share_link()} to share the current page, {share_link()} to share the given url - -### split_button - -Adds a button which allows to split a way - -#### Example usage of split_button - -`{split_button()}` - -## favourites - -Elements relating to marking an object as favourite (giving it a heart). Default element - -### favourite_icon - -A small button that allows a (logged in) contributor to mark a location as a favourite location, sized to fit a title-icon - -#### Example usage of favourite_icon - -`{favourite_icon()}` - -### favourite_status - -A button that allows a (logged in) contributor to mark a location as a favourite location - -#### Example usage of favourite_status - -`{favourite_status()}` - -## images - -Elements related to adding or manipulating images. Normally also added by default, but in some cases a tweaked version is needed - -### image_carousel - -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) - -| name | default | description | ------|-----|----- | -| image_key | image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image | The keys given to the images, e.g. if image is given, the first picture URL will be added as image, the second as image:0, the third as image:1, etc... Multiple values are allowed if ';'-separated | - -#### Example usage of image_carousel - -`{image_carousel(image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image)}` - -### image_upload - -Creates a button where a user can upload an image to IMGUR - -| 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 | -| disable_blur | _undefined_ | If set to 'true' or 'yes', then face blurring will be disabled. To be used sparingly | - -#### Example usage of image_upload - -`{image_upload(,,)}` - -## notes - -Elements relating to OpenStreetMap-notes, e.g. the component to close and/or add a comment - -### add_image_to_note - -Adds an image to a node - -| name | default | description | ------|-----|----- | -| Id-key | id | The property name where the ID of the note to close can be found | - -#### Example usage of add_image_to_note - -`{add_image_to_note(id)}` - -### open_note - -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 - -#### Example usage of open_note - -`{open_note()}` - -## reviews - -Elements relating to seeing and adding ratings and reviews with Mangrove.reviews - -### create_review - -Invites the contributor to leave a review. Somewhat small UI-element until interacted - -| name | default | description | ------|-----|----- | -| subjectKey | name | The key to use to determine the subject. If specified, the subject will be tags[subjectKey] | -| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | -| question | _undefined_ | The question to ask during the review | - -#### Example usage of create_review - -`{create_review(name,,)}` - -### list_reviews - -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 - -| name | default | description | ------|-----|----- | -| subjectKey | name | The key to use to determine the subject. If specified, the subject will be tags[subjectKey] | -| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | - -#### Example usage of list_reviews - -`{list_reviews(name,)}` - -### rating - -Shows stars which represent the average rating on mangrove. - -| name | default | description | ------|-----|----- | -| subjectKey | name | The key to use to determine the subject. If the value is specified, the subject will be tags[subjectKey] and will use this to filter the reviews. | -| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | - -#### Example usage of rating - -`{rating(name,)}` - -### 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 tags[subjectKey] | -| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | -| question | _undefined_ | The question to ask in the review form. Optional | - -#### Example usage of reviews - -`{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 - -## settings - -Elements part of the usersettings-ui - -### 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 - -`{clear_caches()}` - -### disabled_questions - -Shows which questions are disabled for every layer. Used in 'settings' - -#### Example usage of disabled_questions - -`{disabled_questions()}` - -### gps_all_tags - -Shows the current tags of the GPS-representing object, used for debugging - -#### Example usage of gps_all_tags - -`{gps_all_tags()}` - -### gyroscope_all_tags - -Shows the current tags of the GPS-representing object, used for debugging - -#### Example usage of gyroscope_all_tags - -`{gyroscope_all_tags()}` - -### import_mangrove_key - -Only makes sense in the usersettings. Allows to import a mangrove public key and to use this to make reviews - -| name | default | description | ------|-----|----- | -| text | _undefined_ | The text that is shown on the button | - -#### Example usage of import_mangrove_key - -`{import_mangrove_key()}` - -### login_button - -Show a login button - -#### Example usage of login_button - -`{login_button()}` - -### logout - -Shows a button where the user can log out - -#### Example usage of logout - -`{logout()}` - -## Unclassified elements - -Various elements - -### add_new_point - -An element which allows to add a new point on the 'last_click'-location. Only makes sense in the layer `last_click` - -#### Example usage of add_new_point - -`{add_new_point()}` - -### add_note_comment - -A textfield to add a comment to a node (with the option to close the note). - -| name | default | description | ------|-----|----- | -| Id-key | id | The property name where the ID of the note to close can be found | - -#### Example usage of add_note_comment - -`{add_note_comment(id)}` - -### all_tags - -Prints all key-value pairs of the object - used for debugging - -#### Example usage of all_tags - -`{all_tags()}` - -### auto_apply - - A button to run many actions for many features at once. - To effectively use this button, you'll need some ingredients: - - 1. 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 - 2. 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) - 3. Then, use a calculated tag on the host feature to determine the overlapping object ids - 4. At last, add this component - -| 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 | - -#### Example usage of auto_apply - -`{auto_apply(,,,,./assets/svg/robot.svg)}` - -### braced - -Show a literal text within braces - -| name | default | description | ------|-----|----- | -| text | _undefined_ | The value to show | - -#### Example usage of braced - -`{braced()}` - -### canonical - -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. - -| name | default | description | ------|-----|----- | -| key | _undefined_ | The key of the tag to give the canonical text for | - -#### Example usage of canonical - -If the object has `length=42`, then `{canonical(length)}` will be shown as **42 meter** (in english), **42 metre** (in french), ... - -### clear_location_history - -A button to remove the travelled track information from the device - -#### Example usage of clear_location_history - -`{clear_location_history()}` - -### close_note - -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. - -| 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 | - -#### Example usage of close_note - -`{close_note(,checkmark.svg,id,,,)}` +Elements to help with importing data to OSM. For example: buttons to import a feature, apply tags on an element, apply multiple tags on an element or to work with maproulette ### compare_data @@ -541,7 +78,7 @@ Gives an interactive element which shows a tag comparison between the OSM-object #### Example usage of compare_data -`{compare_data(,,)}` +`{compare_data(,,)}` ### conflate_button @@ -599,83 +136,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be #### Example usage of conflate_button -`{conflate_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,)}` - -### direction_absolute - -Converts compass degrees (with 0° being north, 90° being east, ...) into a human readable, translated direction such as 'north', 'northeast' - -| name | default | description | ------|-----|----- | -| key | _direction:centerpoint | The attribute containing the degrees | - -#### Example usage of direction_absolute - -`{direction_absolute(_direction:centerpoint)}` - -### direction_indicator - -Gives a distance indicator and a compass pointing towards the location from your GPS-location. If clicked, centers the map on the object - -#### Example usage of direction_indicator - -`{direction_indicator()}` - -### export_as_geojson - -Exports the selected feature as GeoJson-file - -#### Example usage of export_as_geojson - -`{export_as_geojson()}` - -### export_as_gpx - -Exports the selected feature as GPX-file - -#### Example usage of export_as_gpx - -`{export_as_gpx()}` - -### fediverse_link - -Converts a fediverse username or link into a clickable link - -| name | default | description | ------|-----|----- | -| key | _undefined_ | The attribute-name containing the link | - -#### Example usage of fediverse_link - -`{fediverse_link()}` - -### 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 - -`{group(,)}` - -### histogram - -Create a histogram for a list of given values, read from the properties. - -| 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` | - -#### Example usage of histogram - -`{histogram('some_key')}` with properties being `{some_key: ["a","b","a","c"]} to create a histogram +`{conflate_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,)}` ### import_button @@ -737,7 +198,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be #### Example usage of import_button -`{import_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,5,,,)}` +`{import_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,5,,,)}` ### import_way_button @@ -800,53 +261,11 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be #### Example usage of import_way_button -`{import_way_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,0.05,,0.05,,0.1)}` - -### language_chooser - -The language element allows to show and pick all known (modern) languages. The key can be set - -| 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 | - -#### Example usage of language_chooser - -`{language_chooser(,,{language()},,{list()},)}` - -### language_picker - -A component to set the language of the user interface - -#### Example usage of language_picker - -`{language_picker()}` - -### link - -Construct a link. By using the 'special' visualisation notation, translations should be easier - -| 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 | -| icon | _undefined_ | If set, show this icon next to the link. You might want to combine this with `class: button` | - -#### Example usage of link - -`{link(,,,,,)}` +`{import_way_button(,,Import this data into OpenStreetMap,./assets/svg/addSmall.svg,,0.05,,0.05,,0.1)}` ### linked_data_from_website -Attempts to load (via a proxy) the specified website and parsed ld+json from there. Suitable data will be offered to import into OSM +Attempts to load (via a proxy) the specified website and parsed ld+json from there. Suitable data will be offered to import into OSM. Note: this element is added by default | name | default | description | -----|-----|----- | @@ -858,19 +277,7 @@ Attempts to load (via a proxy) the specified website and parsed ld+json from the #### Example usage of linked_data_from_website -`{linked_data_from_website(website,yes,,,yes)}` - -### mapillary_link - -Adds a button to open mapillary on the specified location - -| name | default | description | ------|-----|----- | -| zoom | 18 | The startzoom of mapillary | - -#### Example usage of mapillary_link - -`{mapillary_link(18)}` +`{linked_data_from_website(website,yes,,,yes)}` ### maproulette_set_status @@ -887,7 +294,7 @@ Change the status of the given MapRoulette task #### Example usage of maproulette_set_status - The following example sets the status to '2' (false positive) + The following example sets the status to '2' (false positive) ```json { @@ -903,124 +310,7 @@ Change the status of the given MapRoulette task } } } -``` - -### 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 - -`{maproulette_task()}` - -### 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 - -| 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` | - -#### Example usage of multi - -```json -{ - "render": { - "special": { - "type": "multi", - "key": "_doors_from_building_properties", - "tagrendering": { - "en": "The building containing this feature has a door of width {entrance:width}" - } - } - } -} -``` - -### multi_apply - -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 - -| 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 | - -#### Example usage of multi_apply - -{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)} - -### nearby_images - -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 - -| name | default | description | ------|-----|----- | -| mode | closed | Either `open` or `closed`. If `open`, then the image carousel will always be shown | -| readonly | _undefined_ | If 'readonly' or 'yes', will not show the 'link'-button | - -#### Example usage of nearby_images - -`{nearby_images(closed,)}` - -### open_in_iD - -Opens the current view in the iD-editor - -#### Example usage of open_in_iD - -`{open_in_iD()}` - -### open_in_josm - -Opens the current view in the JOSM-editor - -#### Example usage of open_in_josm - -`{open_in_josm()}` - -### opening_hours_state - -A small element, showing if the POI is currently open and when the next change is - -| 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__ | - -#### Example usage of opening_hours_state - -`{opening_hours_state(opening_hours,,)}` - -### opening_hours_table - -Creates an opening-hours table. Usage: {opening_hours_table(opening_hours)} to create a table of the tag 'opening_hours'. - -| 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__ | - -#### Example usage of opening_hours_table - -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)}` - -### pending_changes - -A module showing the pending changes, with the option to clear the pending changes - -#### Example usage of pending_changes - -`{pending_changes()}` +``` ### plantnet_detection @@ -1032,72 +322,7 @@ Sends the images linked to the current object to plantnet.org and asks it what p #### Example usage of plantnet_detection -`{plantnet_detection(image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image)}` - -### 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 - -`{preset_description()}` - -### preset_type_select - -An editable tag rendering which allows to change the type - -#### Example usage of preset_type_select - -`{preset_type_select()}` - -### questions - -The special element which shows the questions which are unkown. Added by default if not yet there - -| 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 | - -#### Example usage of questions - -`{questions(,)}` - -### send_email - -Creates a `mailto`-link where some fields are already set and correctly escaped. The user will be promted to send the email - -| 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 | - -#### Example usage of send_email - -`{send_email(,,,)}` - -### statistics - -Show general statistics about the elements currently in view. Intended to use on the `current_view`-layer - -#### Example usage of statistics - -`{statistics()}` - -### steal - -Shows a tagRendering from a different object as if this was the object itself - -| 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 | - -#### Example usage of steal - -`{steal(,)}` +`{plantnet_detection(image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image)}` ### tag_apply @@ -1126,47 +351,164 @@ Note that these values can be prepare with javascript in the theme by using a [c #### Example usage of tag_apply -`{tag_apply(survey_date=$_now:date, Surveyed today!)}`, `{tag_apply(addr:street=$addr:street, Apply the address, apply_icon.svg, _closest_osm_id) +`{tag_apply(survey_date=$_now:date, Surveyed today!)}`, `{tag_apply(addr:street=$addr:street, Apply the address, apply_icon.svg, _closest_osm_id) -### tags +## default -Shows a (json of) tags in a human-readable way + links to the wiki +These special visualisations are (mostly) interactive components that most elements get by default. You'll normally won't need them in custom layers. There are also a few miscellaneous elements supporting the map UI. + +### add_new_point + +An element which allows to add a new point on the 'last_click'-location. Only makes sense in the layer `last_click` + +#### Example usage of add_new_point + +`{add_new_point()}` + +### delete_button + +Adds a button which allows to delete the object at this location. The config will be read from the layer config + +#### Example usage of delete_button + +`{delete_button()}` + +### 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 | -----|-----|----- | -| key | value | The key to look for the tags | +| text | _undefined_ | Text to show | +| cssClasses | _undefined_ | Classes to apply onto the text | -#### Example usage of tags +#### Example usage of if_nothing_known -`{tags(value)}` +`{if_nothing_known(,)}` -### title +### minimap -Shows the title of the popup. Useful for some cases, e.g. 'What is phone number of {title()}?' - -#### Example usage of title - -`What is the phone number of {title()}`, which might automatically become `What is the phone number of XYZ`. - -### translated - -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 +A small map showing the selected feature. | name | default | description | -----|-----|----- | -| key | value | The attribute to interpret as json | +| 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) | -#### Example usage of translated +#### Example usage of minimap -`{translated(value)}` +`{minimap()}`, `{minimap(17, id, _list_of_embedded_feature_ids_calculated_by_calculated_tag):height:10rem; border: 2px solid black}` -### upload_to_osm +### move_button -Uploads the GPS-history as GPX to OpenStreetMap.org; clears the history afterwards. The actual feature is ignored. +Adds a button which allows to move the object to another location. The config will be read from the layer config -#### Example usage of upload_to_osm +#### Example usage of move_button -`{upload_to_osm()}` +`{move_button()}` + +### qr_code + +Generates a QR-code to share the selected object + +#### Example usage of qr_code + +`{qr_code()}` + +### share_link + +Creates a link that (attempts to) open the native 'share'-screen + +| 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 | + +#### Example usage of share_link + +{share_link()} to share the current page, {share_link()} to share the given url + +### split_button + +Adds a button which allows to split a way + +#### Example usage of split_button + +`{split_button()}` + +## favourites + +Elements relating to marking an object as favourite (giving it a heart). Default element + +### favourite_icon + +A small button that allows a (logged in) contributor to mark a location as a favourite location, sized to fit a title-icon + +#### Example usage of favourite_icon + +`{favourite_icon()}` + +### favourite_status + +A button that allows a (logged in) contributor to mark a location as a favourite location + +#### Example usage of favourite_status + +`{favourite_status()}` + +## images + +Elements related to adding or manipulating images. Normally also added by default, but in some cases a tweaked version is needed + +### image_carousel + +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) + +| name | default | description | +-----|-----|----- | +| image_key | image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image | The keys given to the images, e.g. if image is given, the first picture URL will be added as image, the second as image:0, the third as image:1, etc... Multiple values are allowed if ';'-separated | + +#### Example usage of image_carousel + +`{image_carousel(image,mapillary,image,wikidata,wikimedia_commons,image,panoramax,image)}` + +### image_upload + +Creates a button where a user can upload an image to IMGUR + +| 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 | +| disable_blur | _undefined_ | If set to 'true' or 'yes', then face blurring will be disabled. To be used sparingly | + +#### Example usage of image_upload + +`{image_upload(,,)}` + +## notes + +Elements relating to OpenStreetMap-notes, e.g. the component to close and/or add a comment + +### add_image_to_note + +Adds an image to a node + +| name | default | description | +-----|-----|----- | +| Id-key | id | The property name where the ID of the note to close can be found | + +#### Example usage of add_image_to_note + +`{add_image_to_note(id)}` + +### open_note + +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 + +#### Example usage of open_note + +`{open_note()}` ### visualize_note_comments @@ -1179,7 +521,281 @@ Visualises the comments for notes #### Example usage of visualize_note_comments -`{visualize_note_comments(comments,0)}` +`{visualize_note_comments(comments,0)}` + +## reviews + +Elements relating to seeing and adding ratings and reviews with Mangrove.reviews + +### create_review + +Invites the contributor to leave a review. Somewhat small UI-element until interacted + +| name | default | description | +-----|-----|----- | +| subjectKey | name | The key to use to determine the subject. If specified, the subject will be tags[subjectKey] | +| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | +| question | _undefined_ | The question to ask during the review | + +#### Example usage of create_review + +`{create_review(name,,)}` + +### list_reviews + +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 + +| name | default | description | +-----|-----|----- | +| subjectKey | name | The key to use to determine the subject. If specified, the subject will be tags[subjectKey] | +| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | + +#### Example usage of list_reviews + +`{list_reviews(name,)}` + +### rating + +Shows stars which represent the average rating on mangrove. + +| name | default | description | +-----|-----|----- | +| subjectKey | name | The key to use to determine the subject. If the value is specified, the subject will be tags[subjectKey] and will use this to filter the reviews. | +| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | + +#### Example usage of rating + +`{rating(name,)}` + +### 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 tags[subjectKey] | +| fallback | _undefined_ | The identifier to use, if tags[subjectKey] as specified above is not available. This is effectively a fallback value | +| question | _undefined_ | The question to ask in the review form. Optional | + +#### Example usage of reviews + +`{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 + +## settings + +Elements part of the usersettings-ui + +### 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 + +`{clear_caches()}` + +### disabled_questions + +Shows which questions are disabled for every layer. Used in 'settings' + +#### Example usage of disabled_questions + +`{disabled_questions()}` + +### gps_all_tags + +Shows the current tags of the GPS-representing object, used for debugging + +#### Example usage of gps_all_tags + +`{gps_all_tags()}` + +### gyroscope_all_tags + +Shows the current tags of the GPS-representing object, used for debugging + +#### Example usage of gyroscope_all_tags + +`{gyroscope_all_tags()}` + +### import_mangrove_key + +Only makes sense in the usersettings. Allows to import a mangrove public key and to use this to make reviews + +| name | default | description | +-----|-----|----- | +| text | _undefined_ | The text that is shown on the button | + +#### Example usage of import_mangrove_key + +`{import_mangrove_key()}` + +### language_picker + +A component to set the language of the user interface + +#### Example usage of language_picker + +`{language_picker()}` + +### login_button + +Show a login button + +#### Example usage of login_button + +`{login_button()}` + +### logout + +Shows a button where the user can log out + +#### Example usage of logout + +`{logout()}` + +### pending_changes + +A module showing the pending changes, with the option to clear the pending changes + +#### Example usage of pending_changes + +`{pending_changes()}` + +## tagrendering_manipulation + +Special visualisations which reuse other tagRenderings to show data, but with a twist. + +### 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 + +`{group(,)}` + +### 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 + +| 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` | + +#### Example usage of multi + +```json +{ + "render": { + "special": { + "type": "multi", + "key": "_doors_from_building_properties", + "tagrendering": { + "en": "The building containing this feature has a door of width {entrance:width}" + } + } + } +} +``` + +### open_in_iD + +Opens the current view in the iD-editor + +#### Example usage of open_in_iD + +`{open_in_iD()}` + +### open_in_josm + +Opens the current view in the JOSM-editor + +#### Example usage of open_in_josm + +`{open_in_josm()}` + +### steal + +Shows a tagRendering from a different object as if this was the object itself + +| 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 | + +#### Example usage of steal + +`{steal(,)}` + +## web_and_communication + +Tools to show data from external websites, which link to external websites or which link to external profiles + +### fediverse_link + +Converts a fediverse username or link into a clickable link + +| name | default | description | +-----|-----|----- | +| key | _undefined_ | The attribute-name containing the link | + +#### Example usage of fediverse_link + +`{fediverse_link()}` + +### link + +Construct a link. By using the 'special' visualisation notation, translations should be easier + +| 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 | +| icon | _undefined_ | If set, show this icon next to the link. You might want to combine this with `class: button` | + +#### Example usage of link + +`{link(,,,,,)}` + +### mapillary_link + +Adds a button to open mapillary on the specified location + +| name | default | description | +-----|-----|----- | +| zoom | 18 | The startzoom of mapillary | + +#### Example usage of mapillary_link + +`{mapillary_link(18)}` + +### send_email + +Creates a `mailto`-link where some fields are already set and correctly escaped. The user will be promted to send the email + +| 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 | + +#### Example usage of send_email + +`{send_email(,,,)}` ### wikidata_label @@ -1191,7 +807,7 @@ Shows the label of the corresponding wikidata-item #### Example usage of wikidata_label -`{wikidata_label()}` is a basic example, `{wikipedia(name:etymology:wikidata)}` to show the label itself +`{wikidata_label()}` is a basic example, `{wikipedia(name:etymology:wikidata)}` to show the label itself ### wikipedia @@ -1203,7 +819,304 @@ A box showing the corresponding wikipedia article(s) - based on the **wikidata** #### Example usage of wikipedia -`{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 +`{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 + +## Unclassified elements + +Various elements + +### add_note_comment + +A textfield to add a comment to a node (with the option to close the note). + +| name | default | description | +-----|-----|----- | +| Id-key | id | The property name where the ID of the note to close can be found | + +#### Example usage of add_note_comment + +`{add_note_comment(id)}` + +### all_tags + +Prints all key-value pairs of the object - used for debugging + +#### Example usage of all_tags + +`{all_tags()}` + +### auto_apply + + A button to run many actions for many features at once. + To effectively use this button, you'll need some ingredients: + + 1. 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 + 2. 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) + 3. Then, use a calculated tag on the host feature to determine the overlapping object ids + 4. At last, add this component + +| 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 | + +#### Example usage of auto_apply + +`{auto_apply(,,,,./assets/svg/robot.svg)}` + +### braced + +Show a literal text within braces + +| name | default | description | +-----|-----|----- | +| text | _undefined_ | The value to show | + +#### Example usage of braced + +`{braced()}` + +### canonical + +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. + +| name | default | description | +-----|-----|----- | +| key | _undefined_ | The key of the tag to give the canonical text for | + +#### Example usage of canonical + +If the object has `length=42`, then `{canonical(length)}` will be shown as **42 meter** (in english), **42 metre** (in french), ... + +### clear_location_history + +A button to remove the travelled track information from the device + +#### Example usage of clear_location_history + +`{clear_location_history()}` + +### close_note + +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. + +| 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 | + +#### Example usage of close_note + +`{close_note(,checkmark.svg,id,,,)}` + +### direction_absolute + +Converts compass degrees (with 0° being north, 90° being east, ...) into a human readable, translated direction such as 'north', 'northeast' + +| name | default | description | +-----|-----|----- | +| key | _direction:centerpoint | The attribute containing the degrees | + +#### Example usage of direction_absolute + +`{direction_absolute(_direction:centerpoint)}` + +### direction_indicator + +Gives a distance indicator and a compass pointing towards the location from your GPS-location. If clicked, centers the map on the object + +#### Example usage of direction_indicator + +`{direction_indicator()}` + +### export_as_geojson + +Exports the selected feature as GeoJson-file + +#### Example usage of export_as_geojson + +`{export_as_geojson()}` + +### export_as_gpx + +Exports the selected feature as GPX-file + +#### Example usage of export_as_gpx + +`{export_as_gpx()}` + +### histogram + +Create a histogram for a list of given values, read from the properties. + +| 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` | + +#### Example usage of histogram + +`{histogram('some_key')}` with properties being `{some_key: ["a","b","a","c"]} to create a histogram + +### language_chooser + +The language element allows to show and pick all known (modern) languages. The key can be set + +| 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 | + +#### Example usage of language_chooser + +`{language_chooser(,,{language()},,{list()},)}` + +### multi_apply + +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 + +| 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 | + +#### Example usage of multi_apply + +{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)} + +### nearby_images + +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 + +| name | default | description | +-----|-----|----- | +| mode | closed | Either `open` or `closed`. If `open`, then the image carousel will always be shown | +| readonly | _undefined_ | If 'readonly' or 'yes', will not show the 'link'-button | + +#### Example usage of nearby_images + +`{nearby_images(closed,)}` + +### opening_hours_state + +A small element, showing if the POI is currently open and when the next change is + +| 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__ | + +#### Example usage of opening_hours_state + +`{opening_hours_state(opening_hours,,)}` + +### opening_hours_table + +Creates an opening-hours table. Usage: {opening_hours_table(opening_hours)} to create a table of the tag 'opening_hours'. + +| 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__ | + +#### Example usage of opening_hours_table + +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)}` + +### 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 + +`{preset_description()}` + +### preset_type_select + +An editable tag rendering which allows to change the type + +#### Example usage of preset_type_select + +`{preset_type_select()}` + +### questions + +The special element which shows the questions which are unkown. Added by default if not yet there + +| 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 | + +#### Example usage of questions + +`{questions(,)}` + +### statistics + +Show general statistics about the elements currently in view. Intended to use on the `current_view`-layer + +#### Example usage of statistics + +`{statistics()}` + +### tags + +Shows a (json of) tags in a human-readable way + links to the wiki + +| name | default | description | +-----|-----|----- | +| key | value | The key to look for the tags | + +#### Example usage of tags + +`{tags(value)}` + +### title + +Shows the title of the popup. Useful for some cases, e.g. 'What is phone number of {title()}?' + +#### Example usage of title + +`What is the phone number of {title()}`, which might automatically become `What is the phone number of XYZ`. + +### translated + +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 + +| name | default | description | +-----|-----|----- | +| key | value | The attribute to interpret as json | + +#### Example usage of translated + +`{translated(value)}` + +### upload_to_osm + +Uploads the GPS-history as GPX to OpenStreetMap.org; clears the history afterwards. The actual feature is ignored. + +#### Example usage of upload_to_osm + +`{upload_to_osm()}` -This document is autogenerated from [src/UI/SpecialVisualizations.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/UI/SpecialVisualizations.ts) +This document is autogenerated from [src/UI/SpecialVisualizations.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/UI/SpecialVisualizations.ts) diff --git a/Docs/Themes/circular_economy.md b/Docs/Themes/circular_economy.md index af31def80..4d616b38f 100644 --- a/Docs/Themes/circular_economy.md +++ b/Docs/Themes/circular_economy.md @@ -958,4 +958,4 @@ This tagrendering has labels -This document is autogenerated from [assets/themes/circular_economy/circular_economy.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/circular_economy/circular_economy.json) +This document is autogenerated from [assets/themes/circular_economy/circular_economy.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/circular_economy/circular_economy.json) diff --git a/Docs/Themes/healthcare.md b/Docs/Themes/healthcare.md index e53e2cef8..7884876d8 100644 --- a/Docs/Themes/healthcare.md +++ b/Docs/Themes/healthcare.md @@ -973,4 +973,4 @@ This tagrendering has labels -This document is autogenerated from [assets/themes/healthcare/healthcare.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/themes/healthcare/healthcare.json) +This document is autogenerated from [assets/themes/healthcare/healthcare.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/healthcare/healthcare.json) diff --git a/Docs/Themes/maproulette.md b/Docs/Themes/maproulette.md deleted file mode 100644 index 1bf5cb00e..000000000 --- a/Docs/Themes/maproulette.md +++ /dev/null @@ -1,33 +0,0 @@ -[//]: # (WARNING: this file is automatically generated. Please find the sources at the bottom and edit those sources) - -## MapRoulette Tasks ( [maproulette](https://mapcomplete.org/maproulette) ) -_This document details some technical information about this MapComplete theme, mostly about the attributes used in the theme. Various links point toward more information about the attributes, e.g. to the OpenStreetMap-wiki, to TagInfo or tools creating statistics_ -The theme introduction reads: - -> Theme showing MapRoulette tasks, allowing you to search, filter and fix them. - -This theme contains the following layers: - - - [maproulette](../Layers/maproulette.md) - -Available languages: - - - en - - de - - fr - - da - - ca - - pa_PK - - nl - - es - - cs - - zh_Hant - - pl - - hu - - ko - -# Layers defined in this theme configuration file -These layers can not be reused in different themes. - - -This document is autogenerated from [assets/themes/maproulette/maproulette.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/themes/maproulette/maproulette.json) diff --git a/Docs/URL_Parameters.md b/Docs/URL_Parameters.md index e40e25299..0873d5455 100644 --- a/Docs/URL_Parameters.md +++ b/Docs/URL_Parameters.md @@ -338,7 +338,7 @@ No default value set Used to complete the login -This documentation is defined in the source code at [WithUserRelatedState.ts](/src/Models/ThemeViewState/WithUserRelatedState.ts#L39) +This documentation is defined in the source code at [WithUserRelatedState.ts](/src/Models/ThemeViewState/WithUserRelatedState.ts#L43) No default value set @@ -410,7 +410,7 @@ The default value is _0_ The mode the application starts in, e.g. 'map', 'dashboard' or 'statistics' -This documentation is defined in the source code at [generateDocs.ts](ervdvn/git2/MapComplete/scripts/generateDocs.ts#L437) +This documentation is defined in the source code at [generateDocs.ts](ervdvn/git2/MapComplete/scripts/generateDocs.ts#L442) The default value is _map_ @@ -418,9 +418,9 @@ The default value is _map_ Whether the layer with id is shown -This documentation is defined in the source code at [QueryParameterDocumentation.ts](/src/UI/QueryParameterDocumentation.ts#L58) +This documentation is defined in the source code at [QueryParameterDocumentation.ts](/src/UI/QueryParameterDocumentation.ts#L53) The default value is _true_ -This document is autogenerated from [src/Logic/Web/QueryParameters.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/Logic/Web/QueryParameters.ts), [src/UI/QueryParameterDocumentation.ts](https://github.com/pietervdvn/MapComplete/blob/develop/src/UI/QueryParameterDocumentation.ts) +This document is autogenerated from [src/Logic/Web/QueryParameters.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/Logic/Web/QueryParameters.ts), [src/UI/QueryParameterDocumentation.ts](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/src/UI/QueryParameterDocumentation.ts) diff --git a/Docs/builtin_units.md b/Docs/builtin_units.md index d49688a64..005b5dcb8 100644 --- a/Docs/builtin_units.md +++ b/Docs/builtin_units.md @@ -177,4 +177,4 @@ Alternative denominations: #### years -This document is autogenerated from [assets/layers/unit/unit.json](https://github.com/pietervdvn/MapComplete/blob/develop/assets/layers/unit/unit.json) +This document is autogenerated from [assets/layers/unit/unit.json](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/assets/layers/unit/unit.json) diff --git a/src/UI/SpecialVisualisations/MapRouletteSpecialVisualisations.ts b/src/UI/SpecialVisualisations/DataImportSpecialVisualisations.ts similarity index 100% rename from src/UI/SpecialVisualisations/MapRouletteSpecialVisualisations.ts rename to src/UI/SpecialVisualisations/DataImportSpecialVisualisations.ts diff --git a/src/UI/SpecialVisualisations/TagrenderingManipulationSpecialVisualisations.ts b/src/UI/SpecialVisualisations/TagrenderingManipulationSpecialVisualisations.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/UI/SpecialVisualisations/WebAndCommunicationSpecialVisualisations.ts b/src/UI/SpecialVisualisations/WebAndCommunicationSpecialVisualisations.ts new file mode 100644 index 000000000..83ecc6b17 --- /dev/null +++ b/src/UI/SpecialVisualisations/WebAndCommunicationSpecialVisualisations.ts @@ -0,0 +1,7 @@ +import { SpecialVisualization } from "../SpecialVisualization" + +export class WebAndDataSpecialVisualisations { + public static initList(): (SpecialVisualization & { group }) [] { + return [] + } +}