On Feb 26, 7:55 am, "[email protected]" <[email protected]>
wrote:
> On Feb 26, 7:47 am, Ralph Ames <[email protected]> wrote:
>
> > There is an error in the script that needs to be fixed first
>
> > This
> > map.centerAndZoomOnBounds(bounds);
>
> > should be this
> > map.setCenter(bounds.getCenter());
>
> or more likely this (if you want it to both center on and zoom to show
> the bounds):
> map.setCenter(bounds.getCenter­(),map.getBoundsZoomLevel(boun­ds));

Some observations:
1. you have 3 sidebars on you page but you only set up 2 arrays.
var sidebar_html = ["",""];
(so sidebars is 2)

2. sidebar_html[Math.floor(i/num_markers)] += side_html;
should probably be:
sidebar_html[Math.floor(i/sidebars)] += side_html;
 (if you want the value to be different from 0)

  -- Larry

>
>   -- Larry
>
>
>
>
>
> > Ralph- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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