Improve ol.source.StaticImage

Brings back the imgSize property, and puts all image load handler
code in a single listener.
This commit is contained in:
Andreas Hocevar
2015-11-16 10:45:30 +01:00
parent 5e0b0e69a5
commit fabda7c4b2
3 changed files with 67 additions and 17 deletions
+10
View File
@@ -4936,6 +4936,7 @@ olx.source.StamenOptions.prototype.url;
* crossOrigin: (null|string|undefined),
* imageExtent: (ol.Extent),
* imageLoadFunction: (ol.ImageLoadFunctionType|undefined),
* imageSize: (ol.Size|undefined),
* logo: (string|olx.LogoOptions|undefined),
* projection: ol.proj.ProjectionLike,
* url: string}}
@@ -4997,6 +4998,15 @@ olx.source.ImageStaticOptions.prototype.logo;
olx.source.ImageStaticOptions.prototype.projection;
/**
* Size of the image in pixels. Usually the image size is auto-detected, so this
* only needs to be set if auto-detection fails for some reason.
* @type {ol.Size|undefined}
* @api stable
*/
olx.source.ImageStaticOptions.prototype.imageSize;
/**
* Image URL.
* @type {string}