diff --git a/lib/mbtiles.js b/lib/mbtiles.js index 335c934..93f7c91 100644 --- a/lib/mbtiles.js +++ b/lib/mbtiles.js @@ -400,7 +400,7 @@ MBTiles.prototype.getInfo = function(callback) { (info.bounds[3] - info.bounds[1]) / 2 + info.bounds[1], (range <= 1) ? info.maxzoom : Math.floor(range * 0.5) + info.minzoom ]; - if (info.center && (info.center.length !== 3 || info.center[0] === null)) { + if (info.center && (info.center.length !== 3 || info.center[0] === null || isNaN(info.center[2]))) { delete info.center; }