Skip to content

Commit

Permalink
Update v3.js
Browse files Browse the repository at this point in the history
Fixes #1493 on slow connections and Firefox family browsers.
  • Loading branch information
shr3k committed Mar 21, 2016
1 parent 1e1bd1b commit 7a82b4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/OpenLayers/Layer/Google/v3.js
Expand Up @@ -167,7 +167,9 @@ OpenLayers.Layer.Google.v3 = {
this.mapObject.setMapTypeId(type);
} else if (cache.googleControl.hasChildNodes()) {
map.div.appendChild(map.viewPortDiv);
map.div.removeChild(container);
if (map.div.contains(container)) {
map.div.removeChild(container);
}
}
}
},
Expand Down

0 comments on commit 7a82b4a

Please sign in to comment.