JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.82k stars 439 forks source link

patch(optional_options): Allowing MarkerClusterer options to be optional #3016

Closed addy closed 2 years ago

addy commented 2 years ago

Please explain PR reason

Google's js-markerclusterer lib allows for completely optional arguments during construction. This will default to the SuperClusterAlgorithm.

https://github.com/googlemaps/js-markerclusterer/blob/69d026ebfca8e3732e3088e234a450409fd63a11/src/markerclusterer.ts#L77

JustFly1984 commented 2 years ago

this will break the code, due to impossibility to spread undefined options down the code flow.