From 7a82b4a1ba8ebcfac912a85418ebaf598d4dac4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Koke=C5=A1?= Date: Mon, 21 Mar 2016 10:06:08 +0100 Subject: [PATCH] Update v3.js Fixes https://github.com/openlayers/ol2/issues/1493 on slow connections and Firefox family browsers. --- lib/OpenLayers/Layer/Google/v3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Google/v3.js b/lib/OpenLayers/Layer/Google/v3.js index 60fab281c2..07be02f78f 100644 --- a/lib/OpenLayers/Layer/Google/v3.js +++ b/lib/OpenLayers/Layer/Google/v3.js @@ -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); + } } } },