Merge master

This commit is contained in:
Pieter Vander Vennet 2023-08-24 12:22:45 +02:00
commit 7ebb3d721c
411 changed files with 21814 additions and 8717 deletions

View file

@ -13,11 +13,10 @@
- [fs-translation-mode](#fs-translation-mode)
- [backend](#backend)
- [fake-user](#fake-user)
- [fs-userbadge](#fs-userbadge)
- [fs-enable-login](#fs-enable-login)
- [fs-search](#fs-search)
- [fs-background](#fs-background)
- [fs-filter](#fs-filter)
- [fs-add-new](#fs-add-new)
- [fs-welcome-message](#fs-welcome-message)
- [fs-community-index](#fs-community-index)
- [fs-iframe-popout](#fs-iframe-popout)
@ -48,7 +47,7 @@ This document gives an overview of which URL-parameters can be used to influence
"URL-parameters are extra parts of the URL used to set the state.
For example, if the url is `https://mapcomplete.osm.be/cyclofix?lat=51.0&lon=4.3&z=5&test=true#node/1234`, the URL-parameters are stated in the part between the `?` and the `#`. There are multiple, all separated by `&`, namely:
For example, if the url is `https://mapcomplete.org/cyclofix?lat=51.0&lon=4.3&z=5&test=true#node/1234`, the URL-parameters are stated in the part between the `?` and the `#`. There are multiple, all separated by `&`, namely:
@ -60,6 +59,30 @@ For example, if the url is `https://mapcomplete.osm.be/cyclofix?lat=51.0&lon=4.3
Finally, the URL-hash is the part after the `#`. It is `node/1234` in this case.
The URL-hash can contain multiple values:
- The id of the currently selected object, e.g. `node/1234`
- The currently opened menu view
- The base64-encoded JSON-file specifying a custom theme (only when loading)
### Possible hashes to open a menu
The possible hashes are:
`menu:about`,`menu:settings`,`menu:community`,`menu:privacy`,`menu:advanced`
`theme-menu:intro`,`theme-menu:filters`,`theme-menu:download`,`theme-menu:copyright`,`theme-menu:share`
language
@ -101,7 +124,7 @@ This documentation is defined in the source code at [Locale.ts](/src/UI/i18n/Loc
The OSM backend to use - can be used to redirect mapcomplete to the testing backend when using 'osm-test'
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L29)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L34)
The default value is _osm_
@ -112,18 +135,18 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
If true, 'dryrun' mode is activated and a fake user account is loaded
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L35)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L40)
The default value is _false_
fs-userbadge
--------------
fs-enable-login
-----------------
Disables/Enables the user information pill (userbadge) at the top left. Disabling this disables logging in and thus disables editing all together, effectively putting MapComplete into read-only mode.
Disables/Enables logging in and thus disables editing all together. This effectively puts MapComplete into read-only mode.
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L76)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L80)
The default value is _true_
@ -134,7 +157,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Disables/Enables the search bar
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L81)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L85)
The default value is _true_
@ -145,7 +168,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Disables/Enables the background layer control
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L86)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L90)
The default value is _true_
@ -156,18 +179,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Disables/Enables the filter view
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L92)
The default value is _true_
fs-add-new
------------
Disables/Enables the 'add new feature'-popup. (A theme without presets might not have it in the first place)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L97)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L96)
The default value is _true_
@ -332,7 +344,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
The id of the background layer to start with
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L205)
This documentation is defined in the source code at [FeatureSwitchState.ts](/src/Logic/State/FeatureSwitchState.ts#L199)
The default value is _osm_
@ -343,7 +355,7 @@ This documentation is defined in the source code at [FeatureSwitchState.ts](/src
Wether or not the layer with id <layer-id> is shown
This documentation is defined in the source code at [QueryParameterDocumentation.ts](/src/UI/QueryParameterDocumentation.ts#L52)
This documentation is defined in the source code at [QueryParameterDocumentation.ts](/src/UI/QueryParameterDocumentation.ts#L53)
The default value is _true_