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

Method _updateRasterSource

src/common/mapping/WebMapV2.js:3158–3168  ·  view source on GitHub ↗
(sourceId, options)

Source from the content-addressed store, hash-verified

3156 }
3157
3158 _updateRasterSource(sourceId, options) {
3159 if (!sourceId) {
3160 return;
3161 }
3162 const source = this.map.getSource(sourceId);
3163
3164 Object.assign(source, options);
3165 this.map.style.sourceCaches[sourceId].clearTiles();
3166 this.map.style.sourceCaches[sourceId].update(this.map.transform);
3167 this.map.triggerRepaint();
3168 }
3169
3170 updateOverlayLayer(layerInfo, features, mergeByField, featureProjection) {
3171 const originLayerInfo = this._mapInfo.layers.find((layer) => {

Callers 1

_updateLayerMethod · 0.95

Calls 2

getSourceMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected