On Jun 3, 1:50 pm, QTrimble <[email protected]> wrote: > Please I am looking for some guidance. I am unable to implement the > click event for GPolygon. > > https://phpdb.aset.psu.edu/phpqrt100/lesson5.html > > Any help would be greatly appreciated.
Did you investigate your javascript errors? In FF: Error: map is not defined Source File: https://phpdb.aset.psu.edu/phpqrt100/lesson5.html Line: 14 (your map variable is local to your initialize function, and is not available to the click handler function) outside of all functions declare: var map; then inside the initialize function remove the var (that makes it local); function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas"), {draggableCursor: 'crosshair'}); By the way, no map in IE6... IE6: Line: 29 Char: 4 Error: Object expected -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
