Skip to content

Prevent empty drawer from being displayed [eg. layer group] #2875

Description

@cityremade

We have a content length check on layer view panels in order to prevent containers from being displayed empty.
Some apps may use conditional checks for layers and data availability, like country, region etc and hide them.
A group holding layers with no data available might display empty if none of contained layers have available data.

To include a check on group length to prevent showing empty groups where all layers have been conditionally hidden.

We have a plugin conditional_layer_hide written for demo requirements which removes empty layers after testing data which means checks are run after layers are created and then removed.

Could no data check be a method of a layer object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature requests or changes to the behaviour or look of existing application features.RFCRequest for Comment or Change.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions