Hi Rossko,

Sure, I don't think that would be a problem either. But, do you have
any suggestions as to how to go about it? How should I make sure it
only happens once? What event should I listen to to make sure I get
the correct values?

- Walter

On 10 okt, 14:25, Rossko <ros...@culzean.clara.co.uk> wrote:
> > Thanks for you reply. I don't think it's about scope. Scope has always
> > puzzled me but as far as I can tell, newBounds is being set in the
> > same scope as newBounds.getNorthEast() is being called.
>
> I think you run into this issue ;
>  http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
> getBounds() doesn't immediately return anything meaningful because of
> the asynchronous nature of the API
>
> > About your final remark: I don't want the map to zoom unexpectedly. I
> > just want the map to load with all markers visible and one infoWindow
> > opened.
>
> The infowindow won't fit into the initial bounds set by the polyline.
> So the API auto-pans the map to fit the whole infowindow in.
> If you recalculate your bounds to fit both the infowindow and all the
> markers, a zoom out may happen.
> If you are only doing it at initialize time, that probably won't be a
> problem.

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

Reply via email to