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

Method onAdd

src/maplibregl/overlay/L7Layer.js:33–44  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

31 }
32
33 onAdd(map) {
34 this.map = map;
35 if (!map.$l7scene) {
36 const scene = getL7Scene(Scene, Maplibre, map);
37 map.$l7scene = scene;
38 scene.on('loaded', () => {
39 this.addSceneLayer(scene);
40 });
41 return;
42 }
43 this.addSceneLayer(map.$l7scene);
44 }
45
46 _getL7Filter(filter) {
47 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