diff --git a/src/main/js/bundles/dn_attributeselector/README.md b/src/main/js/bundles/dn_attributeselector/README.md index 2096dcf..87ecb0c 100644 --- a/src/main/js/bundles/dn_attributeselector/README.md +++ b/src/main/js/bundles/dn_attributeselector/README.md @@ -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 @@ -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 | @@ -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. diff --git a/src/main/js/bundles/dn_attributeselector/css/styles.css b/src/main/js/bundles/dn_attributeselector/css/styles.css index 3aff6aa..e088502 100644 --- a/src/main/js/bundles/dn_attributeselector/css/styles.css +++ b/src/main/js/bundles/dn_attributeselector/css/styles.css @@ -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; }