Wasn't it Esa who wrote:
>

>
>On Oct 20, 12:14 pm, Mike Williams <[EMAIL PROTECTED]> wrote:
>> Wasn't it ramasaig who wrote:
>>
>> You could add a "reset map" button outside the map. Actually, more
>> people are likely to find it there than in the middle of the
>> GLargeMapControl()
>>
>
>I agree, but why not trigger the same method that the middle button
>does.
>
> <form action="#">
>    <input type="button" value="Reset map"
>onclick="map.returnToSavedPosition()" />
> </form>

It depends whether you're making map.clearOverlays() calls on the page, 
which you might do if you're doing your own overlay management with help 
from a server. map.clearOverlays() resets the saved position 
information. Also, if you fit the zoom to the markers with something 
like map.setZoom(map.getBoundsZoomLevel(bounds)) you need to remember to 
save the adjusted position.

Using map.setCenter() avoids any possible confusion from those or any 
other possible considerations.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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