Allow user selection in overlay container

This commit is contained in:
Frederic Junod
2017-04-24 09:32:36 +02:00
parent c9303f5889
commit 8aa30ee8f6
3 changed files with 17 additions and 3 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ goog.require('ol');
goog.require('ol.MapEventType');
goog.require('ol.Object');
goog.require('ol.OverlayPositioning');
goog.require('ol.css');
goog.require('ol.dom');
goog.require('ol.events');
goog.require('ol.extent');
@@ -58,7 +59,7 @@ ol.Overlay = function(options) {
* @type {Element}
*/
this.element_ = document.createElement('DIV');
this.element_.className = 'ol-overlay-container';
this.element_.className = 'ol-overlay-container ' + ol.css.CLASS_SELECTABLE;
this.element_.style.position = 'absolute';
/**