All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
50 lines
2.2 KiB
JavaScript
50 lines
2.2 KiB
JavaScript
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
return function (d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
/**
|
|
* @module ol/layer/Vector
|
|
*/
|
|
import BaseVectorLayer from './BaseVector.js';
|
|
import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
/**
|
|
* @classdesc
|
|
* 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.
|
|
*
|
|
* @template {import("../source/Vector.js").default} VectorSourceType
|
|
* @extends {BaseVectorLayer<VectorSourceType, CanvasVectorLayerRenderer>}
|
|
* @api
|
|
*/
|
|
var VectorLayer = /** @class */ (function (_super) {
|
|
__extends(VectorLayer, _super);
|
|
/**
|
|
* @param {import("./BaseVector.js").Options<VectorSourceType>} [opt_options] Options.
|
|
*/
|
|
function VectorLayer(opt_options) {
|
|
return _super.call(this, opt_options) || this;
|
|
}
|
|
VectorLayer.prototype.createRenderer = function () {
|
|
return new CanvasVectorLayerRenderer(this);
|
|
};
|
|
return VectorLayer;
|
|
}(BaseVectorLayer));
|
|
export default VectorLayer;
|
|
//# sourceMappingURL=Vector.js.map
|