Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7738503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:16:56+00:00 2026-06-01T08:16:56+00:00

I am using the Markercluster plugin for Google Maps API V3. I want to

  • 0

I am using the Markercluster plugin for Google Maps API V3. I want to access the click event when the user clicks on the cluster icon. The closest that I can come to is

JS Code

google.maps.event.addListener(mc, "clusterclick", function (cluster) {
    event.stopPropagation();
});

Problem: event.stopPropagation() only works this way in Chrome and not Firefox or IE. It can only work if it is passed a event object is added as a parameter to the function like so:

$("#div").click(function(event) { 
    event.stopPropagation();
}

However, I dont know the DOM element of the cluster icon created by MarkerClusterer so I cant select it!! What should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:16:57+00:00Added an answer on June 1, 2026 at 8:16 am


    See here: https://developers.google.com/maps/documentation/javascript/events#EventArguments

    google.maps.event.addListener(map, ‘click’, function(event) { placeMarker(event.latLng); });

    The first parameter for the event calback is the event object. In you case it would be:

    google.maps.event.addListener(mc, "clusterclick", function (cluster) {     
        cluster.stopPropagation();     
    });
    

    Since this is a custom event and the programmers didn’t passed the event object as a parameter, your solution would be to implement it yourself:

    Lines 150 and 151 from http://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/markerclustererplus/src/markerclusterer.js?r=362:

    from:

    google.maps.event.trigger(mc, "click", cClusterIcon.cluster_);
    google.maps.event.trigger(mc, "clusterclick", cClusterIcon.cluster_); // deprecated name 
    

    to:

    google.maps.event.trigger(mc, "click", e, cClusterIcon.cluster_);
    google.maps.event.trigger(mc, "clusterclick", e, cClusterIcon.cluster_); // deprecated name 
    

    Note the e as the 3rd parameter. This is the event object from the original event that calls this 2 lines on line 139:

    google.maps.event.addDomListener(this.div_, "click", function (e) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery Google Maps v3 plugin , I want to add the
I am using the MarkerCluster.js to create clustering in my google maps api. The
I am using the MarkerClusterer library for Google Maps API V3 to group nearby
I am currently using markercluster plugin with jquery ui maps. I have two arrays
I'm struggling trying to cluster 50 markers using the markerclusterer v3 with Google maps
I am using the MarkerCluster library for Google Maps v3 and am having a
I just started using the version 3 of the google maps api, and i
google.maps.event.addListener(marker, 'click', function() { lati=51; longi=9; var latiLongi = new google.maps.LatLng(lati,longi); var marker1 =
This is driving me mental. I'm using MarkerCluster with google maps v3, and it
I have a bit of a puzzle on my hands. I'm Using Google Maps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.