Split vector layer into Canvas and WebGL implementations

This commit is contained in:
Tim Schaub
2018-10-23 09:07:27 -06:00
parent 6e27b47fc3
commit 6c052c0dab
3 changed files with 336 additions and 229 deletions
+41
View File
@@ -0,0 +1,41 @@
/**
* @module ol/layer/WebGLVector
*/
import BaseVectorLayer from './BaseVector.js';
/**
* @typedef {import("./BaseVector.js").Options} Options
*/
/**
* @classdesc
* Vector data that is rendered client-side.
* 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.
*
* @api
*/
class WebGLVectorLayer extends BaseVectorLayer {
/**
* @param {Options=} opt_options Options.
*/
constructor(opt_options) {
super(opt_options);
}
/**
* Create a renderer for this layer.
* @return {import("../renderer/Layer.js").default} A layer renderer.
* @protected
*/
createRenderer() {
// TODO: rework WebGL renderers to share context
return null;
}
}
export default WebGLVectorLayer;