Use setElementShown instead of showElement
This commit is contained in:
@@ -280,7 +280,7 @@ ol.Overlay.prototype.updatePixelPosition_ = function() {
|
||||
var position = this.getPosition();
|
||||
if (!goog.isDef(map) || !map.isDef() || !goog.isDef(position)) {
|
||||
if (this.rendered_.visible) {
|
||||
goog.style.showElement(this.element_, false);
|
||||
goog.style.setElementShown(this.element_, false);
|
||||
this.rendered_.visible = false;
|
||||
}
|
||||
return;
|
||||
@@ -329,7 +329,7 @@ ol.Overlay.prototype.updatePixelPosition_ = function() {
|
||||
}
|
||||
|
||||
if (!this.rendered_.visible) {
|
||||
goog.style.showElement(this.element_, true);
|
||||
goog.style.setElementShown(this.element_, true);
|
||||
this.rendered_.visible = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user