mirror of
https://github.com/mapgears/ol3-google-maps.git
synced 2026-02-01 17:45:59 +00:00
Fix ImageOverlay onRemove - check if this.div_ is defined
This commit is contained in:
parent
9bffcf5020
commit
5e525371c8
@ -134,6 +134,8 @@ olgm.gm.ImageOverlay.prototype.setZIndex = function(zIndex) {
|
||||
* @api
|
||||
*/
|
||||
olgm.gm.ImageOverlay.prototype.onRemove = function() {
|
||||
this.div_.parentNode.removeChild(this.div_);
|
||||
this.div_ = null;
|
||||
if (this.div_) {
|
||||
this.div_.parentNode.removeChild(this.div_);
|
||||
this.div_ = null;
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user