Module type for ol.layer.VectorRenderType
This commit is contained in:
@@ -27,7 +27,7 @@ import {createDefaultStyle, toFunction as toStyleFunction} from '../style/Style.
|
|||||||
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
||||||
* renderer when getting features from the vector source for the rendering or hit-detection.
|
* 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.
|
* Recommended value: the size of the largest symbol, line width or label.
|
||||||
* @property {ol.layer.VectorRenderType|string} [renderMode='vector'] Render mode for vector layers:
|
* @property {module:ol/layer/VectorRenderType~VectorRenderType|string} [renderMode='vector'] Render mode for vector layers:
|
||||||
* * `'image'`: Vector layers are rendered as images. Great performance, but point symbols and
|
* * `'image'`: Vector layers are rendered as images. Great performance, but point symbols and
|
||||||
* texts are always rotated with the view and pixels are scaled during zoom animations.
|
* texts are always rotated with the view and pixels are scaled during zoom animations.
|
||||||
* * `'vector'`: Vector layers are rendered as vectors. Most accurate rendering even during
|
* * `'vector'`: Vector layers are rendered as vectors. Most accurate rendering even during
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import {assign} from '../obj.js';
|
|||||||
* Recommended value: Vector tiles are usually generated with a buffer, so this value should match
|
* Recommended value: Vector tiles are usually generated with a buffer, so this value should match
|
||||||
* the largest possible buffer of the used tiles. It should be at least the size of the largest
|
* the largest possible buffer of the used tiles. It should be at least the size of the largest
|
||||||
* point symbol or line width.
|
* point symbol or line width.
|
||||||
* @property {ol.layer.VectorRenderType|string} [renderMode='hybrid'] Render mode for vector tiles:
|
* @property {module:ol/layer/VectorRenderType~VectorRenderType|string} [renderMode='hybrid'] Render mode for vector tiles:
|
||||||
* * `'image'`: Vector tiles are rendered as images. Great performance, but point symbols and texts
|
* * `'image'`: Vector tiles are rendered as images. Great performance, but point symbols and texts
|
||||||
* are always rotated with the view and pixels are scaled during zoom animations.
|
* are always rotated with the view and pixels are scaled during zoom animations.
|
||||||
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels are scaled during zoom
|
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels are scaled during zoom
|
||||||
|
|||||||
Reference in New Issue
Block a user