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

Method onAdd

src/mapboxgl/overlay/L7Layer.js:35–46  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

33 }
34
35 onAdd(map) {
36 this.map = map;
37 if (!map.$l7scene) {
38 const scene = getL7Scene(Scene, Mapbox, map);
39 map.$l7scene = scene;
40 scene.on('loaded', () => {
41 this.addSceneLayer(scene);
42 });
43 return;
44 }
45 this.addSceneLayer(map.$l7scene);
46 }
47
48 _getL7Filter(filter) {
49 return getL7Filter(filter, featureFilter);

Callers

nothing calls this directly

Calls 3

getL7SceneFunction · 0.90
addSceneLayerMethod · 0.80
onMethod · 0.45

Tested by

no test coverage detected