From 988a3b2132431e419f297b8fda6733207d5ebe7d Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 1 Dec 2022 17:35:59 +0800 Subject: [PATCH] viewer: fix tile inspector tabs [#49] --- app/src/Inspector.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/Inspector.tsx b/app/src/Inspector.tsx index dba8599c..ac854dac 100644 --- a/app/src/Inspector.tsx +++ b/app/src/Inspector.tsx @@ -56,7 +56,7 @@ const TileRow = (props: { {y} {props.entry.offset} {props.entry.length} - {props.entry.runLength} + {props.entry.runLength == 0 ? "directory" : "tile"} ); }; @@ -318,12 +318,13 @@ function Inspector(props: { file: PMTiles }) { + - + {rows}
tileid z x y offset lengthis directorytype