-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interaction between the Legend filter and the Layer filter #10241
Comments
On the MS side we can for sure prevent the interactive legend from displaying under certain conditions. Standard GLG is filtered only if hideEmptyRules is specified in the request:
The JSON legend seems to completely lacking this logic:
|
After an additional investigation it seems possible to filter rules in a legend but all the following parameters must be included in the GetLegend graphic request:
After testing, hideEmptyRules works also if the countMatched is not present in the request.
|
When the Interactive legend is enabled and then a filter layer is added, if I disable the filter layer it is no longer possible to filter the legend. filter.legend.mp4How to Reproduce
|
@ElenaGallo This is the expected behavior. When you disable filter, it disables all the filters (layer and legend) and becomes applicable only when filter is enabled on the layer. This is to maintain consistent behavior |
Description
It should be possible in GS to filter the JSON legend according to the general filter defined in 'Layer filter' because now when there is an attribute filter for the layer and the interactive legend is enabled, the interactive legend does not work as expected.
2.mp4
How to reproduce
Open this map
Click on Filter Layer
Set the Attribute Filter
Click on Settings layer
From Display tab, set Enable interactive legend
Click on X
Open the layer Legend
Not browser related
Acceptance criteria
Other useful information
Related to #10180 (comment)
The text was updated successfully, but these errors were encountered: