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.
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.