It's a scoping problem. Your os_map variable is defined inside your Initialize function. Define the os_map outside of the Intialize function - you can still assign the initial value inside.
Chad Killingsworth On Jun 16, 10:34 am, Adrian <[email protected]> wrote: > Wondering how to go about toggling my groundoverlay with a button. > This is the page that I have working with a groundoverlay > > http://www.brad.ac.uk/acad/archenvi/research/hgrl/otley_transects.php > > here is my code > > http://www.brad.ac.uk/acad/archenvi/research/hgrl/otley_transects.txt > > that I have tried > > cheers -- 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.
