Add style option to DragBox interaction

This commit is contained in:
Éric Lemoine
2013-12-05 11:30:46 +01:00
committed by Antoine Abt
parent 18f9eeab12
commit eb840777e8
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -44,11 +44,18 @@ ol.interaction.DragBox = function(opt_options) {
this.behavior_ = goog.isDef(options.behavior) ?
options.behavior : goog.nullFunction;
/**
* @private
* @type {ol.style.Style}
*/
var style = goog.isDef(options.style) ? options.style : null;
/**
* @type {ol.render.Box}
* @private
*/
this.box_ = new ol.render.Box();
this.box_ = new ol.render.Box(style);
/**
* @private