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 9236361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:16:25+00:00 2026-06-18T07:16:25+00:00

I have a Info Bubble in my Cluster Map. Currently I have my markers

  • 0

I have a Info Bubble in my Cluster Map. Currently I have my markers showing an info bubble when you click or hover over them. I cannot get my clusters to have the same?

How to I show a info bubble over my clusters when you hover or click on a cluster?

Here is a link to my file

<html>    
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://blakeloizides.co.za/marker/js/jquery-1.6.1.min.js"></script>        
<script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript" src="http://blakeloizides.co.za/marker/js/gmap3.js"></script> 
<script type="text/javascript" src="http://blakeloizides.co.za/marker/js/mcdo.js"></script> 
<style>
  #container{
    position:relative;
    height:700px;
  }
  #googleMap{
    border: 1px dashed #C0C0C0;
    width: 75%;
    height: 700px;
  }

  /* cluster */
  .cluster{
    color: #FFFFFF;
    text-align:center;
    font-family: Verdana;
    font-size:14px;
    font-weight:bold;
    text-shadow: 0 0 2px #000;
    -moz-text-shadow: 0 0 2px #000;
    -webkit-text-shadow: 0 0 2px #000;
  }
  .cluster-1{
    background: url(images/card-cluster.png) no-repeat;
    line-height:64px;
    width: 64px;
    height: 40px;
  }
  .cluster-2{
    background: url(images/house.png) no-repeat;
    line-height:53px;
    width: 60px;
    height: 48px;
  }
  .cluster-3{
    background: url(images/headquarters.png) no-repeat;
    line-height:66px;
    width: 70px;
    height: 56px;
  }

  /* infobulle */
  .infobulle{
    overflow: hidden; 
    cursor: default; 
    clear: both; 
    position: relative; 
    height: 34px; 
    padding: 0pt; 
    background-color: rgb(57, 57, 57);
    border-radius: 4px 4px; 
    -moz-border-radius: 4px 4px;
    -webkit-border-radius: 4px 4px;
    border: 1px solid #2C2C2C;
  }
  .infobulle .bg{
    font-size:1px;
    height:16px;
    border:0px;
    width:100%;
    padding: 0px;
    margin:0px;
    background-color: #5E5E5E;
  }
  .infobulle .text{
    color:#FFFFFF;
    font-family: Verdana;
    font-size:11px;
    font-weight:bold;
    line-height:25px;
    padding:4px 20px;
    text-shadow:0 -1px 0 #000000;
    white-space: nowrap;
    margin-top: -17px;
  }
  .infobulle.drive .text{
    background: url(images/drive.png) no-repeat 2px center;
    padding:4px 20px 4px 36px;
  }
  .arrow{
    position: absolute; 
    left: 45px; 
    height: 0pt; 
    width: 0pt; 
    margin-left: 0pt; 
    border-width: 10px 10px 0pt 0pt; 
    border-color: #2C2C2C transparent transparent; 
    border-style: solid;
  }

</style>

<script type="text/javascript">

  $(function(){

    $("#googleMap").gmap3({
      map:{
        options: {
          center:[46.578498,2.457275],
          zoom: 7,
          mapTypeId: google.maps.MapTypeId.TERRAIN
        }
      },
      marker: {
        values: macDoList,
        cluster:{
          radius:100,
          // This style will be used for clusters with more than 0 markers
          0: {
            content: "<div class='cluster cluster-1'>CLUSTER_COUNT</div>",
            width: 53,
            height: 52
          },
          // This style will be used for clusters with more than 20 markers
          20: {
            content: "<div class='cluster cluster-2'>CLUSTER_COUNT</div>",
            width: 56,
            height: 55
          },
          // This style will be used for clusters with more than 50 markers
          50: {
            content: "<div class='cluster cluster-3'>CLUSTER_COUNT</div> + <div>hello</div>",
            width: 66,
            height: 65
          }
        },
        options: {
          icon: new google.maps.MarkerImage("images/card-marker.png")
        },
        events:{
            mouseover: function(marker, event, context){
$(this).gmap3(
              {clear:"overlay"},
              {
              overlay:{
              latLng: marker.getPosition(),
              options:{
              content:  "<div class='infobulle"+(context.data.drive ? " drive" : "")+"'>" +
                  "<div class='bg'></div>" +
                  "<div class='text'>" + context.data.city + " (" + context.data.zip + ")</div>" +
                  "</div>" +
                  "<div class='arrow'></div>",
              offset: {
              x:-46,
              y:-73
              }
              }
              }
              });},

          mousedown: function(marker, event, context){
            $(this).gmap3(
              {clear:"overlay"},
              {
              overlay:{
                latLng: marker.getPosition(),
                options:{
                  content:  "<div class='infobulle"+(context.data.drive ? " drive" : "")+"'>" +
                              "<div class='bg'></div>" +
                              "<div class='text'>" + context.data.city + " (" + context.data.zip + ")</div>" +
                            "</div>" +
                            "<div class='arrow'></div>",
                  offset: {
                    x:-100,
                    y:-73
                  }
                }
              }
            });
          },
          mouseout: function(){
            $(this).gmap3({clear:"overlay"});
          }
        }
      }
    });

  });
</script>  
</head>

<body>
<div id="googleMap"></div>
</body>
</html>

I have been trying the following:

mouseover: function(marker, event, context){
$(this).gmap3(
              {clear:"overlay"},
              {
              overlay:{
              latLng: marker.getPosition(),
              options:{
              content:  "<div class='infobulle"+(context.data.drive ? " drive" : "")+"'>" +
                  "<div class='bg'></div>" +
                  "<div class='text'>" + context.data.city + " (" + context.data.zip + ")</div>" +
                  "</div>" +
                  "<div class='arrow'></div>",
              offset: {
              x:-46,
              y:-73
              }
              }
              }
              });},
  • 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-18T07:16:27+00:00Added an answer on June 18, 2026 at 7:16 am

    A cluster is not a marker, it’s a group of markers.

    The properties of the cluster you may access via the first argument of the callback.
    The first argument consist of two members, main and shadow .

    Use the method getPosition() of the main-member to retrieve the position of the cluster.

    The markers for the cluster are stored as an array inside the data.markers-member of the 3rd argument, you may collect some informations from this array to show them inside the infobubble.

    example:(add this to the events-member of the cluster)

    mouseover: function(cluster, event, context){
                  $(this).gmap3(
                      {clear:"overlay"},
                      {
                        overlay:{
                            latLng: cluster.main.getPosition(),
                            options:{
                                      content:  "<div class='infobulle'>" +
                                                "<div class='bg'></div>" +
                                                "<div class='text'>there are " +
                                                 context.data.markers.length +
                                                " markers in this cluster</div>" +
                                                "</div><div class='arrow'></div>",
                                      offset: {
                                                x:-46,
                                                y:-73
                                              }
                                    }
                                }
                      });
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 4 info, tat i get frm database. I want to view all
happy holidays! so, Im grappling with coredata!, now I have info showing in a
I have three info panels (divs with IDs of panel-one , panel-two and panel-three
you have some info on an item and you got a list of comment
does any of you have any info/idea on how can I test my application
I've got my autocomplete plugin working perfectly... except I have certain info that I
I've inherited development for a website on vps hosting, and have login info for
Background info: I have a windows application (in c#) that handles a custom file
I have the following info being returned when I run tcprobe -i on a
I have two tables: info: ID, fee_id and fee: ID, amount and a reference

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.