We're using circleMarkers to depict clustered locations (our
clustering is done on the server side). We bind popups to the circles
that when opened display information about individiual locations
within the popup.
We use the JQuery UI accordian control to group information about a
particular location together. It looks great, and it keeps our popups
from getting huge.
The trouble is when we set the popup's autoPan to true, the map pans
way too much, much more than is needed to display the popup.
Here is an example:
http://jsfiddle.net/FunkMonkey33/jHwdd/24/
If you run the example, you'll see what I mean. The map really only
needs to pan a few pixels to get the entire popup into view. However,
it winds up panning several hundred pixels, taking the entire popup,
the circleMarker you clicked on, and even the map tiles (if you stay
at zoom level 1) out of your view.
Thanks in advance for your help!
Aaron