Making sure that position:absolute is set
Positioning of overlays is only possible when position:absolute is set on the element. So we set it programmatically now.
This commit is contained in:
@@ -91,6 +91,7 @@ ol.overlay.Overlay.prototype.setElement = function(element) {
|
||||
}
|
||||
this.element_ = element;
|
||||
if (this.map_) {
|
||||
goog.style.setStyle(this.element_, 'position', 'absolute');
|
||||
goog.dom.append(/** @type {!Node} */ (this.map_.getOverlayContainer()),
|
||||
this.element_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user