twotoasters / clusterkraf

A clustering library for the Google Maps Android API v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnCameraChangeListener available outside the library

Mephistofeles opened this issue · comments

I need to set OnCameraChangeListener on map, which is currently impossible without changing the library internals.
You should make it available to set a custom listener in Options.

I like this idea. Feel free to implement this on a branch and submit a pull request. I'm scheduled to work on another project for a while, otherwise I would go ahead and do it. It should be fairly simple to add an OnCameraChangeListener to the Options object, and add a call back to it from Clusterkraf's internal OnCameraChangeListener

I am also in a need to have my own onCameraChange listener. I think, it is a limitation of the Maps library itself, to not allow for multiple event listeners.

@carltonwhitehead: please, let me know when you add this to the Master. For the time being, I'd probably extend the MapFragment, proxyfying its Map object, to allow for multiple event listeners.

I ran into this limitation as well, yesterday, so I will have a look at adding this listener as described @carltonwhitehead.