forked from MapComplete/MapComplete
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
 | |
| 
 | |
|  URL-parameters and URL-hash 
 | |
| =============================
 | |
| 
 | |
| 
 | |
| 
 | |
| ## Table of contents
 | |
| 
 | |
| 1. [URL-parameters and URL-hash](#url-parameters-and-url-hash)
 | |
|   - [What is a URL parameter?](#what-is-a-url-parameter)
 | |
|   - [language](#language)
 | |
|   - [fs-translation-mode](#fs-translation-mode)
 | |
| 
 | |
| 
 | |
| 
 | |
| This document gives an overview of which URL-parameters can be used to influence MapComplete.
 | |
| 
 | |
| 
 | |
| 
 | |
|  What is a URL parameter? 
 | |
| --------------------------
 | |
| 
 | |
| 
 | |
| 
 | |
| "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: 
 | |
| 
 | |
| 
 | |
| 
 | |
|   - The url-parameter `lat` is `51.0` in this instance
 | |
|   - The url-parameter `lon` is `4.3` in this instance
 | |
|   - The url-parameter `z` is `5` in this instance
 | |
|   - The url-parameter `test` is `true` in this instance
 | |
| 
 | |
| 
 | |
| Finally, the URL-hash is the part after the `#`. It is `node/1234` in this case.
 | |
| 
 | |
| 
 | |
| 
 | |
|  language 
 | |
| ----------
 | |
| 
 | |
|  The language to display mapcomplete in. Will be ignored in case a logged-in-user did set their language before. If the specified language does not exist, it will default to the first language in the theme. No default value set
 | |
| 
 | |
| 
 | |
| 
 | |
|  fs-translation-mode 
 | |
| ---------------------
 | |
| 
 | |
|  If set, will show a translation button next to every string. The default value is _false_ 
 | |
| 
 | |
| This document is autogenerated from [Logic/Web/QueryParameters.ts](https://github.com/pietervdvn/MapComplete/blob/develop/Logic/Web/QueryParameters.ts), [UI/QueryParameterDocumentation.ts](https://github.com/pietervdvn/MapComplete/blob/develop/UI/QueryParameterDocumentation.ts) |