Use DOM instead of map canvas for ol.render.Box

This commit is contained in:
Andreas Hocevar
2015-10-15 16:52:31 +02:00
parent afdd22bd1d
commit 7a070dd859
10 changed files with 218 additions and 151 deletions

View File

@@ -93,17 +93,11 @@ ol.interaction.DragBox = function(opt_options) {
var options = opt_options ? opt_options : {};
/**
* @private
* @type {ol.style.Style}
*/
var style = options.style ? options.style : null;
/**
* @type {ol.render.Box}
* @private
*/
this.box_ = new ol.render.Box(style);
this.box_ = new ol.render.Box(options.className || 'ol-dragbox');
/**
* @type {ol.Pixel}