After you create a marker, add this code to your setup:
GEvent.addListener(marker, \"infowindowclose\", function() {
map.setCenter(mapbounds.getCenter(), map.getBoundsZoomLevel
(mapbounds))
});
map is obviously the map, and mabbounds is defined thus:
var mapbounds = new GLatLngBounds;
Works perfectly for me.
Shane
On May 17, 9:57 pm, tasselhof <[email protected]> wrote:
> Hi, thanks for replies
> my map is onhttp://adresar.bohyne.net- here I need to pan back after
> displaying info window
>
> but dunno how helpful the link will be because it in Czech (and also
> some variables)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---