Remove renderer.Map#getCanvas function

This commit is contained in:
Frederic Junod
2013-11-18 14:08:15 +01:00
committed by Tom Payne
parent 38bbe35e8d
commit f4c5168cdf
5 changed files with 1 additions and 25 deletions
@@ -132,7 +132,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame =
if (!goog.isNull(image)) {
goog.asserts.assert(!goog.isNull(texture));
var canvas = this.getWebGLMapRenderer().getCanvas();
var canvas = this.getWebGLMapRenderer().getContext().getCanvas();
this.updateProjectionMatrix_(canvas.width, canvas.height,
viewCenter, viewResolution, viewRotation, image.getExtent());
@@ -267,14 +267,6 @@ ol.renderer.webgl.Map.prototype.expireCache_ = function(map, frameState) {
};
/**
* @inheritDoc
*/
ol.renderer.webgl.Map.prototype.getCanvas = function() {
return this.canvas_;
};
/**
* @return {ol.webgl.Context}
*/