Document difference between Vector and VectorImage layers
This commit is contained in:
@@ -6,7 +6,11 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Vector data that is rendered client-side.
|
||||
* Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering
|
||||
* even during animations. Points and labels stay upright on rotated views. For very large
|
||||
* amounts of vector data, performance may suffer during pan and zoom animations. In this case,
|
||||
* try {@link module:ol/layer/VectorImage~VectorImageLayer}.
|
||||
*
|
||||
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
|
||||
@@ -49,7 +49,11 @@ import {assign} from '../obj.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Vector data that is rendered client-side.
|
||||
* Vector data is rendered client-side, to an image. This layer type provides great performance
|
||||
* during panning and zooming, but point symbols and texts are always rotated with the view and
|
||||
* pixels are scaled during zoom animations. For more accurate rendering of vector data, use
|
||||
* {@link module:ol/layer/Vector~VectorLayer} instead.
|
||||
*
|
||||
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
|
||||
Reference in New Issue
Block a user