Isn’t it better to:

```js
if (pos.content) {
  this.map.setSourceContent(sourceFile, pos.content);
}
```

There’s nothing wrong with setting source content just for a few sources. The rest could be fetched by a browser’s developer tools, for example.