Skip to content

Commit

Permalink
Document layer style in l parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 21, 2023
1 parent fceba73 commit 98c27b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/topics/Interfacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The following parameters can appear in the URL of the QWC2 application:

The `l` parameter lists all layers in the map (redlining and background layers) as a comma separated list of entries of the form
```text
<layername>[<transparency>]!
<layername>[<transparency>]{<style>}!
```
where
- `layername` is the WMS name of a theme layer or group, or an external layer resource string in the format
Expand All @@ -29,7 +29,8 @@ where
```
for external layers, i.e. `wms:https://wms.geo.admin.ch/?#ch.are.bauzonen`.
- `<transparency>` denotes the layer transparency, betwen 0 and 100. If the `[<transparency>]` portion is omitted, the layer is fully opaque.
- `!` denotes that the layer is invisible. If omitted, the layer is visible.
- `<style>` denotes the layer style name. If the `{<style>}` portion is omitted, the style named `default` will be used, if one exists, or the first available style otherwise.
- `!` denotes that the layer is invisible (i.e. unchecked in the layer tree). If omitted, the layer is visible.

*Note*: If group name is specified instead of the layer name, QWC2 will automatically resolve this to all layer names contained in that group, and will apply transparency and visibility settings as specified for the group.

Expand Down

0 comments on commit 98c27b9

Please sign in to comment.