Add source style URLs in /styles.json
This commit is contained in:
parent
04b49d8a98
commit
8a50151b41
1 changed files with 2 additions and 1 deletions
|
|
@ -250,7 +250,8 @@ function start(opts) {
|
|||
version: styleJSON.version,
|
||||
name: styleJSON.name,
|
||||
id: id,
|
||||
url: `${utils.getPublicUrl(opts.publicUrl, req)}styles/${id}/style.json${query}`
|
||||
url: `${utils.getPublicUrl(opts.publicUrl, req)}styles/${id}/style.json${query}`,
|
||||
'source:url': styleJSON.metadata ? styleJSON.metadata['openmaptiles:mapbox:source:url'] : undefined,
|
||||
});
|
||||
}
|
||||
res.send(result);
|
||||
|
|
|
|||
Loading…
Reference in a new issue