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

Function getLayer

test/common/mapping/utils/SourceListModelV2Spec.js:233–235  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

231 return sources[id];
232 },
233 getLayer(id) {
234 return layers.find((layer) => layer.id === id);
235 },
236 removeLayer(id) {
237 return layers.splice(layers.findIndex((layer) => layer.id === id), 1);
238 },

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected