Making the Google v3 layer work with deferred map rendering. r=ahocevar (closes #2731)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-07-12 15:34:41 +00:00
parent d880d2d2b7
commit ee00417729

View File

@@ -119,7 +119,7 @@ OpenLayers.Layer.Google.v3 = {
google.maps.event.trigger(this.mapObject, "resize");
var div = this.mapObject.getDiv().firstChild;
if (div.childNodes.length < 3) {
if (!div || div.childNodes.length < 3) {
this.repositionTimer = window.setTimeout(
OpenLayers.Function.bind(this.repositionMapElements, this),
250