- What is a URL parameter?
- language
- fs-translation-mode
- fake-user
- fs-enable-login
- fs-search
- fs-background
- fs-filter
- fs-welcome-message
- fs-community-index
- fs-iframe-popout
- fs-more-quests
- fs-share-screen
- fs-geolocation
- fs-all-questions
- fs-export
- test
- debug
- overpassUrl
- overpassTimeout
- overpassMaxZoom
- osmApiTileSize
- background
- z
- lat
- lon
- oauth_token
- layer-public_bookcase
- filter-public_bookcase-kid-books
- filter-public_bookcase-adult-books
- filter-public_bookcase-inside
- filter-public_bookcase-has_image
- layer-note_import_public_bookcase
- mode
- layer-<layer-id>
This document gives an overview of which URL-parameters can be used to influence MapComplete.
"URL-parameters are extra parts of the URL used to set the state.
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:
- The url-parameter
lat
is51.0
in this instance - The url-parameter
lon
is4.3
in this instance - The url-parameter
z
is5
in this instance - The url-parameter
test
istrue
in this instance
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)
The possible hashes are:
menu:about
,menu:settings
,menu:favourites
,menu:community
,menu:privacy
,menu:advanced
theme-menu:intro
,theme-menu:download
,theme-menu:copyright
,theme-menu:share
The language to display MapComplete in. The user display language is determined in the following order:
- Use the language as set by the URL-parameter
language
(following ISO 639-1 | ex.language=nl
). This will disable setting the language by the user - If the user did log in and did set their language before with MapComplete, use this language. This language selection is synchronized accross devices using the openstreetmap.org user preferences.
- If the user visited MapComplete before and did change their language manually, this changed language will be saved in local storage. Use the language from local storage
- Use the navigator-language (if available)
- Use English
Note that this URL-parameter is not added to the URL-bar by default. Note that the loading screen will always use the navigator language.
Translations are never complete. If a translation in a certain language is missing, English is used as fallback.
This documentation is defined in the source code at Locale.ts
No default value set
If set, will show a translation button next to every string.
This documentation is defined in the source code at Locale.ts
The default value is false
If true, 'dryrun' mode is activated and a fake user account is loaded
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is false
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
The default value is true
Disables/Enables the search bar
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the background layer control
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the filter view
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/enables the help menu or welcome message
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/enables the button to get in touch with the community
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the extraLink button. By default, if in iframe mode and the welcome message is hidden, a popout button to the full mapcomplete instance is shown instead (unless disabled with this switch or another extraLink button is enabled)
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the 'More Quests'-tab in the welcome message
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the 'Share-screen'-tab in the welcome message
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Disables/Enables the geolocation button
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
Always show all questions
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is false
Enable the export as GeoJSON and CSV button
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is true
If true, 'dryrun' mode is activated. The app will behave as normal, except that changes to OSM will be printed onto the console instead of actually uploaded to osm.org
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is false
If true, shows some extra debugging help such as all the available tags on every object
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is false
Point mapcomplete to a different overpass-instance. Example: https://overpass-api.de/api/interpreter
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is https://overpass-api.de/api/interpreter,https://overpass.kumi.systems/api/interpreter,https://overpass.openstreetmap.ru/cgi/interpreter
Set a different timeout (in seconds) for queries in overpass
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is 30
point to switch between OSM-api and overpass
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is 16
Tilesize when the OSM-API is used to fetch data within a BBOX
This documentation is defined in the source code at FeatureSwitchState.ts
The default value is 17
The id of the background layer to start with
This documentation is defined in the source code at FeatureSwitchState.ts
No default value set
The initial/current zoom level
This documentation is defined in the source code at InitialMapPositioning.ts
The default value is 1
The initial/current latitude
This documentation is defined in the source code at InitialMapPositioning.ts
The default value is 0
The initial/current longitude of the app
This documentation is defined in the source code at InitialMapPositioning.ts
The default value is 0
Used to complete the login
This documentation is defined in the source code at ThemeViewState.ts
No default value set
Whether or not layer public_bookcase is shown
This documentation is defined in the source code at FilteredLayer.ts
The default value is true
State of filter kid-books
This documentation is defined in the source code at FilterConfig.ts
The default value is false
State of filter adult-books
This documentation is defined in the source code at FilterConfig.ts
The default value is false
State of filter inside
This documentation is defined in the source code at FilterConfig.ts
The default value is 0
State of filter has_image
This documentation is defined in the source code at FilterConfig.ts
The default value is 0
Whether or not layer note_import_public_bookcase is shown
This documentation is defined in the source code at FilteredLayer.ts
The default value is true
The mode the application starts in, e.g. 'map', 'dashboard' or 'statistics'
This documentation is defined in the source code at generateDocs.ts
The default value is map
Wether or not the layer with id is shown
This documentation is defined in the source code at QueryParameterDocumentation.ts
The default value is true
This document is autogenerated from src/Logic/Web/QueryParameters.ts, src/UI/QueryParameterDocumentation.ts