(sourceId, options)
| 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) => { |
no test coverage detected