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

@@ -129,7 +129,7 @@ ol.renderer.dom.ImageLayer.prototype.prepareFrame =
(imageExtent[0] - viewCenter[0]) / imageResolution,
(viewCenter[1] - imageExtent[3]) / imageResolution);
if (image != this.image_) {
var imageElement = image.getImageElement(this);
var imageElement = image.getImage(this);
// Bootstrap sets the style max-width: 100% for all images, which breaks
// prevents the image from being displayed in FireFox. Workaround by
// overriding the max-width style.