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:
@@ -119,7 +119,7 @@ OpenLayers.Layer.Google.v3 = {
|
|||||||
google.maps.event.trigger(this.mapObject, "resize");
|
google.maps.event.trigger(this.mapObject, "resize");
|
||||||
|
|
||||||
var div = this.mapObject.getDiv().firstChild;
|
var div = this.mapObject.getDiv().firstChild;
|
||||||
if (div.childNodes.length < 3) {
|
if (!div || div.childNodes.length < 3) {
|
||||||
this.repositionTimer = window.setTimeout(
|
this.repositionTimer = window.setTimeout(
|
||||||
OpenLayers.Function.bind(this.repositionMapElements, this),
|
OpenLayers.Function.bind(this.repositionMapElements, this),
|
||||||
250
|
250
|
||||||
|
|||||||
Reference in New Issue
Block a user