thoughtbot/TBAnnotationClustering

Facing issues in customizing library

Opened this issue · 2 comments

I need to display 2/more pins as single pin if they are overlapping/touch each other.

This library has some hard coded value (magic number) which we are not sure how they are calculated (nothing has been defined in doc as well).

FYI: Our custom annotation size is 48*48.

Please let us know. We are referring to this method:

float TBCellSizeForZoomScale(MKZoomScale zoomScale)
{
    NSInteger zoomLevel = TBZoomScaleToZoomLevel(zoomScale);

    switch (zoomLevel) {
        case 13:
        case 14:
        case 15:
            return 64;
        case 16:
        case 17:
        case 18:
            return 32;
        case 19:
            return 16;

        default:
            return 88;
    }

editedclusterscreenshot

}

Hi,
I am facing the same issue.
Have you found any fix for the same. If so please help me out

Nope, I used GoogleMap(iOS) SDK in my last project, they have default handling for clustering, also added zip from previous project..may be I have changed something in those files..Good luck

TBCoordinateQuadTree.zip