LostCore
6/5/2014 - 1:30 PM

Create tooltip in Gmap3

Create tooltip in Gmap3

/**
 * This code can go in a mouseover event
 */

var contentString = "<div class='gmap3-tooltip'>Foo Bar</div>";

jQuery(this).gmap3(
{
    clear:"overlay" //get rid of other overlays
},
{
    overlay:{
        latLng: //coordinates,
        options:{
            content: contentString
        }
    }
});