Improve type checking in ol.source.StaticImage
This commit is contained in:
@@ -60,7 +60,14 @@ ol.source.StaticImage.prototype.getImage =
|
|||||||
* @return {ol.ImageUrlFunctionType} Function.
|
* @return {ol.ImageUrlFunctionType} Function.
|
||||||
*/
|
*/
|
||||||
ol.source.StaticImage.createImageFunction = function(url) {
|
ol.source.StaticImage.createImageFunction = function(url) {
|
||||||
return function(extent, size, projection) {
|
return (
|
||||||
return url;
|
/**
|
||||||
};
|
* @param {ol.Extent} extent Extent.
|
||||||
|
* @param {ol.Size} size Size.
|
||||||
|
* @param {ol.Projection} projection Projection.
|
||||||
|
* @return {string|undefined} URL.
|
||||||
|
*/
|
||||||
|
function(extent, size, projection) {
|
||||||
|
return url;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user