thoughtbot / TBAnnotationClustering

Example App: How To Efficiently Display Large Amounts of Data on iOS Maps
http://robots.thoughtbot.com/how-to-handle-large-amounts-of-data-on-maps/
MIT License
728 stars 125 forks source link

Facing issues in customizing library #7

Open ZoebHusainSheikh opened 9 years ago

ZoebHusainSheikh commented 9 years ago

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

}

praveenkumar1599 commented 7 years ago

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

ZoebHusainSheikh commented 7 years ago

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