viewer: fix tile inspector tabs [#49]

This commit is contained in:
Brandon Liu
2022-12-01 17:35:59 +08:00
parent b0fe16847e
commit 988a3b2132

View File

@@ -56,7 +56,7 @@ const TileRow = (props: {
<td>{y}</td> <td>{y}</td>
<td>{props.entry.offset}</td> <td>{props.entry.offset}</td>
<td>{props.entry.length}</td> <td>{props.entry.length}</td>
<td>{props.entry.runLength}</td> <td>{props.entry.runLength == 0 ? "directory" : "tile"}</td>
</TableRow> </TableRow>
); );
}; };
@@ -318,12 +318,13 @@ function Inspector(props: { file: PMTiles }) {
<table> <table>
<thead> <thead>
<tr> <tr>
<th>tileid</th>
<th>z</th> <th>z</th>
<th>x</th> <th>x</th>
<th>y</th> <th>y</th>
<th>offset</th> <th>offset</th>
<th>length</th> <th>length</th>
<th>is directory</th> <th>type</th>
</tr> </tr>
</thead> </thead>
<tbody>{rows}</tbody> <tbody>{rows}</tbody>