* @function MapvLayer.prototype.init * @param {Object} options - 参数。 * @description 初始化参数。
(options)
| 76 | * @description 初始化参数。 |
| 77 | */ |
| 78 | init(options) { |
| 79 | var self = this; |
| 80 | self.options = options; |
| 81 | this.initDataRange(options); |
| 82 | this.context = self.options.context || '2d'; |
| 83 | if (self.options.zIndex) { |
| 84 | this.canvasLayer && this.canvasLayer.setZIndex(self.options.zIndex); |
| 85 | } |
| 86 | this.initAnimator(); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * @function MapvLayer.prototype.clickEvent |
no test coverage detected