googlemaps / googlemaps/android-maps-utils

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

Open
#1,051 3 comments 0 reactions 0 assignees View on GitHub
priority: p3 stale type: feature request
Dominant language
Kotlin
Stars
3.6k
Forks
1.6k
Avg merge
2d 20h
Merged PRs (30d)
17

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.