On Feb 9, 12:47 pm, jey jey <[email protected]> wrote:

> Can we use the "Return to last Result", the centered control  between
> Pan up , Pan right, Pan Bottom, Pan Left. in the map control named
> GLargeMapControl. is It seems to be work here or not.
>
> Do you have any idea that which function is used there?


map.savePosition() saves the position

map.returnToSavedPosition() recalls the position

It is a good idea to trigger returnToSavedPosition() by
'infowindowclose' event. I been using it often. I quess this is the
first one:
http://esa.ilmari.googlepages.com/hellocolorswitch.htm

What if the user wants to see behind the info window. That is why
'closeclick' event of GInfoWindow might be better alternative.

The first setCenter saves the position. That is often forgotten by
those who are using just any initial setCenter() like (0,0) and a
function that setCenters the map by marker bounds. savePosition()
should also be triggered by that function.


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