Call setMap instead of passing map to control

This commit is contained in:
Tim Schaub
2013-08-31 14:45:03 -06:00
parent 3e1de0b1ad
commit 8844310bf4

View File

@@ -90,9 +90,9 @@ ol.interaction.DragZoom.prototype.handleDragStart =
var browserEvent = mapBrowserEvent.browserEvent;
if (browserEvent.isMouseActionButton() && this.condition_(browserEvent)) {
this.dragBox_ = new ol.control.DragBox({
map: mapBrowserEvent.map,
startCoordinate: this.startCoordinate
});
this.dragBox_.setMap(mapBrowserEvent.map);
return true;
} else {
return false;