Enable ProjectionLike on getGetFeatureInfoUrl

This commit follows up on #2348.
This commit is contained in:
Éric Lemoine
2014-08-21 11:45:10 +02:00
parent d1bb2724a5
commit fbab52b09f

View File

@@ -117,7 +117,7 @@ ol.source.ImageWMS.GETFEATUREINFO_IMAGE_SIZE_ = [101, 101];
* constructed.
* @param {ol.Coordinate} coordinate Coordinate.
* @param {number} resolution Resolution.
* @param {ol.proj.Projection} projection Projection.
* @param {ol.proj.ProjectionLike} projection Projection.
* @param {!Object} params GetFeatureInfo params. `INFO_FORMAT` at least should
* be provided. If `QUERY_LAYERS` is not provided then the layers specified
* in the `LAYERS` parameter will be used. `VERSION` should not be
@@ -155,7 +155,7 @@ ol.source.ImageWMS.prototype.getGetFeatureInfoUrl =
return this.getRequestUrl_(
extent, ol.source.ImageWMS.GETFEATUREINFO_IMAGE_SIZE_,
1, projection, baseParams);
1, ol.proj.get(projection), baseParams);
};