Google releases new versions of their API continously, deprecating the older versions. From version v3.21, OpenLayers 2.13.1 no longer works. If you request an earlier version than 3.21 from Google, you will still get the latest version from Google.

I cherry-picker the patch mentioned above into our own fork of openlayers: https://github.com/UMS/openlayers/tree/release-2.13.1_ums

This is the 2.13.1 tag with the above change, and a dist directory.

We use bower, and the following bower config works for us:

{ "dependencies": { "openlayers": "git://github.com/ums/openlayers.git#release-2.13.1_ums" }, "overrides": { "openlayers": { "main": [ "dist/OpenLayers.js", "theme/default/style.css", "theme/default/img/" ] } } }

The fix is discussed here: https://github.com/openlayers/openlayers/issues/1450 - which also has a link to the fix that I cherry-picked from: https://github.com/v5analytics/openlayers/commit/5c6a7f4540b7d70261e9483d3a3770cfbfc72001

Related issue in the Google Maps Javascript API issue tracker: Issue 8092: Bug: Map tiles not showing on page load with OpenLayers