Skip to content

Commit 78a019a

Browse files
authored
feat(landing): show number of COGs in current imagery (#2772)
1 parent ddd99d3 commit 78a019a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/landing/src/components/debug.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ export class Debug extends Component<{ map: maplibregl.Map }, DebugState> {
175175
}
176176

177177
renderWMTS(): ReactNode {
178+
const imagery = this.state.imagery;
178179
return (
179180
<div className="debug__info">
180181
<label className="debug__label"></label>
181182
<div className="debug__value">
182-
{Config.map.tileMatrix.projection.toEpsgString()} - <a href={this.getWMTSLink()}>WMTS</a>
183+
{Config.map.tileMatrix.projection.toEpsgString()} - <a href={this.getWMTSLink()}>WMTS </a>
184+
{imagery == null ? null : <div title="Number of tiffs in imagery"> - {imagery.files.length} Tiffs</div>}
183185
</div>
184186
</div>
185187
);

0 commit comments

Comments
 (0)