MCPcopy
hub / github.com/protomaps/PMTiles / tileTypeExt

Function tileTypeExt

js/src/index.ts:211–219  ·  view source on GitHub ↗
(t: TileType)

Source from the content-addressed store, hash-verified

209}
210
211export function tileTypeExt(t: TileType): string {
212 if (t === TileType.Mvt) return ".mvt";
213 if (t === TileType.Png) return ".png";
214 if (t === TileType.Jpeg) return ".jpg";
215 if (t === TileType.Webp) return ".webp";
216 if (t === TileType.Avif) return ".avif";
217 if (t === TileType.Mlt) return ".mlt";
218 return "";
219}
220
221const HEADER_SIZE_BYTES = 127;
222

Callers 5

v3.test.tsFile · 0.90
handlerRawFunction · 0.85
fetchFunction · 0.85
getTileJsonMethod · 0.85
ArchiveViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…