See here:
http://maps.forum.nu/temp/gm_setShiftedCenter.html
That map has a function to set the center of the map with a shift.
Every time you zoom in or out, the map repositions Seattle,WA 100px
north from center.

--
Marcelo - http://maps.forum.nu
--


On Feb 8, 4:30 pm, tommo77funk <[email protected]> wrote:
>   Hi,
>
>          I'd be really grateful for any advice, I have the following
> function in my map, that animates to a marker and opens and infowindow
>
>   google.maps.Event.addListener( map, 'infowindowopen', function() {
>                 map.panTo( infowindow.getPoint() );
>         } );
>
> the problem is the height of my infowindow means that the top gets cut
> off from view, when centering on the map, this is also due to my map
> height, which I dont want to change, as it has to fit into space on my
> webpage.
>
> I have seen references to vertical offset for infowindow to marker -
> but is it possible to have an offset for for where the map center is ?
>
> I have seen this also
>
> http://code.google.com/apis/maps/documentation/reference.html#GPoint
>
> and tried
>
>   google.maps.Event.addListener( map, 'infowindowopen', function() {
>                 map.panTo( infowindow.getPoint(0,100) );
>         } );
>
> but it does not seem to work...
>
> You can see example of my project herehttp://bit.ly/58aIwr
>
> As mentioned any advice would be greatly appreciated.
>
> Best wishes,
>
> tom

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