This commit is contained in:
Ivan Vazhenin
2022-04-12 19:50:29 +03:00
parent aba60f0c6a
commit 5d5be67efc

View File

@@ -256,6 +256,17 @@ function start(opts) {
res.send(result);
});
app.get('/process', (req, res, next) => {
const result = {};
const id = req.query.style || '';
const item = {
'style': id + '.json'
};
result[id] = true;
addStyle(id, item, true, true);
res.send(serving.styles);
});
const addTileJSONs = (arr, req, type) => {
for (const id of Object.keys(serving[type])) {
const info = clone(serving[type][id].tileJSON);