A Flutter package that recreate clustering technique in a Google Maps widget.
The package recreate the CLUSTERING technique in a Google Maps.
It's work with data recordered in a dababase SQLite. I use sqflite (DB TECHNIQUE)
It's work with a list of LatLngAndGeohash object. (MEMORY TECHNIQUE)
To use this package, add clustering_google_maps
as a dependency in your pubspec.yaml file.
clustering_google_maps:
git:
url: https://github.com/juancki/clustering_google_maps.git
For a better performance,at every zoom variation on the map, the package performs
a specific query on the SQLite database, but you can force update with updateMap() method.
To work properly you must have a list of LatLngAndGeohash MarkerWrapper objects.
For this solution you must use the MEMORY constructor of ClusteringHelper:
ClusteringHelper.forMemory(...);
Yuo can customize color, range count and zoom limit of aggregation. See this class: AggregationSetup.