mapcomplete/Docs/URL_Parameters.md
2022-06-04 16:56:15 +02:00

1.7 KiB

URL-parameters and URL-hash

Table of contents

  1. URL-parameters and URL-hash

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, UI/QueryParameterDocumentation.ts