jessedc / JCTiledScrollView

A set of classes that wrap UIScrollView and CATiledLayer. It aims to simplify displaying large images and PDFs at multiple zoom scales.
MIT License
310 stars 47 forks source link

Group pins #40

Open renanstig opened 6 years ago

renanstig commented 6 years ago

Hi,

I'm using your library for sometime which I have to say it's really great and I'm trying to figure out a way to group the annotations when the user zooms out, the same way Google Map does when you have several annotations in the map and zooms out and then all of them are grouped.

Is it possible to do something like that?

jessedc commented 6 years ago

Regrouping pins at different zoom levels isn't too far of a stretch using a Quadtree data structure for the pins. I wonder whether it would be appropriate to utilise GamePlay Kit's GKQuadtree.

renanstig commented 6 years ago

I've never used that, can it be integrated to your library?

jessedc commented 6 years ago

The pin placement is just a giant for loop it wouldn't be too difficult to extend.