Ensure ID is maintained over deconstructing object (#1023)
This commit is contained in:
parent
2a441a0039
commit
c161667e0e
1 changed files with 3 additions and 3 deletions
|
@ -546,11 +546,11 @@ function start(opts) {
|
|||
}
|
||||
|
||||
return {
|
||||
...style,
|
||||
id,
|
||||
name: (serving.styles[id] || serving.rendered[id]).name,
|
||||
serving_data: serving.styles[id],
|
||||
serving_rendered: serving.rendered[id],
|
||||
...style,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -583,10 +583,10 @@ function start(opts) {
|
|||
}
|
||||
|
||||
return {
|
||||
...wmts,
|
||||
id,
|
||||
name: (serving.styles[id] || serving.rendered[id]).name,
|
||||
baseUrl,
|
||||
...wmts,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -599,9 +599,9 @@ function start(opts) {
|
|||
}
|
||||
|
||||
return {
|
||||
...data,
|
||||
id,
|
||||
is_vector: data.tileJSON.format === 'pbf',
|
||||
...data,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue