What made me think of clustering the markers is that more markers on the map consume more resources. After some research, I found that rendering thousands of markers on Google Maps is not yet optimized in Flutter.

To further optimize, I need to find a way to limit the maximum number of items in a single cluster. Flattening a small cluster doesn’t impact performance much, but when a cluster containing thousands of markers is flattened, the map starts to lag.
What made me think of clustering the markers is that more markers on the map consume more resources. After some research, I found that rendering thousands of markers on Google Maps is not yet optimized in Flutter.

To further optimize, I need to find a way to limit the maximum number of items in a single cluster. Flattening a small cluster doesn’t impact performance much, but when a cluster containing thousands of markers is flattened, the map starts to lag.