Add ol.renderer.Map.getCanvas function. Only valid with the canvas and webgl renderers

This commit is contained in:
Frederic Junod
2013-01-21 15:18:18 +01:00
parent c836c8d9c4
commit 2f2ea373ca
3 changed files with 22 additions and 0 deletions

View File

@@ -67,6 +67,14 @@ ol.renderer.canvas.Map.prototype.createLayerRenderer = function(layer) {
};
/**
* @inheritDoc
*/
ol.renderer.canvas.Map.prototype.getCanvas = function() {
return this.canvas_;
};
/**
* @inheritDoc
*/