I swapped it around so the points are plotted and the bounds extended
(bounds.extend(marker);) before the setZoom and setCenter:

plotPoints();
map.setZoom(map.getBoundsZoomLevel(bounds));
map.setCenter(bounds.getCenter());

Still not quite working though (the current long / lat / zoom is hardcoded).



On Wed, Jun 24, 2009 at 12:18 PM, [email protected] <[email protected]
> wrote:

>
> On Jun 23, 7:25 pm, Rogie <[email protected]> wrote:
> > Hi Everyone,
> >
> > Got a little problem coming up in my code:
> http://www.lifestylebakery.com.au/page.asp?parentid=6&action=showreta...
> >
> > Firebug isn't being too helpful - 'a.eb is not a function'.
> >
> > I suspect that the lat lon isn't getting passed through correctly.
> >
> > Can anyone lend a hand?
>
> What do you expect it to do when you do this (center and zoom on an
> empty GLatLngBounds object)?
>        var bounds = new GLatLngBounds();
>        map.setZoom(map.getBoundsZoomLevel(bounds));
>        map.setCenter(bounds.getCenter());
>
>  -- Larry
> >
>

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