Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/protomaps/PMTiles
/ functions
Functions
271 in github.com/protomaps/PMTiles
⨍
Functions
271
◇
Types & classes
76
↳
Endpoints
3
↓ 28 callers
Method
get
* Fetch a {@link PMTiles} instance by URL, for remote PMTiles instances.
js/src/adapters.ts:206
↓ 28 callers
Function
zxy_to_tileid
(z: int, x: int, y: int)
python/pmtiles/pmtiles/tile.py:46
↓ 26 callers
Method
get
(self, z, x, y)
python/pmtiles/pmtiles/v2.py:49
↓ 19 callers
Function
tileIdToZxy
(i: number)
js/src/index.ts:108
↓ 19 callers
Method
write_tile
(self, tileid, data)
python/pmtiles/pmtiles/writer.py:66
↓ 17 callers
Method
getHeader
* Return the header of the archive, * including information such as tile type, min/max zoom, bounds, and summary statistics.
js/src/index.ts:898
↓ 15 callers
Function
tileid_to_zxy
(tile_id: int)
python/pmtiles/pmtiles/tile.py:64
↓ 14 callers
Function
MmapSource
(f)
python/pmtiles/pmtiles/reader.py:14
↓ 14 callers
Function
all_tiles
(get_bytes)
python/pmtiles/pmtiles/reader.py:80
↓ 14 callers
Function
getUint64
(v: DataView, offset: number)
js/src/index.ts:480
↓ 14 callers
Function
zxyToTileId
(z: number, x: number, y: number)
js/src/index.ts:77
↓ 13 callers
Function
tileTypeExt
(t: TileType)
js/src/index.ts:211
↓ 11 callers
Method
add
* Add a {@link PMTiles} instance to the global protocol instance. * * For remote fetch sources, references in MapLibre styles like pmtiles://htt
js/src/adapters.ts:199
↓ 11 callers
Function
apiResp
( statusCode: number, body: string, isBase64Encoded = false, headers: Headers = {} )
serverless/aws/src/index.ts:109
↓ 11 callers
Method
getZxy
(z: number, x: number, y: number)
app/src/tileset.ts:16
↓ 11 callers
Function
read_uint64
(pos)
python/pmtiles/pmtiles/tile.py:246
↓ 11 callers
Function
write_uint64
(i)
python/pmtiles/pmtiles/tile.py:284
↓ 10 callers
Function
fetch
( request: Request, env: Env, ctx: ExecutionContext )
serverless/cloudflare/src/index.ts:92
↓ 10 callers
Method
header
(self)
python/pmtiles/pmtiles/v2.py:29
↓ 10 callers
Function
readVarint
(p: BufferPosition)
js/src/index.ts:38
↓ 10 callers
Function
write_varint
(b_io: IO[bytes], i: int)
python/pmtiles/pmtiles/tile.py:122
↓ 9 callers
Function
findTile
(entries: Entry[], tileId: number)
js/src/index.ts:258
↓ 9 callers
Method
getKey
()
js/src/index.ts:320
↓ 9 callers
Method
getStateUrl
()
app/src/tileset.ts:18
↓ 9 callers
Function
read_varint
(b_io: IO[bytes])
python/pmtiles/pmtiles/tile.py:107
↓ 8 callers
Function
colorForIdx
(idx: number)
app/src/utils.ts:5
↓ 8 callers
Function
find_tile
(entries: list[Entry], tile_id)
python/pmtiles/pmtiles/tile.py:85
↓ 7 callers
Method
finalize
(self, header, metadata)
python/pmtiles/pmtiles/writer.py:86
↓ 7 callers
Function
pmtiles_path
(name: string, setting?: string)
serverless/shared/index.ts:1
↓ 6 callers
Function
cacheableResponse
( body: ArrayBuffer | string | undefined, cacheableHeaders: Headers, status: number )
serverless/cloudflare/src/index.ts:131
↓ 6 callers
Function
canNavigate
(z: number, x: number, y: number)
app/src/PageTile.tsx:357
↓ 6 callers
Function
canNavigate
(targetIdx: number)
app/src/PageArchive.tsx:239
↓ 6 callers
Function
deserialize_header
(buf: Buffer)
python/pmtiles/pmtiles/tile.py:238
↓ 6 callers
Method
getHeader
()
app/src/tileset.ts:61
↓ 6 callers
Method
metadata
(self)
python/pmtiles/pmtiles/reader.py:37
↓ 6 callers
Function
read_int32
(pos)
python/pmtiles/pmtiles/tile.py:249
↓ 6 callers
Function
setVisibility
(layerName: string, visibility: string)
app/src/PageMap.tsx:309
↓ 6 callers
Function
toNum
(low: number, high: number)
js/src/index.ts:10
↓ 6 callers
Function
write_int32
(i)
python/pmtiles/pmtiles/tile.py:287
↓ 6 callers
Function
write_uint8
(i)
python/pmtiles/pmtiles/tile.py:290
↓ 5 callers
Function
createHash
( currentHash: string, newHash: Record<string, string | undefined>, )
app/src/utils.ts:20
↓ 5 callers
Function
parseHash
(hash: string)
app/src/utils.ts:10
↓ 5 callers
Method
reset
()
js/test/utils.ts:12
↓ 5 callers
Function
tilesetFromString
(url: string)
app/src/tileset.ts:230
↓ 4 callers
Function
formatBytes
(bytes: number, decimals = 2)
app/src/utils.ts:53
↓ 4 callers
Method
getBytes
(offset: number, length: number)
js/src/index.ts:324
↓ 4 callers
Method
getDirectory
( source: Source, offset: number, length: number, header: Header )
js/src/index.ts:683
↓ 4 callers
Method
getTileJson
* Construct a [TileJSON](https://github.com/mapbox/tilejson-spec) object. * * baseTilesUrl is the desired tiles URL, excluding the suffix `/{z}/
js/src/index.ts:1013
↓ 4 callers
Function
loadSample
(url: string)
app/src/Frame.tsx:17
↓ 4 callers
Function
mbtiles_to_header_json
(mbtiles_metadata)
python/pmtiles/pmtiles/convert.py:11
↓ 4 callers
Function
serialize_directory
(entries: Sequence[Entry])
python/pmtiles/pmtiles/tile.py:178
↓ 3 callers
Function
MemorySource
(buf)
python/pmtiles/pmtiles/reader.py:23
↓ 3 callers
Function
cleanValue
( zxy: [number, number, number] | undefined, idx: number, )
app/src/PageTile.tsx:393
↓ 3 callers
Function
deserialize_directory
(buf: Buffer)
python/pmtiles/pmtiles/tile.py:151
↓ 3 callers
Method
getMetadata
()
app/src/tileset.ts:17
↓ 3 callers
Method
getVectorLayers
()
app/src/tileset.ts:24
↓ 3 callers
Method
getZxy
* Primary method to get a single tile's bytes from an archive. * * Returns undefined if the tile does not exist in the archive.
js/src/index.ts:956
↓ 3 callers
Function
get_bytes
(offset, length)
python/pmtiles/pmtiles/reader.py:17
↓ 3 callers
Method
isVector
()
app/src/tileset.ts:27
↓ 3 callers
Function
load_directory
(data_bytes, offset, num_entries)
python/pmtiles/pmtiles/v2.py:5
↓ 3 callers
Method
prune
()
js/src/index.ts:714
↓ 3 callers
Function
serialize_header
(h: HeaderDict)
python/pmtiles/pmtiles/tile.py:281
↓ 2 callers
Method
_leaf_level
(self)
python/pmtiles/pmtiles/v2.py:45
↓ 2 callers
Function
addTileset
(tileset: Tileset)
app/src/PageMap.tsx:115
↓ 2 callers
Function
compressionToString
(t: Compression)
app/src/PageArchive.tsx:32
↓ 2 callers
Function
deserializeIndex
(buffer: ArrayBuffer)
js/src/index.ts:528
↓ 2 callers
Function
flip_y
flip_y' from mbutil Copyright (c), Development Seed All rights reserved Licensed under BSD 3-Clause
python/pmtiles/pmtiles/convert.py:358
↓ 2 callers
Method
getBytes
(offset: number, length: number)
js/test/v3.test.ts:180
↓ 2 callers
Function
getDirectory
( source: Source, decompress: DecompressFunc, offset: number, length: number, header: Header )
js/src/index.ts:612
↓ 2 callers
Function
getHeaderAndRoot
( source: Source, decompress: DecompressFunc )
js/src/index.ts:581
↓ 2 callers
Method
getMaplibreSourceUrl
()
app/src/tileset.ts:20
↓ 2 callers
Method
getMetadata
()
app/src/tileset.ts:69
↓ 2 callers
Method
getMetadataAttempt
@hidden
js/src/index.ts:974
↓ 2 callers
Method
getZxyAttempt
@hidden
js/src/index.ts:903
↓ 2 callers
Function
get_dirs
get_dirs' from mbutil Copyright (c), Development Seed All rights reserved Licensed under BSD 3-Clause
python/pmtiles/pmtiles/convert.py:346
↓ 2 callers
Function
guess_maxzoom
(crs, bounds, width, height, tile_size)
python/rio-pmtiles/rio_pmtiles/scripts/cli.py:100
↓ 2 callers
Method
header
(self)
python/pmtiles/pmtiles/reader.py:34
↓ 2 callers
Method
invalidate
(source: Source)
js/src/index.ts:730
↓ 2 callers
Function
layerFeatureCounts
( parsedTile?: Layer[] | ArrayBuffer, )
app/src/PageTile.tsx:97
↓ 2 callers
Function
navigate
(z: number, x: number, y: number)
app/src/PageTile.tsx:352
↓ 2 callers
Function
optimize_directories
(entries, target_root_len)
python/pmtiles/pmtiles/writer.py:43
↓ 2 callers
Method
prune
()
js/src/index.ts:823
↓ 2 callers
Function
rotate
(n, x, y, rx, ry)
python/pmtiles/pmtiles/tile.py:37
↓ 2 callers
Function
rotate
( n: number, x: number, y: number, rx: number, ry: number )
js/src/index.ts:58
↓ 2 callers
Function
targetTile
( z: number, x: number, y: number, )
app/src/PageTile.tsx:334
↓ 2 callers
Method
test
()
app/src/tileset.ts:29
↓ 2 callers
Function
tileInspectUrl
( stateUrl: string | undefined, zxy: [number, number, number], )
app/src/utils.ts:42
↓ 2 callers
Function
tile_path
( path: string )
serverless/shared/index.ts:13
↓ 2 callers
Function
tilesetFromFile
(file: File)
app/src/tileset.ts:238
↓ 2 callers
Function
write
(fname)
python/pmtiles/pmtiles/writer.py:16
↓ 1 callers
Method
archiveForProtocol
()
app/src/tileset.ts:31
↓ 1 callers
Function
build_roots_leaves
(entries, leaf_size)
python/pmtiles/pmtiles/writer.py:25
↓ 1 callers
Function
bytesToHeader
(bytes: ArrayBuffer, etag?: string)
js/src/index.ts:489
↓ 1 callers
Function
data
A temporary directory containing a copy of the files in data.
python/rio-pmtiles/tests/conftest.py:35
↓ 1 callers
Function
disk_to_pmtiles
Convert a directory of raster format tiles on disk to PMTiles. Requires metadata.json in the root of the directory. Tiling scheme of the dir
python/pmtiles/pmtiles/convert.py:201
↓ 1 callers
Function
fitToBounds
()
app/src/PageMap.tsx:93
↓ 1 callers
Method
getBounds
()
app/src/tileset.ts:21
↓ 1 callers
Method
getHeader
(source: Source)
js/src/index.ts:764
↓ 1 callers
Method
getLocalFileName
()
app/src/tileset.ts:19
↓ 1 callers
Method
getMaxZoom
()
app/src/tileset.ts:22
next →
1–100 of 271, ranked by callers