MCPcopy Create free account
hub / github.com/protomaps/PMTiles / zxyFromHash

Function zxyFromHash

app/src/utils.ts:36–40  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

34}
35
36export function zxyFromHash(s: string): [number, number, number] | undefined {
37 const split = s.split("/");
38 if (split.length !== 3) return undefined;
39 return split.map((n) => +n) as [number, number, number];
40}
41
42export function tileInspectUrl(
43 stateUrl: string | undefined,

Callers 1

PageTileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…