Skip to content Skip to sidebar Skip to footer

Google Map Marker Click, Display A Modal

Hi i need show the bootstrap modal on clicking the marker, the code is here: map

Solution 1:

I´ve forked your code here: http://www.bootply.com/NoflZLtYtI

I´ve added the following code:

google.maps.event.addListener(marker_1, 'click', function() {
    $('#myModal').modal('show');
});

Suscribe click event on "marker_1", and in the callback, open modal window!

Hope that helps!

Post a Comment for "Google Map Marker Click, Display A Modal"