Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The count of the annotations in cluster annotation gets messed up #86

Open
4 tasks done
NSCabezon opened this issue Sep 14, 2018 · 19 comments
Open
4 tasks done

The count of the annotations in cluster annotation gets messed up #86

NSCabezon opened this issue Sep 14, 2018 · 19 comments
Labels

Comments

@NSCabezon
Copy link

New Issue Checklist

Issue Description

The clustering count gets messed up, the numbers change from one cluster to another but they sometimes don't get updated...

img_4683
img_4685
img_4620

Environment

  • iOS Version: iOS 12GM (but I've had this problem for a while, it's not a GM related bug)
  • Device(s): iPhone X
@NSCabezon
Copy link
Author

It also happens on iOS 12 Release version

@enkh-amgalan
Copy link

I have same issues

@emiliogambone
Copy link

Same problem, i think they just don't get updated

@emiliogambone
Copy link

If I understand your problem, you can substitute the clustering count in the views with the value of annotation.annotations.count. But the problem persist

@efremidze
Copy link
Owner

Thanks, I'll take a look today.

@efremidze
Copy link
Owner

Can you provide your configuration?

@NSCabezon
Copy link
Author

Here you go:

		clusterManager.cellSize = 50
		clusterManager.maxZoomLevel = 17
		clusterManager.minCountForClustering = 3
		
		clusterManager.clusterPosition = .nearCenter

@efremidze
Copy link
Owner

Check out the latest version (2.2.9). Let me know if it fixes the bug.

@NSCabezon
Copy link
Author

Still having the issue :(

@efremidze
Copy link
Owner

I'll try to reproduce. Do you have any reproduction steps?

@NSCabezon
Copy link
Author

It reproduces always, the number doesn't show the real annotation count... idk

@efremidze
Copy link
Owner

efremidze commented Oct 2, 2018

I'm trying to reproduce using the example. Do you see it happening in the example? Does it only happen when combining different types of annotations?

@NSCabezon
Copy link
Author

NSCabezon commented Oct 2, 2018

Cluster and not clustered... so I guess not... Example is working fine

@efremidze
Copy link
Owner

efremidze commented Oct 2, 2018

It appears to be an issue caused by annotations with images.

@efremidze
Copy link
Owner

Can you check that the annotation.annotations.count is correct for the ClusterAnnotationView? It might be related to reusing the MKAnnotationView.

@efremidze efremidze added the bug label Oct 18, 2018
@efremidze
Copy link
Owner

Released 2.3.0. Let me know if you still see the bug.

@efremidze
Copy link
Owner

efremidze commented Feb 28, 2019

After investigating, I found out the annotations are getting transposed when shouldDistributeAnnotationsOnSameCoordinate is set to true. I'm currently looking for a solution.

@efremidze efremidze mentioned this issue Mar 7, 2019
3 tasks
@efremidze
Copy link
Owner

I have addressed this issue in #107. Let me know if this is still an issue.

@sharedcare
Copy link

I still have this issue, I set minCountForClustering to 5. And the count of annotation does not show the correct number. When I select a clusterAnnotationView on the map, the following code is not executed. if let cluster = view.annotation as? ClusterAnnotation { \\ my code here }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants