MCPcopy Create free account

hub / github.com/protomaps/PMTiles / functions

Functions271 in github.com/protomaps/PMTiles

↓ 28 callersMethodget
* Fetch a {@link PMTiles} instance by URL, for remote PMTiles instances.
js/src/adapters.ts:206
↓ 28 callersFunctionzxy_to_tileid
(z: int, x: int, y: int)
python/pmtiles/pmtiles/tile.py:46
↓ 26 callersMethodget
(self, z, x, y)
python/pmtiles/pmtiles/v2.py:49
↓ 19 callersFunctiontileIdToZxy
(i: number)
js/src/index.ts:108
↓ 19 callersMethodwrite_tile
(self, tileid, data)
python/pmtiles/pmtiles/writer.py:66
↓ 17 callersMethodgetHeader
* 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 callersFunctiontileid_to_zxy
(tile_id: int)
python/pmtiles/pmtiles/tile.py:64
↓ 14 callersFunctionMmapSource
(f)
python/pmtiles/pmtiles/reader.py:14
↓ 14 callersFunctionall_tiles
(get_bytes)
python/pmtiles/pmtiles/reader.py:80
↓ 14 callersFunctiongetUint64
(v: DataView, offset: number)
js/src/index.ts:480
↓ 14 callersFunctionzxyToTileId
(z: number, x: number, y: number)
js/src/index.ts:77
↓ 13 callersFunctiontileTypeExt
(t: TileType)
js/src/index.ts:211
↓ 11 callersMethodadd
* 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 callersFunctionapiResp
( statusCode: number, body: string, isBase64Encoded = false, headers: Headers = {} )
serverless/aws/src/index.ts:109
↓ 11 callersMethodgetZxy
(z: number, x: number, y: number)
app/src/tileset.ts:16
↓ 11 callersFunctionread_uint64
(pos)
python/pmtiles/pmtiles/tile.py:246
↓ 11 callersFunctionwrite_uint64
(i)
python/pmtiles/pmtiles/tile.py:284
↓ 10 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext )
serverless/cloudflare/src/index.ts:92
↓ 10 callersMethodheader
(self)
python/pmtiles/pmtiles/v2.py:29
↓ 10 callersFunctionreadVarint
(p: BufferPosition)
js/src/index.ts:38
↓ 10 callersFunctionwrite_varint
(b_io: IO[bytes], i: int)
python/pmtiles/pmtiles/tile.py:122
↓ 9 callersFunctionfindTile
(entries: Entry[], tileId: number)
js/src/index.ts:258
↓ 9 callersMethodgetKey
()
js/src/index.ts:320
↓ 9 callersMethodgetStateUrl
()
app/src/tileset.ts:18
↓ 9 callersFunctionread_varint
(b_io: IO[bytes])
python/pmtiles/pmtiles/tile.py:107
↓ 8 callersFunctioncolorForIdx
(idx: number)
app/src/utils.ts:5
↓ 8 callersFunctionfind_tile
(entries: list[Entry], tile_id)
python/pmtiles/pmtiles/tile.py:85
↓ 7 callersMethodfinalize
(self, header, metadata)
python/pmtiles/pmtiles/writer.py:86
↓ 7 callersFunctionpmtiles_path
(name: string, setting?: string)
serverless/shared/index.ts:1
↓ 6 callersFunctioncacheableResponse
( body: ArrayBuffer | string | undefined, cacheableHeaders: Headers, status: number )
serverless/cloudflare/src/index.ts:131
↓ 6 callersFunctioncanNavigate
(z: number, x: number, y: number)
app/src/PageTile.tsx:357
↓ 6 callersFunctioncanNavigate
(targetIdx: number)
app/src/PageArchive.tsx:239
↓ 6 callersFunctiondeserialize_header
(buf: Buffer)
python/pmtiles/pmtiles/tile.py:238
↓ 6 callersMethodgetHeader
()
app/src/tileset.ts:61
↓ 6 callersMethodmetadata
(self)
python/pmtiles/pmtiles/reader.py:37
↓ 6 callersFunctionread_int32
(pos)
python/pmtiles/pmtiles/tile.py:249
↓ 6 callersFunctionsetVisibility
(layerName: string, visibility: string)
app/src/PageMap.tsx:309
↓ 6 callersFunctiontoNum
(low: number, high: number)
js/src/index.ts:10
↓ 6 callersFunctionwrite_int32
(i)
python/pmtiles/pmtiles/tile.py:287
↓ 6 callersFunctionwrite_uint8
(i)
python/pmtiles/pmtiles/tile.py:290
↓ 5 callersFunctioncreateHash
( currentHash: string, newHash: Record<string, string | undefined>, )
app/src/utils.ts:20
↓ 5 callersFunctionparseHash
(hash: string)
app/src/utils.ts:10
↓ 5 callersMethodreset
()
js/test/utils.ts:12
↓ 5 callersFunctiontilesetFromString
(url: string)
app/src/tileset.ts:230
↓ 4 callersFunctionformatBytes
(bytes: number, decimals = 2)
app/src/utils.ts:53
↓ 4 callersMethodgetBytes
(offset: number, length: number)
js/src/index.ts:324
↓ 4 callersMethodgetDirectory
( source: Source, offset: number, length: number, header: Header )
js/src/index.ts:683
↓ 4 callersMethodgetTileJson
* 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 callersFunctionloadSample
(url: string)
app/src/Frame.tsx:17
↓ 4 callersFunctionmbtiles_to_header_json
(mbtiles_metadata)
python/pmtiles/pmtiles/convert.py:11
↓ 4 callersFunctionserialize_directory
(entries: Sequence[Entry])
python/pmtiles/pmtiles/tile.py:178
↓ 3 callersFunctionMemorySource
(buf)
python/pmtiles/pmtiles/reader.py:23
↓ 3 callersFunctioncleanValue
( zxy: [number, number, number] | undefined, idx: number, )
app/src/PageTile.tsx:393
↓ 3 callersFunctiondeserialize_directory
(buf: Buffer)
python/pmtiles/pmtiles/tile.py:151
↓ 3 callersMethodgetMetadata
()
app/src/tileset.ts:17
↓ 3 callersMethodgetVectorLayers
()
app/src/tileset.ts:24
↓ 3 callersMethodgetZxy
* 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 callersFunctionget_bytes
(offset, length)
python/pmtiles/pmtiles/reader.py:17
↓ 3 callersMethodisVector
()
app/src/tileset.ts:27
↓ 3 callersFunctionload_directory
(data_bytes, offset, num_entries)
python/pmtiles/pmtiles/v2.py:5
↓ 3 callersMethodprune
()
js/src/index.ts:714
↓ 3 callersFunctionserialize_header
(h: HeaderDict)
python/pmtiles/pmtiles/tile.py:281
↓ 2 callersMethod_leaf_level
(self)
python/pmtiles/pmtiles/v2.py:45
↓ 2 callersFunctionaddTileset
(tileset: Tileset)
app/src/PageMap.tsx:115
↓ 2 callersFunctioncompressionToString
(t: Compression)
app/src/PageArchive.tsx:32
↓ 2 callersFunctiondeserializeIndex
(buffer: ArrayBuffer)
js/src/index.ts:528
↓ 2 callersFunctionflip_y
flip_y' from mbutil Copyright (c), Development Seed All rights reserved Licensed under BSD 3-Clause
python/pmtiles/pmtiles/convert.py:358
↓ 2 callersMethodgetBytes
(offset: number, length: number)
js/test/v3.test.ts:180
↓ 2 callersFunctiongetDirectory
( source: Source, decompress: DecompressFunc, offset: number, length: number, header: Header )
js/src/index.ts:612
↓ 2 callersFunctiongetHeaderAndRoot
( source: Source, decompress: DecompressFunc )
js/src/index.ts:581
↓ 2 callersMethodgetMaplibreSourceUrl
()
app/src/tileset.ts:20
↓ 2 callersMethodgetMetadata
()
app/src/tileset.ts:69
↓ 2 callersMethodgetMetadataAttempt
@hidden
js/src/index.ts:974
↓ 2 callersMethodgetZxyAttempt
@hidden
js/src/index.ts:903
↓ 2 callersFunctionget_dirs
get_dirs' from mbutil Copyright (c), Development Seed All rights reserved Licensed under BSD 3-Clause
python/pmtiles/pmtiles/convert.py:346
↓ 2 callersFunctionguess_maxzoom
(crs, bounds, width, height, tile_size)
python/rio-pmtiles/rio_pmtiles/scripts/cli.py:100
↓ 2 callersMethodheader
(self)
python/pmtiles/pmtiles/reader.py:34
↓ 2 callersMethodinvalidate
(source: Source)
js/src/index.ts:730
↓ 2 callersFunctionlayerFeatureCounts
( parsedTile?: Layer[] | ArrayBuffer, )
app/src/PageTile.tsx:97
↓ 2 callersFunctionnavigate
(z: number, x: number, y: number)
app/src/PageTile.tsx:352
↓ 2 callersFunctionoptimize_directories
(entries, target_root_len)
python/pmtiles/pmtiles/writer.py:43
↓ 2 callersMethodprune
()
js/src/index.ts:823
↓ 2 callersFunctionrotate
(n, x, y, rx, ry)
python/pmtiles/pmtiles/tile.py:37
↓ 2 callersFunctionrotate
( n: number, x: number, y: number, rx: number, ry: number )
js/src/index.ts:58
↓ 2 callersFunctiontargetTile
( z: number, x: number, y: number, )
app/src/PageTile.tsx:334
↓ 2 callersMethodtest
()
app/src/tileset.ts:29
↓ 2 callersFunctiontileInspectUrl
( stateUrl: string | undefined, zxy: [number, number, number], )
app/src/utils.ts:42
↓ 2 callersFunctiontile_path
( path: string )
serverless/shared/index.ts:13
↓ 2 callersFunctiontilesetFromFile
(file: File)
app/src/tileset.ts:238
↓ 2 callersFunctionwrite
(fname)
python/pmtiles/pmtiles/writer.py:16
↓ 1 callersMethodarchiveForProtocol
()
app/src/tileset.ts:31
↓ 1 callersFunctionbuild_roots_leaves
(entries, leaf_size)
python/pmtiles/pmtiles/writer.py:25
↓ 1 callersFunctionbytesToHeader
(bytes: ArrayBuffer, etag?: string)
js/src/index.ts:489
↓ 1 callersFunctiondata
A temporary directory containing a copy of the files in data.
python/rio-pmtiles/tests/conftest.py:35
↓ 1 callersFunctiondisk_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 callersFunctionfitToBounds
()
app/src/PageMap.tsx:93
↓ 1 callersMethodgetBounds
()
app/src/tileset.ts:21
↓ 1 callersMethodgetHeader
(source: Source)
js/src/index.ts:764
↓ 1 callersMethodgetLocalFileName
()
app/src/tileset.ts:19
↓ 1 callersMethodgetMaxZoom
()
app/src/tileset.ts:22
next →1–100 of 271, ranked by callers