Compare commits

...

1 Commits

Author SHA1 Message Date
Ivan Vazhenin
5d5be67efc fix 2022-04-12 19:50:29 +03:00

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);