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:
+1
-10
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user