capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.
https://capacitor-community.github.io/google-maps/
MIT License
153 stars 64 forks source link

Marker Clusterer Marker Customization #199

Open amillwood opened 2 years ago

amillwood commented 2 years ago

Is your feature request related to a problem? Please describe. Enhancement request: Allow for cluster marker customization

Does this feature exist in the Google Maps SDK for android and iOS? Please link the documentation for this feature. Google Maps Marker Clustering

Describe the solution you'd like Either enableClustering method to accept an optional parameter for a custom renderer, or a setClustererRenderer method in which parameters can be passed to customize the cluster marker

sc-atompower commented 11 months ago

are you able to cluster at all with this library?

amillwood commented 11 months ago

@sc-atompower It's been a while since I tried out this library. I ended up reverting back to using google maps with @googlemaps/markerclusetererplus because my use case required custom icons for the cluster markers. From what I remember, I was able to enable marker clustering with this package; I was just unable to customize the icon. I believe it defaulted to the icons shown here.

I looked at the source code, and I don't think it would be a huge effort to implement this change. I just haven't made the time to work on it and submit a PR.