On Apr 25, 2:24 pm, CSharp <[email protected]> wrote:
> Hmmm, I'm not seeing any Javascript error in Firefox using FireBug.  

What version of Firefox are you running?

> Here's
> the code from the map.js that should be binding the map bounds:
>
>  MapObject.prototype.SetMapBounds = function()
> { var me = this;
>   var currentMapBounds = null; //Creates a new map bounds every time the
> route/pattern is displayed or removed from map
>
>  $(me.m_routePatternsArray).each(function()
>  { if(this.IsShowing)
>     { if(currentMapBounds)
>           currentMapBounds.union(this.MapBounds);
>       else
>           currentMapBounds = this.MapBounds;
>      }
>    });
>
>   if(currentMapBounds)
>       me.m_map.fitBounds(currentMapBounds); //Fit the map bounds of the
> markers into the map canvas
>
> }
>
> So, from that code, it will do a fitBounds only if the bounds are
> available.  Otherwise, the fitBounds is not executed.  Is there a method to
> clear out the mapBounds for the map?

-- 
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 [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-js-api-v3?hl=en.

Reply via email to