On Apr 7, 9:16 am, Tony <[email protected]> wrote: > I'm not too sure if this is a Google Maps problem specifically,
It isn't. http://www.google.com/search?q=window.open+popup+blocker -- Larry > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
