MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / init

Method init

src/openlayers/overlay/mapv/MapvLayer.js:78–87  ·  view source on GitHub ↗

* @function MapvLayer.prototype.init * @param {Object} options - 参数。 * @description 初始化参数。

(options)

Source from the content-addressed store, hash-verified

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

Callers 2

constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

setZIndexMethod · 0.45

Tested by

no test coverage detected