aytee / 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

Documentation shows setMap but Closure doesn't expose it #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get a closure error on trying to call setMap.  I looked at your closure 
mappings and noticed it's not defined yet the reference documentation shows 
this as an available method.

I was trying to offer the ability to turn Clustering On or Off.  I was hoping 
that by calling setMap(null) after I've removed all markers that it would 
dispose and remove itself from the current listeners against google.  Maybe 
theres an easier way?  

Just wanted to at least document that the closure was missing.  Great job, Love 
the work you've done!

Original issue reported on code.google.com by redcells...@gmail.com on 13 Jun 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Your question relates to MarkerClusterer, I believe.

I believe that the method is available even after compilation because setMap 
(and getMap) are inherited functions from OverlayView.

You can't get the behavior you want because MarkerClusterer does not support 
the onRemove method as it should.

Good news is that I am working on a new version of MarkerClusterer which fixes 
this problem.

Original comment by garylitt...@gmail.com on 8 Jul 2011 at 4:26