Google Maps close event (feature parameter)

My web application uses the following popup plugin to display the contents of a profile in a popup window on the screen:
http://vast-eng.imtqy.com/jquery-popup-overlay/

My problem is with the Google Map-marker info window, which I use in the popup.
When I try to close the infowindow, the popup also disappears.
This is not true! I do not immediately understand why this is done.
If I do not find a solution, I can disable or hide X, but I do not want to do this.

The "where" section in the following link shows you the problem:
http://www.zwoop.be/dev/#list/bars/1

Edit The event parameter returns "undefined" for the following event listener:

google.maps.event.addListener(self.marker.infowindow, "closeclick", function(e)
    {
        console.log(e); 
    });

thank

enter image description here

Edit2 Here is a brief fiddle that illustrates the problem:
http://jsfiddle.net/462HF/

+3
source share
1 answer

The blur function in the popup plugin is called when you press the “X” in infoWindow on the google map, so the popup closes. The following is the code in the jquery.popupoverlay.js file:

if (options.blur) {
            blurhandler = function (e) {
                if (!$(e.target).parents().andSelf().is('#' + el.id)) {
                    methods.hide(el);
                }
            };
        }

"X" is the image, and it is parents()returned only in the InfoWindow div, but not in the pop-up div. Therefore, it calls methods.hide(el)and closes the popup.

, , , . img:

if (options.blur) {
            blurhandler = function (e) {
                if (!$(e.target).parents().andSelf().is('#' + el.id) ) {
                    if(!($(e.target).attr('src') === 'http://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png'))
                        methods.hide(el);
                }
            };
        }
+1

All Articles