Skip to content

Commit 7a82b4a

Browse files
committed
Update v3.js
Fixes openlayers#1493 on slow connections and Firefox family browsers.
1 parent 1e1bd1b commit 7a82b4a

File tree

1 file changed

+3
-1
lines changed
  • lib/OpenLayers/Layer/Google

1 file changed

+3
-1
lines changed

lib/OpenLayers/Layer/Google/v3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ OpenLayers.Layer.Google.v3 = {
167167
this.mapObject.setMapTypeId(type);
168168
} else if (cache.googleControl.hasChildNodes()) {
169169
map.div.appendChild(map.viewPortDiv);
170-
map.div.removeChild(container);
170+
if (map.div.contains(container)) {
171+
map.div.removeChild(container);
172+
}
171173
}
172174
}
173175
},

0 commit comments

Comments
 (0)