waqasriaz / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Clusters affect map's bounds. #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by daniel...@google.com on 17 Mar 2010 at 5:59

GoogleCodeExporter commented 8 years ago

Original comment by lu...@google.com on 17 Mar 2010 at 7:21