I have a very simple map, using the default user interface and a single marker with a click listener. The listener callback pops up an alert when the user clicks on the marker.
If I resize the window to the point where the default controls at the top turn into their 'minimized' versions, the listener callback is no longer invoked the next time I click on it. Instead, I see JavaScript errors in the error consoles for Safari (3.2.3), Firefox (3.5.2), and Opera (9,64) on Mac OSX Tiger 10.4.11. Safari's error console just unhelpfully says "Undefined value". Firefox says: Error: b.$e is undefined Source File: http://maps.gstatic.com/intl/en_us/mapfiles/159e/maps2.api/main.js Line: 174 and Firebug shows a long stack of Google Maps API code, with my own code nowhere to be seen. Opera shows something equally obscure. My page is currently installed at http://ronnewman.info/gmap2bug/test.html , but I'm not sure how long it will stay there, since it is on the server of the Harvard Summer School whose term ends this week. (I also uploaded it to the Files area of this group as "test.html (4)", but someone deleted my file as soon as I finished uploading it. I don't understand why.) Either of these things make the bug go away: - adding controls manually instead of calling map.setUIToDefault (); - calling GEvent.addListener(marker, "click", ...) BEFORE calling map.addOverlay(marker), instead of after Any help would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
