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

Function loadSample

app/src/Frame.tsx:17–19  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

15 setTileset: Setter<Tileset | undefined>;
16}) => {
17 const loadSample = (url: string) => {
18 props.setTileset(tilesetFromString(url));
19 };
20
21 const onChangeFileInput = (
22 event: Event & { currentTarget: HTMLInputElement },

Callers 1

ExampleChooserFunction · 0.85

Calls 1

tilesetFromStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…