Merge pull request #441 from hfs/fix-preview-thumbnail
Fix preview thumbnail for raster data sources
This commit is contained in:
commit
3c411cd1ac
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ function start(opts) {
|
|||
if (!data_.is_vector) {
|
||||
if (center) {
|
||||
const centerPx = mercator.px([center[0], center[1]], center[2]);
|
||||
data_.thumbnail = `${center[2]}/${Math.floor(centerPx[0] / 256)}/${Math.floor(centerPx[1] / 256)}.${data_.format}`;
|
||||
data_.thumbnail = `${center[2]}/${Math.floor(centerPx[0] / 256)}/${Math.floor(centerPx[1] / 256)}.${data_.tileJSON.format}`;
|
||||
}
|
||||
|
||||
data_.xyz_link = utils.getTileUrls(
|
||||
|
|
Loading…
Reference in a new issue