I have a class based on google.maps.OverlayView that implements a custom replacement for the standard InfoWindow.
You can see my custom overlays in action at http://www.qype.co.uk/uki/explore/category/883-eating-and-drinking
I need to be able to pan the map when the overlay does not fully match the visible area (standard behavior for InfoWindows), and I cannot figure out how to do this.
I tried something like this.map.panTo (this.getProjection (). FromDivPixelToLatLng (this.getProjection (). Center)), but it did not work as I expected, so I'm somewhat lost.
source
share