I have implemented Google Maps successfully in my App. I have to implement Marker Clustering for Xamarin Android.
The link here gives a good explanation regarding how to implement but i am not able to understand how to refer the package.
I got few source files but it is not helping as i am not aware how to refer the jar files. The documents i got is related to Java but not C#. Here are the few links:
https://github.com/googlemaps/android-maps-utils https://forums.xamarin.com/discussion/13569/google-maps-android-api-utility-library-support/p2?
You want to use the
Xamarin.Android
Binding project that includes theandroid-maps-utils.aar
file.Note: I have forked an older Github repo that included a binding project and example and updated it to the latest version of
android-maps-utils.aar
(v0.4.3
as of this post).Just clone that repo and copy the entire
GoogleMapsUtility
project into yourXamarin.Android
solution and add that to your solution (via Add Existing Project).Then you can create a Google Map like you would normally, i.e.:
Then you can add your Map markers to the
ClusterManager
and let it manage the clustering:I modified the original example to create 20 markers in a log. spiral pattern to test the cluster at various zoom levels: