Closed AdrienDruesne closed 10 months ago
@AdrienDruesne Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
google-maps
tagThis is an automated message, feel free to ignore.
Same here, it's making the app freeze and being unusable at the moment. But even when using the default cluster+item config it's not working when adding 1000+ (clustered) markers (using latest 4.1.1)
to replicate - just increase the cluster count of the ClusterSample to e.g. 4000 lot's of GC happening according to logs and screen is freezing.
would it be possible to expand clusters only for the visible viewport? - seems like it's currently expanding on zoom level - adding lot's of individual markers on areas that are potentially not viewed at all
This seems to be a problem with the clustering utility, not specifically a Compose Utils problem. Underlying issue reported here: https://github.com/googlemaps/android-maps-utils/issues/1199
I am also facing this issue, is there any workaround to this?
It seems that selecting NonHierarchicalViewBasedAlgorithm
would implement @cwsiteplan's suggestion to only render the items within the current viewport. Can anyone verify that this helps with a large number of items? See demonstration in #463. @AdrienDruesne @Anas304
:tada: This issue has been resolved in version 4.3.1 :tada:
The release is available on:
v4.3.1
Your semantic-release bot :package::rocket:
Is there a way to set the NonHierarchicalViewBasedAlgorithm without creating a CustomClusterManager? I want to continue using this Clustering composable
But I don't know how to set NonHierarchicalViewBasedAlgorithm in this case. At the moment I still having this problem
Hello,
While using the Clustering in the
com.google.maps.android:maps-compose-utils:2.13.0
library, if I customize the clusterContent or clusterItemContent, I have a huge drop in performances with 100+ items. Even for a simple composable as the one below, the app stutter when I move on the map, but I don't have any problem if I leave clusterContent and clusterItemContent to null.Thanks!