Round zoom as style spec allows fractional zooms while tilejson spec does not
This commit is contained in:
parent
fd4786d252
commit
cd45a0e3e8
1 changed files with 1 additions and 1 deletions
|
|
@ -1375,7 +1375,7 @@ export const serve_rendered = {
|
||||||
};
|
};
|
||||||
const attributionOverride = params.tilejson && params.tilejson.attribution;
|
const attributionOverride = params.tilejson && params.tilejson.attribution;
|
||||||
if (styleJSON.center && styleJSON.zoom) {
|
if (styleJSON.center && styleJSON.zoom) {
|
||||||
tileJSON.center = styleJSON.center.concat(styleJSON.zoom);
|
tileJSON.center = styleJSON.center.concat(Math.round(styleJSON.zoom));
|
||||||
}
|
}
|
||||||
Object.assign(tileJSON, params.tilejson || {});
|
Object.assign(tileJSON, params.tilejson || {});
|
||||||
tileJSON.tiles = params.domains || options.domains;
|
tileJSON.tiles = params.domains || options.domains;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue