Compare commits
1 Commits
aba60f0c6a
...
dynamic
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d5be67efc |
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user