diff --git a/src/ol/source/imagewmssource.js b/src/ol/source/imagewmssource.js index 2f417a7193..b5bf1f9695 100644 --- a/src/ol/source/imagewmssource.js +++ b/src/ol/source/imagewmssource.js @@ -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); };