Add controls to ol-overlaycontainer-stopevent
so that events won't be propagated to the map when interacting with a control
This commit is contained in:
@@ -93,7 +93,7 @@ ol.control.Control.prototype.setMap = function(map) {
|
|||||||
this.map_ = map;
|
this.map_ = map;
|
||||||
if (!goog.isNull(this.map_)) {
|
if (!goog.isNull(this.map_)) {
|
||||||
var target = goog.isDef(this.target_) ?
|
var target = goog.isDef(this.target_) ?
|
||||||
this.target_ : map.getOverlayContainer();
|
this.target_ : map.getOverlayContainerStopEvent();
|
||||||
goog.dom.appendChild(target, this.element);
|
goog.dom.appendChild(target, this.element);
|
||||||
if (this.handleMapPostrender !== goog.nullFunction) {
|
if (this.handleMapPostrender !== goog.nullFunction) {
|
||||||
this.listenerKeys.push(goog.events.listen(map,
|
this.listenerKeys.push(goog.events.listen(map,
|
||||||
|
|||||||
Reference in New Issue
Block a user