Set pointerEvents style programmatically instead of relying on ol.css

This commit is contained in:
Andreas Hocevar
2020-04-16 17:34:40 +02:00
parent 12043e147c
commit 7f6258dd0d
14 changed files with 27 additions and 22 deletions

View File

@@ -261,6 +261,7 @@ class PluggableMap extends BaseObject {
this.overlayContainer_.style.zIndex = '0';
this.overlayContainer_.style.width = '100%';
this.overlayContainer_.style.height = '100%';
this.overlayContainer_.style.pointerEvents = 'none';
this.overlayContainer_.className = 'ol-overlaycontainer';
this.viewport_.appendChild(this.overlayContainer_);
@@ -273,6 +274,7 @@ class PluggableMap extends BaseObject {
this.overlayContainerStopEvent_.style.zIndex = '0';
this.overlayContainerStopEvent_.style.width = '100%';
this.overlayContainerStopEvent_.style.height = '100%';
this.overlayContainerStopEvent_.style.pointerEvents = 'none';
this.overlayContainerStopEvent_.className = 'ol-overlaycontainer-stopevent';
this.viewport_.appendChild(this.overlayContainerStopEvent_);