Google Maps InfoWindow Not Centering
We were recently investigating a request from EatOut (one of our clients who's website lists restaurants around New Zealand) who wished to allow users of the website to get directions to the restaurant. Given that we were using Google Maps to provide the location this was a fairly straightforward job given the API, knowledge base and documentation available on the web. Having completed the development and testing and EatOut had reviewed the work we were ready to put the site live. Then we noticed a bug whereby the map centres on the pin whereas the API states (or at least used to) that it centres on the InfoWindow (and indeed did during development testing).
After much research I couldn't find another Google Map with InfoWindows on the web which worked correctly. It transpires that it is a Google bug that was presumably introduced after v2.119 was released. The solution is therefore actually simple and I simply needed to change the page to use version 2.118 as follows:
http://maps.google.com/maps?file=api&v=2.118&key=<mykey>
The issue now is, are Google going to fix it or have they simply changed the way it works? I would not have questioned this but note that on the Google Maps API page which has an InfoWindow they actually offset the centre of the map such that the InfoWindow is fully visible. Maybe they've just changed this page while they fix the bug.

