MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / constructor

Method constructor

src/mapboxgl/overlay/L7Layer.js:26–33  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

24
25export class L7Layer extends L7LayerBase {
26 constructor(params) {
27 const { type, options = {} } = params;
28 super(params);
29 if (type !== 'ThreeLayer') {
30 this.l7layer = new L7[type]({ ...options, name: this.id });
31 this.setDataFn = this.l7layer.setData.bind(this.l7layer);
32 }
33 }
34
35 onAdd(map) {
36 this.map = map;

Callers

nothing calls this directly

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected