On Jan 19, 11:10 am, Gary <[email protected]> wrote:
> Still not having any joy trying to un-nest that function.

Find the first line you want to move, which contains the word
"function", its name and the opening brace {. Find the corresponding
closing brace }. Move those lines and everything between them outside
any other function.

Problems can arise when you mismatch the opening { and what you take
to be the closing }. If you leave a closing brace behind, or take too
many, the code-blocks they define are upset.

I think I would recommend not nesting any functions at all. Nesting
functions is a specialised business there is usually no need for, and
it causes more problems than it solves. If you de-nest all your
functions, starting with createMarker, you will probably find it
easier to get it right.

Andrew
-- 
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.


Reply via email to