That is what I tried to do.
I've tried to adapt the makeMarker function to feed the markerArray
and then pass it to
markerCluster.

I've changed the code, but with with the only result, that my sidebar
is populated (I can open the infowindows at the place whee the markers
should be), but there are no markers on the map. Nor can I use the
MarkerCluster.

The Markercluster is set in the head via
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/
trunk/markerclusterer/src/markerclusterer.js"></script>

Maybe someone can help me to get that work.


 ----------
var markerArray = [];

function makeMarker(options){
var pushPin = new google.maps.Marker({
icon: idleIcon
//,map:map
});
pushPin.setOptions(options);
google.maps.event.addListener(pushPin, "click", function(){
infoWindow.setOptions(options);
infoWindow.open(map, pushPin);
if(this.sidebarButton)this.sidebarButton.button.focus();
});
var idleIcon = pushPin.getIcon();
if(options.sidebarItem){
pushPin.sidebarButton = new SidebarItem(pushPin, options);
pushPin.sidebarButton.addIn("sidebar");
}
markerBounds.extend(options.position);
markerArray.push(pushPin);
return pushPin;
}

google.maps.event.addListener(map, "click", function(){
infoWindow.close();
});

var markerCluster = new MarkerClusterer(map, markerArray);

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

Reply via email to