Merge pull request #1688 from ka1bi4/update/docs-some-fix-improves

Update docs and fix som typo.
This commit is contained in:
Pieter Vander Vennet 2023-10-26 23:09:03 +02:00 committed by GitHub
commit 57af2116de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 14 deletions

View file

@ -1,7 +1,7 @@
Architecture
============
This document aims to give an architectural overview of how MapCompelte is built. It should give some feeling on how
This document aims to give an architectural overview of how MapComplete is built. It should give some feeling on how
everything fits together.
Servers?
@ -59,7 +59,7 @@ There are some basic elements, such as:
- `List`
There is one special component: the `VariableUIElement`
The `VariableUIElement` takes a `UIEventSource<string|BaseUIElement>` and will dynamicaly show whatever the `UIEventSource` contains at the moment.
The `VariableUIElement` takes a `UIEventSource<string|BaseUIElement>` and will dynamically show whatever the `UIEventSource` contains at the moment.
For example:
@ -107,7 +107,7 @@ If Tailwind is not enough, use `baseUiElement.SetStyle("background: red; someOth
### An example
For example: the user should input wether or not a shop is closed during public holidays. There are three options:
For example: the user should input whether or not a shop is closed during public holidays. There are three options:
1. closed
2. opened as usual

View file

@ -319,7 +319,7 @@ For example to get all objects which overlap or embed from a layer, use `_contai
Also see [enclosingFeatures](#enclosingFeatures) which can be used to get all objects which fully contain this feature
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for overlap)
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for overlap
### enclosingFeatures
@ -329,7 +329,7 @@ Also see [enclosingFeatures](#enclosingFeatures) which can be used to get all ob
The result is a list of features: `{feat: Polygon}[]`
This function will never return the feature itself.
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for overlap)
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for overlap
### intersectionsWith
@ -341,7 +341,7 @@ Returns a `{feat: GeoJson, intersections: [number,number][]}` where `feat` is th
If the current feature is a point, this function will return an empty list.
Points from other layers are ignored - even if the points are parts of the current linestring.
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for intersection)
0. ...layerIds - one or more layer ids of the layer from which every feature is checked for intersection
### closest

View file

@ -5,7 +5,7 @@
In my [little OpenStreetMap-editor](https://mapcomplete.org) translations are provided by contributors on [hosted weblate](https://hosted.weblate.org/projects/mapcomplete/), where thousands of text snippets have been translated already in the past year - which is awesome.
However, the language picker was a bit dry: it used to have codes for every langauge, e.g. `nl`, `en`, `ja`, 'pt_BR', 'zh_Hant'... Quite boring and not really user-friendly - but easy to implement.
However, the language picker was a bit dry: it used to have codes for every language, e.g. `nl`, `en`, `ja`, 'pt_BR', 'zh_Hant'... Quite boring and not really user-friendly - but easy to implement.
Today, I decided to give these an overhaul. I wanted to show proper language names in them. But: in which _language_ should we show the language overview?

View file

@ -539,7 +539,7 @@ There are also some technicalities in your theme to keep in mind:
1. The new feature will be added and will flow through the program as any other new point as if it came from OSM.
This means that there should be a layer which will match the new tags and which will display it.
2. The original feature from your geojson layer will gain the tag '_imported=yes'.
This should be used to change the appearance or even to hide it (eg by changing the icon size to zero)
This should be used to change the appearance or even to hide it (e.g. by changing the icon size to zero)
3. There should be a way for the theme to detect previously imported points, even after reloading.
A reference number to the original dataset is an excellent way to do this
4. When importing ways, the theme creator is also responsible of avoiding overlapping ways.
@ -607,7 +607,7 @@ There are also some technicalities in your theme to keep in mind:
1. The new feature will be added and will flow through the program as any other new point as if it came from OSM.
This means that there should be a layer which will match the new tags and which will display it.
2. The original feature from your geojson layer will gain the tag '_imported=yes'.
This should be used to change the appearance or even to hide it (eg by changing the icon size to zero)
This should be used to change the appearance or even to hide it (e.g. by changing the icon size to zero)
3. There should be a way for the theme to detect previously imported points, even after reloading.
A reference number to the original dataset is an excellent way to do this
4. When importing ways, the theme creator is also responsible of avoiding overlapping ways.

View file

@ -11,7 +11,7 @@ NL-Net is currently sponsoring Pietervdvn as well [for specific improvements](ht
## Historical sponsors
The following organisations ordered a theme to Pieter Vander Vennet and thus sponsered the project.
The following organisations ordered a theme to Pieter Vander Vennet and thus sponsored the project.
As these projects are finished, they have no relation with the project anymore.
Most recent projects are first:

View file

@ -43,8 +43,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.
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: