fix
This commit is contained in:
@@ -256,6 +256,17 @@ function start(opts) {
|
|||||||
res.send(result);
|
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) => {
|
const addTileJSONs = (arr, req, type) => {
|
||||||
for (const id of Object.keys(serving[type])) {
|
for (const id of Object.keys(serving[type])) {
|
||||||
const info = clone(serving[type][id].tileJSON);
|
const info = clone(serving[type][id].tileJSON);
|
||||||
|
|||||||
Reference in New Issue
Block a user