Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/main/js/bundles/dn_attributeselector/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# dn_attributeselector Bundle Documentation

## Bundle Description
The `dn_attributeselector` bundle provides an interactive slider widget for filtering map layers based on attribute values. It allows users to dynamically adjust a numeric attribute filter (e.g., house number) on one or more layers. The widget supports configuration of the target attribute, comparison relation, and slider settings such as range, step, and visible elements. It can automatically apply or remove the filter when the widget is opened or closed, and supports group layers.
The `dn_attributeselector` bundle provides an interactive selector widget for filtering map layers based on attribute values. It allows users to dynamically adjust a numeric attribute filter (e.g., house number) on one or more layers. The widget supports configuration of the target attribute, comparison relation, and selector settings such as range, step, and visible elements. It can automatically apply or remove the filter when the widget is opened or closed, and supports group layers.

## Usage
- The bundle must be added to the app.json in "allowedBundles" as `dn_attributeselector`.
- The bundle provides a Tool that must be added to a toolset in the `app.json`, the tool ID to reference is `attributeSliderWidgetToggleTool`
- The bundle provides a Tool that must be added to a toolset in the `app.json`, the tool ID to reference is `attributeSelectorWidgetToggleTool`

## Configuration Reference

Expand All @@ -29,7 +29,7 @@ The `dn_attributeselector` bundle provides an interactive slider widget for filt

| Property | Type | Values | Default | Description |
|-------------------------------------------|----------|---------------------------------|----------|--------------------------------------------------------------|
| layerIds | string[] | Any layer IDs | [] | List of layer IDs to which the slider filter will be applied |
| layerIds | string[] | Any layer IDs | [] | List of layer IDs to which the selector filter will be applied |
| applyToGroupContents | boolean | true, false | false | Whether to apply the filter to all sublayers of group layers |
| targetAttribute | string | Any attribute name | "" | The attribute field to filter on |
| attributeValueRelation | string | "=", "<", ">", "<=", ">=", "!=" | ">=" | The comparison operator for the filter |
Expand All @@ -43,4 +43,3 @@ The `dn_attributeselector` bundle provides an interactive slider widget for filt
- Ensure that the `targetAttribute` exists on all specified layers.
- The widget will only function if the referenced layers are present in the map.
- Edge cases: If a layer is missing or the attribute is not found, the filter will not be applied to that layer.
- The slider UI can be customized via the `sliderSettings.visibleElements` object.
5 changes: 0 additions & 5 deletions src/main/js/bundles/dn_attributeselector/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
height: 100%;
overflow: hidden;

.attributeSelectorWidget--slider-layout {
display: flex;
flex-direction: row;
margin-top: 25px;
}
.attributeSelectorWidget--checkbox-container {
height: fit-content;
}
Expand Down
Loading