Hi,

I've been stuck on this for a while and therefore simplified my
requirement.

When you click on a marker an infowindow opens, when a user zooms I
want that marker to be in the center of the map.

This doesn't work but I think it's close:

function bindInfoWindow(marker, map, infoWindow, html) {
      google.maps.event.addListener(marker, 'click', function() {
        infoWindow.setContent(html);
        infoWindow.open(map, marker);
      });
          google.maps.event.addListener(map, 'zoom_changed', function() {
                infoWindow.setCenter(infoWindow.getCenter());
                });
    }

http://www.hostelbars.com/map_test_v3_1.html

Would really appreciate some help - thanks in advance.

Brendon

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to