Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
return to last result? how to set state?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
efindley  
View profile  
 More options Oct 20 2005, 10:36 am
From: "efindley" <elfind...@gmail.com>
Date: Thu, 20 Oct 2005 07:36:24 -0700
Local: Thurs, Oct 20 2005 10:36 am
Subject: return to last result? how to set state?
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Oct 20 2005, 11:53 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Thu, 20 Oct 2005 16:53:24 +0100
Local: Thurs, Oct 20 2005 11:53 am
Subject: return to last result? how to set state?
The "last result" state is saved when you perform
        map.saveMapState()
or
        map.clearOverlays()

[I suppose the clearOverlays() makes sense for Google Local, because it
clears the overlays when the user performs a new query.]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »