Prep for more efficient moves.

This commit is contained in:
Tim Schaub
2012-06-23 12:42:09 +02:00
parent cdd9439bbd
commit c4f91d498c
2 changed files with 68 additions and 30 deletions
+12
View File
@@ -20,6 +20,18 @@ ol.renderer.LayerRenderer = function(container, layer) {
* @protected
*/
this.layer_ = layer;
var target = goog.dom.createDom('div', {
'class': 'ol-renderer-layer',
'style': 'position:absolute;height:1px:width:1px'
});
goog.dom.appendChild(container, target);
/**
* @type Element
* @protected
*/
this.target_ = target;
};