Thank you for MarkerCluster to the Google v3 Utilities.
I do not want to draw all of my markers right away, and they are not
passed into the constructor and so, should not be drawn. However, the
bounds_changed event seems to be fired immediately when the map gets
loaded, so the markers get drawn anyway.
Could we perhaps register this event after the map has loaded?
<code>
google.maps.event.addListener(this.map_, 'bounds_changed',
function() {
that.redraw();
});
// Finally, add the markers
if (opt_markers && opt_markers.length) {
this.addMarkers(opt_markers, false);
}
</code>
Currently Im creating the MarkerCluster then adding the markers with
#addMarkers(markers, true). They are drawn on stage anyway because
the bounds_change is triggered which #redraw's the markers.
Let me know what you think!
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.