Out of frustration, I actually took the packed MarkerClusterer js file
and ran it through an unpacker so that I could put debugging code in
it. (I saved the unpacked version as a js file and included that in my
script src tag instead of the packed version.) Through a series of
document.write outputs, I found the place where I think things are
breaking down; I just don't know what I need to do to fix it.

MarkerClusterer.prototype.createClusters_ = function () {
        if (!this.ready_) {
                document.write("not ready inside createClusters" );
                return
        }
        var mapBounds = new
google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),
this.map_.getBounds().getNorthEast());
        var bounds = this.getExtendedBounds(mapBounds);
        for (var i = 0, marker; marker = this.markers_[i]; i++) {
                if (!marker.isAdded && this.isMarkerInBounds_(marker, bounds)) {
                        this.addToClosestCluster_(marker)
                }
        }
};

When I load the page http://www.esthermstrom.com/maps/maptest.html, it
displays the "not ready inside createClusters" value. I had initially
had a document.write inside the for loop there, trying to output i
after each iteration, but it just did what it did before - displayed
the map with markers but not clustered. Any ideas? What constitutes
this.ready? How can I make it ready?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to