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

Method getSource

src/common/util/MapExtend.js:236–242  ·  view source on GitHub ↗
(sourceId)

Source from the content-addressed store, hash-verified

234 }
235
236 getSource(sourceId) {
237 const customOverlayerLayer = Object.values(this.overlayLayersManager).find(item => item.sourceId === sourceId && item instanceof CustomOverlayLayer);
238 if (customOverlayerLayer) {
239 return customOverlayerLayer.getSource();
240 }
241 return originMapProto.getSource.call(this, sourceId);
242 }
243
244 removeSource(sourceId) {
245 const customOverlayerLayer = Object.values(this.overlayLayersManager).find(item => item.sourceId === sourceId && item instanceof CustomOverlayLayer);

Callers 15

addMethod · 0.45
_addVideoLayerMethod · 0.45
_afterAddVideoLayerMethod · 0.45
addGraticuleLayerMethod · 0.45
updateGraticuleLayerMethod · 0.45
drawImageCallbackMethod · 0.45
_addVideoLayerMethod · 0.45
_handleFeaturesMethod · 0.45
_updateFeaturesMethod · 0.45
_addLayerMethod · 0.45
addGraticuleLayerMethod · 0.45
updateGraticuleLayerMethod · 0.45

Calls 1

findMethod · 0.45

Tested by

no test coverage detected