Scale StaticImage image to imageExtent

The imageSize property was only used to determine the scale. It's usage was
never documented nor tested nor shown in an example, so I removed it because I
considered its presence a bug.
This commit is contained in:
Andreas Hocevar
2015-11-13 12:13:38 +01:00
parent f5a148e6b3
commit 6280b35035
6 changed files with 78 additions and 23 deletions
+1 -10
View File
@@ -1373,7 +1373,7 @@ olx.control.RotateOptions.prototype.render;
/**
* Function called when the control is clicked. This will override the
* Function called when the control is clicked. This will override the
* default resetNorth.
* @type {function()|undefined}
* @api
@@ -4935,7 +4935,6 @@ olx.source.StamenOptions.prototype.url;
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* crossOrigin: (null|string|undefined),
* imageExtent: (ol.Extent),
* imageSize: (ol.Size|undefined),
* imageLoadFunction: (ol.ImageLoadFunctionType|undefined),
* logo: (string|olx.LogoOptions|undefined),
* projection: ol.proj.ProjectionLike,
@@ -4974,14 +4973,6 @@ olx.source.ImageStaticOptions.prototype.crossOrigin;
olx.source.ImageStaticOptions.prototype.imageExtent;
/**
* Size of the image in pixels.
* @type {ol.Size|undefined}
* @api stable
*/
olx.source.ImageStaticOptions.prototype.imageSize;
/**
* Optional function to load an image given a URL.
* @type {ol.TileLoadFunctionType|undefined}