(layerInfo, features, mergeByField)
| 250 | } |
| 251 | |
| 252 | updateOverlayLayer(layerInfo, features, mergeByField) { |
| 253 | if (layerInfo.renderSource.type === 'geojson') { |
| 254 | const sourceId = layerInfo.renderSource.id; |
| 255 | features = mergeFeatures({ sourceId, features, mergeByField, map: this.map }); |
| 256 | const featureCollection = { |
| 257 | type: 'FeatureCollection', |
| 258 | features |
| 259 | }; |
| 260 | this.map.getSource(sourceId).setData(featureCollection); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * @private |
nothing calls this directly
no test coverage detected