How to do marker/annotation clustering?

239 Views Asked by At

I've looked in a lot of places to find how to do pin clustering in Xamarin.Forms.Maps but most solutions seems deprecated or there might be better ones since then.

I know I'll have to create a custom renderer, but since most solutions involved the Xamarin.Forms.GoogleMaps nuget instead of the Xamarin.Forms.Maps and/or using 3rd party libraries, I prefer to ask the community if anyone know or could redirect me to what should I put into my custom renderer ?

I have looked at the Google Maps SDK way, the iOS MapKit way, but I have no idea how to implement it in the C# way. I'm pretty much a beginner with custom renderers and especially Android and iOS code in Xamarin.Forms.

My map, pins and everything else work fine, so I should be able to implement your solutions pretty quickly and give you feedback pretty fast.

Thank you for your help.

1

There are 1 best solutions below

2
On

To use this feauture, you can try Xamarin.Forms.GoogleMaps.

It brings support for clustering for library Xamarin.Forms.GoogleMaps, you can follow the Usage of this library and try this sample first : https://github.com/mierzynskim/Xamarin.Forms.GoogleMaps.Clustering/tree/master/Sample