Gmaps.js mouseover open infowindow

I am using gmaps.js to display a simple map with some markers, but I want to show info windows with a mouse, I cannot find how to do this. My code:

    map = new GMaps({
    scrollwheel: false,
    div: '#gmap',
    lat: -12,
    lng: -77,
});

map.addMarker({
    lat: -12,
    lng: -77,
    title: 'test',
    infoWindow:{
        content: '<p>HTML Content</p>'
    },
    mouseover: function(e){
        this['infowindow'].open(map, this); 
    }
});

      

+3


source to share


1 answer


            mouseover: function(e){
                this.infoWindow.open(this.map, this);
            }

      



+5


source







All Articles