Hi,

I'm trying to adapt Esa's zoom to bounds with padding function (here):
http://sites.google.com/site/esailmari/showbounds.htm?attredirects=0

to my map here:
http://www.xelawho.com/map/twocolumn7.htm

so far it works OK... the map pans and zooms out, with padding to fit
all the markers, but the problem is when the number of markers (or
bounds area) is reduced, the map does not zoom in.

Replicating the problem is a bit of a process, but basically you can
see it by doing this:

First, type a partial match (ie, "par") into the search box top left.
The map zooms out (good) to show the markers.
Then, type "nor" into the search box. The map shows the markers (good)
but does not zoom in to reflect the new bounds.

In Esa's example if you move the markers in closer to each other the
map zooms automatically, which is what I'm looking for.

I can see (or I think I can see) that the problem is similar to the
one I was having before - moving the function out of initialize and
into the global scope (and so apologies for the repetition). But the
structure of the prototype function is kind of new to me and I'm not
sure how to go about moving and adapting it for what I need.

Any suggestions welcome. Thanks in advance.



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