Rename ol.source.Image#getImage implementations to #getImageInternal
This allows for the reprojection to be initialized in the #getImage, while #getImageInternal is used to obtain the actual data.
This commit is contained in:
@@ -59,7 +59,7 @@ goog.inherits(ol.source.ImageCanvas, ol.source.Image);
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageCanvas.prototype.getImage =
|
||||
ol.source.ImageCanvas.prototype.getImageInternal =
|
||||
function(extent, resolution, pixelRatio, projection) {
|
||||
resolution = this.findNearestResolution(resolution);
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ ol.source.ImageMapGuide.prototype.getParams = function() {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageMapGuide.prototype.getImage =
|
||||
ol.source.ImageMapGuide.prototype.getImageInternal =
|
||||
function(extent, resolution, pixelRatio, projection) {
|
||||
resolution = this.findNearestResolution(resolution);
|
||||
pixelRatio = this.hidpi_ ? pixelRatio : 1;
|
||||
|
||||
@@ -62,7 +62,7 @@ goog.inherits(ol.source.ImageStatic, ol.source.Image);
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageStatic.prototype.getImage =
|
||||
ol.source.ImageStatic.prototype.getImageInternal =
|
||||
function(extent, resolution, pixelRatio, projection) {
|
||||
if (ol.extent.intersects(extent, this.image_.getExtent())) {
|
||||
return this.image_;
|
||||
|
||||
@@ -185,7 +185,7 @@ ol.source.ImageWMS.prototype.getParams = function() {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageWMS.prototype.getImage =
|
||||
ol.source.ImageWMS.prototype.getImageInternal =
|
||||
function(extent, resolution, pixelRatio, projection) {
|
||||
|
||||
if (this.url_ === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user