Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SuperMap/iClient-JavaScript
/ getLayer
Function
getLayer
test/common/mapping/utils/SourceListModelV3Spec.js:390–392 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
388
return
sources[id];
389
},
390
getLayer(id) {
391
return
layers.find((layer) => layer.id === id);
392
},
393
removeLayer(id) {
394
return
layers.splice(
395
layers.findIndex((layer) => layer.id === id),
Callers
nothing calls this directly
Calls
1
find
Method · 0.45
Tested by
no test coverage detected