Skip to content

juancki/clustering_google_maps

 
 

Repository files navigation

Clustering for Flutter Google Maps

pub package

A Flutter package that recreate clustering technique in a Google Maps widget.

Developers Preview Status

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)

Usage

To use this package, add clustering_google_maps as a dependency in your pubspec.yaml file.

Use my fork

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.

Getting Started

DB TECHNIQUE

MEMORY TECHNIQUE

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(...);

Aggregation Setup

Yuo can customize color, range count and zoom limit of aggregation. See this class: AggregationSetup.

About

A Flutter package that recreate clustering technique in a Google Maps widget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 88.2%
  • Ruby 8.8%
  • Swift 1.6%
  • Kotlin 1.3%
  • Objective-C 0.1%