Add pixelRatio to ol.source.Image#getImage

This commit is contained in:
Frederic Junod
2013-12-12 15:16:59 +01:00
parent 79ade07fb7
commit ca0b77d0e3
7 changed files with 10 additions and 9 deletions
+1
View File
@@ -113,6 +113,7 @@ ol.source.Image.prototype.findNearestResolution =
/**
* @param {ol.Extent} extent Extent.
* @param {number} resolution Resolution.
* @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection.
* @return {ol.Image} Single image.
*/
+1 -1
View File
@@ -48,7 +48,7 @@ goog.inherits(ol.source.ImageStatic, ol.source.Image);
* @inheritDoc
*/
ol.source.ImageStatic.prototype.getImage =
function(extent, resolution, projection) {
function(extent, resolution, pixelRatio, projection) {
if (ol.extent.intersects(extent, this.image_.getExtent())) {
return this.image_;
}
+1 -1
View File
@@ -69,7 +69,7 @@ ol.source.ImageWMS.prototype.getParams = function() {
* @inheritDoc
*/
ol.source.ImageWMS.prototype.getImage =
function(extent, resolution, projection) {
function(extent, resolution, pixelRatio, projection) {
resolution = this.findNearestResolution(resolution);
var image = this.image_;
+1 -1
View File
@@ -72,7 +72,7 @@ goog.inherits(ol.source.MapGuide, ol.source.Image);
* @inheritDoc
*/
ol.source.MapGuide.prototype.getImage =
function(extent, resolution, projection) {
function(extent, resolution, pixelRatio, projection) {
resolution = this.findNearestResolution(resolution);
var image = this.image_;