Closed IVANKRUPSKI closed 6 years ago
Are you reloading on regionDidChangeAnimated:
?
Yes
Here is the code
func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
clusterManager.reload(mapView, visibleMapRect: mapView.visibleMapRect)
if userIsSelectedPOS {
clusterManager.maxZoomLevel = Constants.clusterMaxZoomLevel
userIsSelectedPOS = false
}
}
Does this happen when ur not using the RetailerClusterAnnotationView
subclass?
Hey!
We have found the solution. Initially we were using style.image, and this strange animation appears only with image. With style.color everything works well.
iOS 11, Cluster v. 2.1.3
We are using png image for cluster pin. This png image is scaled depending on the size of the clusters. So the more places clustered in the cluster, the bigger the scaling factor is. In ios 10 it works well, but in iOS 11 there is a strange expand/ shrinking animation.
Any idea where this animation is coming from and how can we get rid of it?
Below is the code that we are using to scale the image and the gif.