On Feb 25, 5:05 pm, "[email protected]" <[email protected]>
wrote:
> On Feb 25, 4:04 pm, estherM <[email protected]> wrote:
>
> > 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 pagehttp://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?
>
> I took your working version:http://www.esthermstrom.com/maps/cluster.html
>
> Copied the createMarker function 
> from:http://www.geocodezip.com/v3_markers_infowindows.html
>
> Made a couple of minor edits (so it didn't need all the custom icon
> stuff), added "return marker" at the end, replaced your new
> google.maps.Marker call with it, and the clustering works.
>
> I am not able to post it right now, but I will when I get a chance.

Also, FYI, you are using v3 of the Google Maps API, this is the v2
group.  In the future, questions on v3 should go to that group:
http://groups.google.com/group/google-maps-js-api-v3


   -- Larry


> - Show quoted text -

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