I'm not too sure if this is a Google Maps problem specifically, but I
have a KML file which loads multiple polygons onto a map.

        var layer = new google.maps.KmlLayer('http://some/path/',
{ clickable: true, suppressInfoWindows: true, preserveViewport:
true });

        google.maps.event.addListener(layer, 'click', function
(kmlMouseEvent) {
            window.open('http://www.google.ca', 'Stuff');
        });

However, when I go to click on any of the polygons contained in the
KML, the callback runs and executes window.open(). But then in
FireFox, IE and Chrome, the new window gets blocked as it thinks it's
a popup.

Does this happen because the user's browser doesn't detect that the
popup is "user initiated"?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to