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

  • SEARCH
  • Home
  • 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 6626075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:51:03+00:00 2026-05-25T21:51:03+00:00

I have many map markers with the exact same lat/long cords so no matter

  • 0

I have many map markers with the exact same lat/long cords so no matter how far in I zoom my map still shows the marker cluster and the number of results.

Is there a way to have some onclick or onhover event so that it shows an info box with all of the markers in that cluster in a list? Then clicking a link within that info box opens up that individual marker info box?

I’ve read solutions to change the lat, long by a small amount so that they aren’t the same location. I think that is very messy and not that good anyways if there ends up being multiple markers 10+ anyways at the same locationg. I think it’d be much easier for a user to just click the cluster and bring up the info window with all of those markers in there with links.

Or if someone knows another plugin that does what I am seeking I could work with that too. I just haven’t found much info on it.

  • 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-05-25T21:51:03+00:00Added an answer on May 25, 2026 at 9:51 pm

    There might be a plug in out there to do what you want, but it’s also possible to do without one. I did something like that in one of my projects.

    1. Add event listener to each marker; clicking opens marker list info window
    2. The content of the marker list info window contains onclick attributes that will open the marker info window.

    My code was tucked away into functions, but it was basically just this:

    //1) while creating marker, create click listener that opens the marker list
    google.maps.event.addListener(marker, 'click', function() {
        markerWindow.close();
        markerList.open(map, marker);
    });
    
    //2) store the content required by the marker's info windows
    var markers = [
        [marker1Reference, "The Stadium"],
        [maerker2Reference, "The Supermarket"]
    ];
    
    //3) the function that is called each time a marker is chosen from the marker list
    function openMarkerInfo(markerIndex) {
        markerList.close();
        markerWindow.setContent(markers[markerIndex][1]);
        markerWindow.open(map, markers[markerIndex][0]);
    }
    
    //4) info window for the marker list - the content includes JS onclick events that will open each marker info window
    markerList = new google.maps.InfoWindow({
        content: "Choose:<br><br><div href='' class='markerLink' onclick='openMarkerInfo(0)'>The Stadium</div><br><div href='' class='markerLink' onclick='openMarkerInfo(1)'>My House</div>"
    });
    //5) the marker window that will get set each time a marker is clicked in the list
    markerWindow = new google.maps.InfoWindow();
    

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using MapView and this map have many markers . How to enable
I have the same event listener for many markers in my Javascript. How do
I have made a map with jQuery which is split up in many regions,
I have many different branches/checkouts of the same project code on my development machine.
I have many sites that use the same root category of the Main Site.
I have a table containing multiple addresses, including their Lat/Long coordinates, and I want
I placed succesfully many marker on the my Map Activity in my Android APP.
I want to have a map with duplicate keys. I know there are many
My Google Map (v3) renders two types of markers: An area marker (Your home
In my multi-threaded project(C# 3.5), I have many codes simliar to this: Map map;

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.