How to open Jquery UI dialog box on Google Maps click.
- by Vafello
I have a code like this:
GEvent.addListener(map, "click", clicked);
function clicked(overlay, latlng) {
$('#dialog').show();
};
Both clicked function and show() function works fine on their own but when I want to open dialog box by clicking on the map it does not. Any ideas?