JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.78k stars 437 forks source link

Adding support for HTML elements for cluster icons #3123

Closed kresojastefan closed 1 year ago

kresojastefan commented 1 year ago

Please explain PR reason

It could be useful to support HTML elements inside ClusterIcon, maybe you want to do clustering by a property and instead of showing number you show property name. For example, you show a marker displaying tree location - when user zooms out you cluster them based on the group (Park 1, Park 2) instead of number of trees. There it would be useful to support html so you are able to create custom wrappers.