Google Maps API V3 - only showing a blank map when using the geocoder

Solution 1:

You are using undocumented properties:

var center = results[0].geometry.location.Xa - 0.0062;
var centerCoord = new google.maps.LatLng(center, results[0].geometry.location.Ya);

(geometry.Xa, geometry.Ya)

That is guaranteed to fail at some point when the version of the API changes.

Use the documented properties (geometry.lat(), geometry.lng())