Need little help to get started
Alex293 opened this issue · comments
Hi I've been using another clustering lib in my project but I'm not satisfied with it. I need little help to get started with yours.
I have a item class with represent items to draw and and itemAnnotation with represent an item on the map. What class/protocol should my items and itemAnnotation extend/implement ? I don't get how to build my mapData.
I finally managed to get what I wanted. Last question, I download my items from a backend each time user move the map in a async way. What strategy would you suggest to update the mapData quadTree ? Is it okay to simply build another tree and then remove all the pins to show the new ones ?
@Alex293 If the new data is meant to completely replace the current map data, building a new quadTree should be fine, if there's an overlap between the two data then you'll need to come up with a strategy for generating a change set of pins to remove, pins to add, and pins that should remain on the map when updating the UI are replacing the map data.
Also, I don't know if you've seen it or not, but there's a blog post on getting started with the library (though the swift 2.0 version) here: https://www.raizlabs.com/dev/2016/08/introducing-bentomap/
Definitely gonna have a look but your answer seems to be what I needed. Thank you