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:
Bruno Binet
2013-10-11 12:51:22 +02:00
parent 623b2fab14
commit 06580950ca
+1 -1
View File
@@ -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,