Conversation
…pup menu controls - Integrate SuperClusterAlgorithm from android-maps-utils-clustering:5.2.0 into Maps Compose demo app. - Add SuperClusterNative (high-performance native markers with compact badge formatting) and SuperClusterCompose modes. - Replace scrolling chip bars with a floating Material 3 ClusteringControlBar featuring popup menus for algorithm and dataset selection. - Add 50,000 (50K) and 100,000 (100K) dataset buckets with realistic regional point spread. - Add directly visible Anim: ON / Anim: OFF toggle to compare 300ms marker transition animations against instant 60fps clustering. - Enable largeHeap in maps-app/src/main/AndroidManifest.xml for mega-scale marker headroom.
dkhawk
force-pushed
the
test/supercluster-compose
branch
from
October 1, 2026 21:07
cec7d48 to
f89bead
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft PR integrates the new high-performance
SuperClusterAlgorithminto the Maps Compose sample demo app (maps-app), replacing horizontal chip bars with an elegant floating Material 3 control bar featuring popup menus and configurable dataset sizes up to 100,000 markers.Key Additions & Improvements
SuperCluster Integration:
SuperClusterNativemode: leveragesSuperClusterAlgorithmwithDefaultClusterRenderer, compact SI unit notation (k/m), and cached bitmap badges for 60fps pan/zoom across tens of thousands of markers.SuperClusterComposemode: uses Compose UI cluster badges while using native marker rendering for unclustered pins (clusterItemContent = null) to avoid allocating thousands ofComposeViewhierarchies on the UI thread.50K & 100K Dataset Buckets:
50,000 (50K)and100,000 (100K)marker buckets alongside10,500,2,500,10,000, and25,000.spread = 4.0) for realistic multi-level hierarchical clustering across Singapore and neighboring regions.Floating Control Bar with Popup Menus (
ClusteringControlBar):TopCenter.FilledTonalButtonwithArrowDropDownto pick between all available clustering modes with selection checkmarks.FilledTonalButtonwithArrowDropDownto pick marker counts from 10 to 100K.FilterChiplabeledAnim ON/Anim OFFdirectly visible on the bar to evaluate the performance difference between 300ms frame interpolation and instant zero-overhead clustering.Heap Headroom:
android:largeHeap="true"inmaps-app/src/main/AndroidManifest.xmlfor smooth mega-scale testing.