Try to search your question here, if you can't find : Ask Any Question Now ?

Flutter Firebase clustering_google_maps

HomeCategory: stackoverflowFlutter Firebase clustering_google_maps
Avatarwillson asked 4 months ago

The goal is to produce google map markers using clusters. I’m working on implementing this clustering_google_maps 0.0.4 dependency in Flutter using an array of Latitudes and Longitudes. It is challenging to understand the Quick Example and knowing where I should connect the array of latitudes and longitudes?

class _HomeScreenState extends State<HomeScreen> {
  ClusteringHelper clusteringHelper;
  final CameraPosition initialCameraPosition =
      CameraPosition(target: LatLng(0.000000, 0.000000), zoom: 0.0);

  Set<Marker> markers = Set();

  void _onMapCreated(GoogleMapController mapController) async {
    clusteringHelper.database = await AppDatabase.get().getDb();

  updateMarkers(Set<Marker> markers) {
    setState(() {
      this.markers = markers;

  void initState() {

  initClustering() {
    clusteringHelper = ClusteringHelper.forDB(
      dbGeohashColumn: FakePoint.dbGeohash,
      dbLatColumn: FakePoint.dbLat,
      dbLongColumn: FakePoint.dbLong,
      dbTable: FakePoint.tblFakePoints,
      updateMarkers: updateMarkers,

  Widget build(BuildContext context) {
1 Answers
Best Answer
AvatarMannu answered 4 months ago
Your Answer

16 + 11 =

Popular Tags

WP Facebook Auto Publish Powered By :