Skip to content

mapPreview breaks when rule visibility is set to false #909

@darioh91

Description

@darioh91

Hi,

we noticed bug with mapPreview while a user sets visibility to false on a rule. If this option is set to false, all features (and all styles) are missing from the map.
The problem occurs on line


An array containing null values causes an error. The same issue appears at the line
It would probably be sufficient to return early from forEach loop in cases when rule.symbolizer has visibility set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions