efremidze / Cluster

Easy Map Annotation Clustering 📍
MIT License
1.28k stars 121 forks source link

Fix crash on iOS 10 if zoomScale is NaN #73

Closed joaomvfsantos closed 6 years ago

joaomvfsantos commented 6 years ago

On iOS 10 zoomScale can be NaN (for example, when calling reload(mapView:) when no annotations are yet added, or before the map has been initialised completely). This leads to a crash on the division. Since there is already a check for infinity I also added a check for NaN.

efremidze commented 6 years ago

Thanks!!!!