DEPRECATED-mapbox-ios-sdk icon indicating copy to clipboard operation
DEPRECATED-mapbox-ios-sdk copied to clipboard

Clustering broken at <0, 0>

Open macawm opened this issue 12 years ago • 2 comments

It seems to me that clustering doesn't work for several annotations at <0, 0>. It's not my data so I just have to deal with it. I have a slight idea why this might be: edge case. From what I can tell it looks like the RMQuadTree's boundingBox width is always way out of scale when all the visible annotations are at the same location.

Also, big congrats on releasing 1.0.0. I really appreciate all the hard work you put into this SDK.

macawm avatar Mar 19 '13 22:03 macawm

Thanks for the congrats.

I know that <0, 0> is used in a couple places in the code to determine an unset coordinate. Are you specifically needing coordinates at <0, 0> or did you just notice this randomly?

incanus avatar Mar 22 '13 19:03 incanus

I have a bunch of data at <0,0> that I noticed did not cluster. It's probably fair to say that 99.9% of data that is located at <0,0> is garbage for obviously reasons, but I just wanted the bug to be recorded. It is not critical for me. I would be curious to determine if this happens again where all the annotations have the exact same location, not <0,0>.

macawm avatar Mar 22 '13 20:03 macawm