Google Maps API Projects
Home · Demo Maps · Projects · Discussion Forums · Downloads · Developer Available · Google Search · Site SearchSeptember 07 2010 09:05
Navigation
Home
Demo Maps
Projects
Discussion Forums
Downloads
Useful Links
Developer Available
Contact Me
Privacy Policy
Search
Google Search
Site Search
Paypal Donate

Donations encourage developers such as myself to provide support for and develop new versions of our code.

View Thread
Google Maps API Projects | ClusterMarker | General discussion
Author addListener click on markerclusterer
pjoter
Member

Posts: 1
Joined: 15.05.10
Posted on 15-05-2010 17:04
Hi, iam trying to get addlistener on click for markerclusterer. I need
to get markers inside this cluster and call ajax. Any tips would be
much apricciated.

I tried this but it doesnt work :
for (var i = 0; i < data.count; ++i) {
var latlng = new GLatLng(data.photos[i].latitude,
data.photos[i].longitude);
marker = createMarker(data.photos[i].latitude,
data.photos[i].longitude, icon, data.photos[i].picture,
data.photos[i].address, map, data.photos[i].name);
markers.push(marker);
}
var markerCluster = new MarkerClusterer(map, markers);

GEvent.addListener(markerCluster, "clusterclick",
function() {
alert("are you here ?"smiley;
});


Author RE: addListener click on markerclusterer
martin
Super Administrator

Posts: 224
Location: Norfolk, UK.
Joined: 24.07.08
Posted on 16-05-2010 05:43
Hi.

It look as though you're using MarkerClusterer and NOT my ClusterMarker.

I see you've posted for help on the Google Maps API Group and think you'd be best to await a reply there - i'm not sure if there is any official support for MarkerClusterer?

Martin.
http://martinpearman.co.uk
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online

Registered Members: 237
Newest Member: Xavi
Google Maps API Projects © Martin Pearman 2010