forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
c10fecb7e8
commit
f5d7686c98
234 changed files with 3493 additions and 2482 deletions
|
|
@ -81,7 +81,7 @@ export default class FeatureSwitchState extends OsmConnectionFeatureSwitches {
|
|||
|
||||
const legacyRewrite: Record<string, string | string[]> = {
|
||||
"fs-userbadge": "fs-enable-login",
|
||||
"fs-layers": ["fs-filter", "fs-background"]
|
||||
"fs-layers": ["fs-filter", "fs-background"],
|
||||
}
|
||||
|
||||
for (const key in legacyRewrite) {
|
||||
|
|
@ -251,17 +251,20 @@ export default class FeatureSwitchState extends OsmConnectionFeatureSwitches {
|
|||
this.backgroundLayerId = QueryParameters.GetQueryParameter(
|
||||
"background",
|
||||
layoutToUse?.defaultBackgroundId,
|
||||
["When set, load this raster layer (or a layer of this category) as background layer instead of using the default background. This is as if the user opened the background selection menu and selected the layer with the given id or category.",
|
||||
[
|
||||
"When set, load this raster layer (or a layer of this category) as background layer instead of using the default background. This is as if the user opened the background selection menu and selected the layer with the given id or category.",
|
||||
"Most raster layers are based on the [editor layer index](https://github.com/osmlab/editor-layer-index)",
|
||||
|
||||
"#### Selecting a category",
|
||||
"If one of the following values is used, this parameter will be interpreted as a _category_ instead of the id of a specific layer. The best layer of this category will be used. Supported categories are those from the editor layer index and are:",
|
||||
eliCategory.map(c => "- " + c).join("\n"),
|
||||
eliCategory.map((c) => "- " + c).join("\n"),
|
||||
"#### Selecting a specific layer",
|
||||
"One can use the [ID of an ELI-layer](./ELI-overview.md) or use one of the global, builtin layers:",
|
||||
MarkdownUtils.list(AvailableRasterLayers.globalLayers.map(global =>
|
||||
global.properties.id+(global.properties.best ? " ⭐" : "")
|
||||
))
|
||||
MarkdownUtils.list(
|
||||
AvailableRasterLayers.globalLayers.map(
|
||||
(global) => global.properties.id + (global.properties.best ? " ⭐" : "")
|
||||
)
|
||||
),
|
||||
].join("\n\n")
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue