Minor type fix in ol.reproj.Image
This commit is contained in:
@@ -21,8 +21,7 @@ goog.require('ol.reproj.Triangulation');
|
|||||||
* @param {ol.Extent} targetExtent
|
* @param {ol.Extent} targetExtent
|
||||||
* @param {number} targetResolution
|
* @param {number} targetResolution
|
||||||
* @param {number} pixelRatio
|
* @param {number} pixelRatio
|
||||||
* @param {function(ol.Extent, number, number, ol.proj.Projection) :
|
* @param {function(ol.Extent, number, number):ol.ImageBase} getImageFunction
|
||||||
* ol.ImageBase} getImageFunction
|
|
||||||
*/
|
*/
|
||||||
ol.reproj.Image = function(sourceProj, targetProj,
|
ol.reproj.Image = function(sourceProj, targetProj,
|
||||||
targetExtent, targetResolution, pixelRatio, getImageFunction) {
|
targetExtent, targetResolution, pixelRatio, getImageFunction) {
|
||||||
@@ -74,8 +73,7 @@ ol.reproj.Image = function(sourceProj, targetProj,
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.ImageBase}
|
* @type {ol.ImageBase}
|
||||||
*/
|
*/
|
||||||
this.srcImage_ = getImageFunction(srcExtent, sourceResolution,
|
this.srcImage_ = getImageFunction(srcExtent, sourceResolution, pixelRatio);
|
||||||
pixelRatio, sourceProj);
|
|
||||||
|
|
||||||
var width = ol.extent.getWidth(targetExtent) / targetResolution;
|
var width = ol.extent.getWidth(targetExtent) / targetResolution;
|
||||||
var height = ol.extent.getHeight(targetExtent) / targetResolution;
|
var height = ol.extent.getHeight(targetExtent) / targetResolution;
|
||||||
|
|||||||
Reference in New Issue
Block a user