Rename #getImageElement to #getImage

This adds consistency between ol.Image and ol.ImageTile. Now both have
an exportable getImage method.
This commit is contained in:
Andreas Hocevar
2014-10-29 20:05:34 +01:00
parent abb86e16f0
commit 87a06c0086
6 changed files with 7 additions and 6 deletions

View File

@@ -66,8 +66,9 @@ goog.inherits(ol.Image, ol.ImageBase);
/**
* @param {Object=} opt_context Object.
* @return {HTMLCanvasElement|Image|HTMLVideoElement} Image.
* @api
*/
ol.Image.prototype.getImageElement = function(opt_context) {
ol.Image.prototype.getImage = function(opt_context) {
if (goog.isDef(opt_context)) {
var image;
var key = goog.getUid(opt_context);