How does the "Return to last result" button (center of pan control on
the large map control) determine it's last result? I have a map that
I'm using to show markers of search results. The map is initialized,
set to zoom level 14, markers are added, and then I center and zoom to
get as close as possible to the markers. I catch the marker click
event and zoom in to level 2 with that marker as the center point.
However, when I click "return to last result," it zooms back out to the
far zoom (level 14) instead of the zoom that just encompasses the
search results.
If I try to initilaize the map, load the markers, and then set the
zoom, it doesn't work. It seems to need an initial zoom level before
you can add markers.
I'm very new to google maps, so I would appreciate it if someone could
help straighten me out.
Thanks.