danyhiol / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

MarkerClusterer: option zoomOnClick does not work #206

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Around line 69 in markerclusterer.js (SVN revision 1260) we can see this line:

  this.zoomOnClick_ = options['zoomOnClick'] || true;

But that *always* evaluate to true (true||true==true; false||true==true), so it 
is always active even if you pass {zoomOnClick: false} to the options.

Dirty fix: change that line with these ones:

  this.zoomOnClick_ = true;
  if (typeof options['zoomOnClick'] != 'undefined') {
    this.zoomOnClick_ = options['zoomOnClick'];
  }

Thanks,

Original issue reported on code.google.com by cespe...@gmail.com on 30 Aug 2010 at 11:42

GoogleCodeExporter commented 8 years ago
Make sure you have the latest version of the source code - 
http://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/mark
erclusterer/src/markerclusterer.js this has been fixed for a while now.

Original comment by lu...@google.com on 30 Aug 2010 at 12:54