Flutter Google Map Clustering

Google Maps Flutter‘s new release v2.9.0 finally supports clustering. Previously we were using Google Maps Cluster Manager, but the clusters were somewhat glitching over moving the map around.

If you’re having an issue with following error, make sure to import a JavaScript library in <head> tag.

packages/google_maps_flutter_web/src/marker_clustering_js_interop.dart 163:10

TypeError: Cannot read properties of undefined (reading ‘MarkerClusterer’)

<script src="https://cdn.jsdelivr.net/npm/@googlemaps/[email protected]/dist/index.umd.min.js"></script>
</head>

Result is very promising!

Other posts that might interest you...

How to start a business

Starting a business in Ontario involves several steps. Here is a general outline of the process: Starting a business can be a complex and challenging

Read More »