fix: center
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
bf4dbf319a
commit
b199901dbc
1 changed files with 1 additions and 1 deletions
|
|
@ -483,7 +483,7 @@ function start(opts) {
|
||||||
for (const id of Object.keys(serving.data || {})) {
|
for (const id of Object.keys(serving.data || {})) {
|
||||||
data[id] = Object.assign({}, serving.data[id]);
|
data[id] = Object.assign({}, serving.data[id]);
|
||||||
let tilejson = Object.assign({}, serving.data[id].tileJSON);
|
let tilejson = Object.assign({}, serving.data[id].tileJSON);
|
||||||
const center = data[id].tilejson.center;
|
const center = tilejson.center;
|
||||||
if (center) {
|
if (center) {
|
||||||
data[id].viewer_hash = `#${center[2]}/${center[1].toFixed(
|
data[id].viewer_hash = `#${center[2]}/${center[1].toFixed(
|
||||||
5,
|
5,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue