Add renderBuffer option for ol.source.ImageVector

This commit is contained in:
Andreas Hocevar
2016-07-13 14:23:41 +02:00
parent 79d8660ded
commit a64e3c1d3e
2 changed files with 19 additions and 1 deletions

View File

@@ -4970,6 +4970,7 @@ olx.source.ImageCanvasOptions.prototype.state;
* logo: (string|olx.LogoOptions|undefined),
* projection: ol.ProjectionLike,
* ratio: (number|undefined),
* renderBuffer: (number|undefined),
* resolutions: (Array.<number>|undefined),
* source: ol.source.Vector,
* style: (ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction|undefined)}}
@@ -5011,6 +5012,17 @@ olx.source.ImageVectorOptions.prototype.projection;
olx.source.ImageVectorOptions.prototype.ratio;
/**
* The buffer around the viewport extent used by the renderer when getting
* features from the vector source for the rendering or hit-detection.
* Recommended value: the size of the largest symbol, line width or label.
* Default is 100 pixels.
* @type {number|undefined}
* @api
*/
olx.source.ImageVectorOptions.prototype.renderBuffer;
/**
* Resolutions. If specified, new canvases will be created for these resolutions
* only.