I tried it with just 'map' without the 'var' and that did not work either :-/ I still get the same error messages for line 47 and permission denied for main.js
On Nov 11, 2:47 pm, Rossko <[email protected]> wrote: > > Larry, I just tried what you said. > > Not quite. You have > var map = null; > function sl_load() { > ... > var map = new GMap2(... > > which creates a global 'map', then creates a local 'map' inside the > function (which goes away when the function is complete). > > You want the function to re-use the global one > var map = null; > function sl_load() { > ... > map = new GMap2(... -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
