On Sep 5, 1:29 pm, Westbound <[EMAIL PROTECTED]> wrote:
> I'm trying to use setCenter(...) in a map, the problem is that i hava
> an "infowindow" (that opens) so i want to center the map in the lower
> part of the map, is it possible? (i want to center the map AND make
> room for the "infowindow").
Almost anything is possible. Just centre the map on a point north of
your marker. It's even possible (although certainly not one line of
code!) to get the API to work out a suitable point for different zoom
levels.
If your map variable is global [can't tell, you didn't give a link]
then you can manoeuvre the map so it's in the right place and type
into the address bar
javascript:prompt("",map.getCenter())
to get selectable text containing the coordinates which you then use
in your code.
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---