From 8a50151b41868a76b60a84798767199f05a2faca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Thu, 22 Oct 2020 17:19:47 +0200 Subject: [PATCH] Add source style URLs in /styles.json --- src/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 9fedc02..c052ed5 100644 --- a/src/server.js +++ b/src/server.js @@ -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);