Skip to content

Commit

Permalink
Fix incorrect mapfilter config snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Apr 3, 2024
1 parent 2ea76c1 commit 95a6c79
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/topics/MapFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ The [`MapFilter`](../references/qwc2_plugins.md#mapfilter) plugin allows filteri
You can set predefined filter expressions for a theme item as follows:

```json
"predefinedFilters": {
"id": "<filter_id>",
"title": "<filter_title>",
"titlemsgid": "<filter_title_msgid>",
"filter": {
"<layer>": <data_service_filter_expression>
"predefinedFilters": [
{
"id": "<filter_id>",
"title": "<filter_title>",
"titlemsgid": "<filter_title_msgid>",
"filter": {
"<layer>": <data_service_filter_expression>
},
"fields": {
"id": "<value_id>",
"title": "<value_title">,
"titlemsgid": "<value_title_msgid>",
"defaultValue": <default_value>,
"inputConfig": {<input_field_opts>}
}
},
"fields": {
"id": "<value_id>",
"title": "<value_title">,
"titlemsgid": "<value_title_msgid>",
"defaultValue": <default_value>,
"inputConfig": {<input_field_opts>}
}
}
...
]
```

You can specify any common HTML input element properties in `input_field_opts`, i.e.:
Expand Down

0 comments on commit 95a6c79

Please sign in to comment.