I initiate clusters:
var mc = new MarkerClusterer(map, markers);
Than I drag the map, listen to this event and call map.getBounds()
function. In this case I expect to see the bounds of the visible area of
the map, but I get a bigger bounds instead, that is not correct.
These problems is causes by getExtendedBounds, when it calls
bounds.extend() function. It does not affect the view of the map, but
affects it's bounds:
MarkerClusterer.prototype.getExtendedBounds = function(bounds) {
...
// Extend the bounds to contain the new bounds.
bounds.extend(ne);
bounds.extend(sw);
};
Rev r84, Firefox 3.6
Original issue reported on code.google.com by Ekaterin...@gmail.com on 16 Mar 2010 at 3:07
Original issue reported on code.google.com by
Ekaterin...@gmail.com
on 16 Mar 2010 at 3:07