Skip to content

Possibility to change visibility of a Feature without sequential removing/adding it to map #1051

Description

@appach22

When I add a lot of features (in my case GeoJsonFeature) via Layer.addFeature() the adding process becomes too slow (every sequential addFeature() is slower then previous due to amount of objects already drawn on the map).
For this I've found a workaround: first add all the objects invisible and than bulk set the visibility. This works much faster.
When using maps utils and GeoJsonLayer if I add objects using GeoJsonLayer.addFeature() I CAN initially set visibility to false, but than I CANNOT set it to true without removing and then adding the object itself with a new style (even if the #1050 will be fixed).

Please, add a possibility to bulk change visibility of all features in layer and to change visibility of individual feature.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.staletype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions