Remove renderer.Map#getCanvas function
This commit is contained in:
committed by
Tom Payne
parent
38bbe35e8d
commit
f4c5168cdf
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user