On Feb 8, 7:23 am, xelawho <[email protected]> wrote:
> > Unfortunately it's difficult to be sure -- your indentation and use of
> > { } is all over the place!
>
> yes, sorry about the messy markup - that's definitely on my To Do
> list.
>
> ... it is in the initialize() function, but I was under the impression
> that anywhere where you're creating a new object (in this case the
> google.maps.LatLngBounds), that has to be in the initialize. Not so?

No.  Anything that uses the google maps api can't use it until it is
loaded and you can't initialize the map until the map div has been
added to the DOM (and has a defined size).

If you want something to be global, you can define the variable in the
global scope and initialize it in the onload function.

A function that is called in the initialize function, doesn't need to
be defined there.

  -- Larry

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

Reply via email to