Merge pull request #10936 from ahocevar/css-optional
Set pointerEvents style programmatically instead of relying on ol.css
This commit is contained in:
@@ -145,6 +145,7 @@ class Overlay extends BaseObject {
|
||||
? options.className
|
||||
: 'ol-overlay-container ' + CLASS_SELECTABLE;
|
||||
this.element.style.position = 'absolute';
|
||||
this.element.style.pointerEvents = 'auto';
|
||||
|
||||
let autoPan = options.autoPan;
|
||||
if (autoPan && 'object' !== typeof autoPan) {
|
||||
|
||||
Reference in New Issue
Block a user