map renderer target is now map renderer container

This commit is contained in:
Éric Lemoine
2012-08-20 21:48:30 +02:00
parent a9706cd84b
commit a610413811
3 changed files with 12 additions and 12 deletions

View File

@@ -13,10 +13,10 @@ goog.require('ol.MapProperty');
/**
* @constructor
* @extends {goog.Disposable}
* @param {Element} target Target.
* @param {Element} container Container.
* @param {ol.Map} map Map.
*/
ol.MapRenderer = function(target, map) {
ol.MapRenderer = function(container, map) {
goog.base(this);
@@ -24,7 +24,7 @@ ol.MapRenderer = function(target, map) {
* @private
* @type {Element}
*/
this.target_ = target;
this.container_ = container;
/**
* @protected

View File

@@ -15,12 +15,12 @@ goog.require('ol.dom.TileLayerRenderer');
/**
* @constructor
* @extends {ol.MapRenderer}
* @param {Element} target Target.
* @param {Element} container Container.
* @param {ol.Map} map Map.
*/
ol.dom.MapRenderer = function(target, map) {
ol.dom.MapRenderer = function(container, map) {
goog.base(this, target, map);
goog.base(this, container, map);
/**
* @type {!Element}

View File

@@ -135,22 +135,22 @@ goog.addSingletonGetter(ol.webgl.map.shader.Vertex);
/**
* @constructor
* @extends {ol.MapRenderer}
* @param {Element} target Target.
* @param {Element} container Container.
* @param {ol.Map} map Map.
*/
ol.webgl.MapRenderer = function(target, map) {
ol.webgl.MapRenderer = function(container, map) {
goog.base(this, target, map);
goog.base(this, container, map);
/**
* @private
* @type {Element}
*/
this.canvas_ = goog.dom.createElement(goog.dom.TagName.CANVAS);
this.canvas_.height = target.clientHeight;
this.canvas_.width = target.clientWidth;
this.canvas_.style.overflow = 'hidden';
goog.dom.appendChild(target, this.canvas_);
this.canvas_.height = container.clientHeight;
this.canvas_.width = container.clientWidth;
goog.dom.appendChild(container, this.canvas_);
/**
* @private