On 22 December 2011 21:07, Andrew Leach <andrew.leac...@gmail.com> wrote: > > Javascript on buttons runs in global scope. Your "circle" variable is > not valid in global scope; it's local to the function initialize(). > You should get an error indicating that "circle" is not defined (or > some such, it varies between browsers).
Actually, your variable "map" isn't global either, so this will fail for two reasons: onclick="circle.setMap(map)" -- 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.