Enum representing a compression algorithm used.
0 = unknown compression, for if you must use a different or unspecified algorithm.
1 = no compression.
2 = gzip
@@ -14,4 +14,4 @@
None
None:1
no compression.
Unknown
Unknown:0
unknown compression, for if you must use a different or unspecified algorithm.
\ No newline at end of file
diff --git a/docs/hierarchy.html b/docs/hierarchy.html
index dab4897..94767c7 100644
--- a/docs/hierarchy.html
+++ b/docs/hierarchy.html
@@ -1 +1 @@
-s2-pmtiles - v0.5.0
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index 361c750..bf549e1 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,4 +1,4 @@
-s2-pmtiles - v0.5.0
\ No newline at end of file
diff --git a/docs/modules.html b/docs/modules.html
index d6d40e0..d64a7ae 100644
--- a/docs/modules.html
+++ b/docs/modules.html
@@ -1,4 +1,4 @@
-s2-pmtiles - v0.5.0
A cache of directories. +
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Class DirCache<K, V>
A cache of directories. The key is the offset in the data and the value is the directory entries.
Type Parameters
Hierarchy
Index
Constructors
Methods
set
Parameters
the offset position in the data
the directory entries
Returns this
this
-Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Class PMTilesReader
The File reader is to be used by bun/node/deno on the local filesystem.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Class PMTilesReader
The File reader is to be used by bun/node/deno on the local filesystem.
Index
Constructors
Properties
Methods
Methods
get Header
Returns Promise<Header | S2Header>
get Metadata
Returns Metadata
+
get Metadata
Returns Promise<Metadata>
get Tile
Parameters
the zoom level of the tile
@@ -28,4 +28,4 @@Returns Promise<undefined | Uint8Array>
Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Class PMTilesWriter
Write a PMTiles file.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Class PMTilesWriter
Write a PMTiles file.
Index
Constructors
Properties
the tile X coordinate
the tile Y coordinate
the tile data to store
-Returns Promise<void>
Settings
Member Visibility
Theme
On This Page
Returns Promise<void>
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Class S2PMTilesReader
The File reader is to be used by bun/node/deno on the local filesystem.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Class S2PMTilesReader
The File reader is to be used by bun/node/deno on the local filesystem.
Index
Constructors
Properties
Returns Promise<undefined | Uint8Array>
Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Enumeration Compression
Enum representing a compression algorithm used. +
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Enumeration Compression
Enum representing a compression algorithm used. 0 = unknown compression, for if you must use a different or unspecified algorithm. 1 = no compression. 2 = gzip @@ -14,4 +14,4 @@
None
no compression.
Unknown
unknown compression, for if you must use a different or unspecified algorithm.
Zstd
zstd.
-Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Enumeration TileType
Describe the type of tiles stored in the archive. +
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Enumeration TileType
Describe the type of tiles stored in the archive. 0 is unknown/other, 1 is "MVT" vector tiles.
Index
Enumeration Members
Png
Image tiles.
Unknown
unknown/other.
Webp
Image tiles.
-Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function bytesToHeader
Parse raw header bytes into a Header object.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function bytesToHeader
Parse raw header bytes into a Header object.
Parameters
the raw header bytes
Returns Header
the parsed header
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function deserializeDir
Parameters
the buffer to deserialize
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function deserializeDir
Parameters
the buffer to deserialize
Returns Entry[]
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function findTile
Low-level function for looking up a TileID or leaf directory inside a directory.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function findTile
Low-level function for looking up a TileID or leaf directory inside a directory.
Parameters
the directory entries
the tile ID
Returns Entry | null
the entry associated with the tile, or null if not found
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function getUint64
Parameters
a DataView
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function getUint64
Parameters
a DataView
the offset in the DataView
Returns number
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function headerToBytes
Parameters
the header object
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function headerToBytes
Parameters
the header object
Returns Uint8Array
the raw header bytes
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function readVarint
Parameters
the buffer with it's position
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function readVarint
Parameters
the buffer with it's position
Returns number
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function readVarintRemainder
Parameters
the low 32 bits of the number
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function readVarintRemainder
Parameters
the low 32 bits of the number
the buffer with it's position
Returns number
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function s2BytesToHeader
Parse raw header bytes into a Header object.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function s2BytesToHeader
Parse raw header bytes into a Header object.
Parameters
the raw header bytes
Returns S2Header
the parsed header
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function s2HeaderToBytes
Parameters
the header object
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function s2HeaderToBytes
Parameters
the header object
Returns Uint8Array
the raw header bytes
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function serializeDir
Parameters
the directory entries
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function serializeDir
Parameters
the directory entries
Returns Uint8Array
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function setUint64
Take a large 64-bit number and encode it into a DataView
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function setUint64
Take a large 64-bit number and encode it into a DataView
Parameters
a DataView
the offset in the DataView
the encoded 64-bit number
-Returns void
Settings
Member Visibility
Theme
Returns void
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function tileIDToZxy
Convert a Hilbert TileID to Z,X,Y.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function tileIDToZxy
Convert a Hilbert TileID to Z,X,Y.
Parameters
the encoded tile ID
Returns Tile
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function writeBigVarint
Write a varint larger then 54-bits.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function writeBigVarint
Write a varint larger then 54-bits.
Parameters
the number
the buffer with it's position to write at
-Returns void
Settings
Member Visibility
Theme
Returns void
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function writeBigVarintHigh
Write a varint larger then 54-bits on the high end
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function writeBigVarintHigh
Write a varint larger then 54-bits on the high end
Parameters
the high 32 bits
the buffer with it's position to write at
-Returns void
Settings
Member Visibility
Theme
Returns void
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function writeBigVarintLow
Write a varint larger then 54-bits on the low end
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function writeBigVarintLow
Write a varint larger then 54-bits on the low end
Parameters
lower 32 bits
unused "high" bits
the buffer with it's position to write at
-Returns void
Settings
Member Visibility
Theme
Returns void
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function writeVarint
Write a varint. Can be max 64-bits. Numbers are coerced to an unsigned +
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function writeVarint
Write a varint. Can be max 64-bits. Numbers are coerced to an unsigned while number before using this function.
Parameters
any whole unsigned number.
the buffer with it's position to write at
-Returns void
Settings
Member Visibility
Theme
Returns void
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Function zxyToTileID
Convert Z,X,Y to a Hilbert TileID.
+- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Function zxyToTileID
Convert Z,X,Y to a Hilbert TileID.
Parameters
the zoom level
the x coordinate
the y coordinate
Returns number
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0s2-pmtiles - v0.5.0
Class Hierarchy
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0s2-pmtiles - v1.0.0
Class Hierarchy
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0s2-pmtiles - v0.5.0
+s2-pmtiles - v1.0.0 s2-pmtiles
@@ -55,4 +55,4 @@
AboutRead The SpecInstall- Requirements
- Running
Tests - Generating
Coverage Report
\ No newline at end of file
+
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0s2-pmtiles - v1.0.0
Generating Coverage Report
To generate the coverage report, use the following command:
-Settings
Member Visibility
Theme
On This Page
- Example use
- Browser
Support
DevelopmentSettings
Member Visibility
Theme
On This Page
- Example use
- Browser
Support
Development- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Interface BufferPosition
A buffer with the position to read from
-Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Interface BufferPosition
A buffer with the position to read from
+Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Interface Entry
PMTiles v3 directory entry.
-Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Interface Entry
PMTiles v3 directory entry.
+Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Interface Header
PMTiles v3 header storing basic archive-level information.
-Hierarchy (view full)
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Interface Header
PMTiles v3 header storing basic archive-level information.
+Hierarchy (view full)
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Interface S2Entries
Store entries for each Face
-Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Interface S2Entries
Store entries for each Face
+Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Interface S2Header
S2PMTiles v3 header storing basic archive-level information.
-Hierarchy (view full)
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Interface S2Header
S2PMTiles v3 header storing basic archive-level information.
+Hierarchy (view full)
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0s2-pmtiles - v0.5.0
Index
Enumerations
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0s2-pmtiles - v1.0.0
Index
Enumerations
Classes
Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Type alias DecompressFunc
Provide a decompression implementation that acts on
+buf
and returns decompressed data.- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Type alias DecompressFunc
Provide a decompression implementation that acts on
buf
and returns decompressed data.Should use the native DecompressionStream on browsers, zlib on node. Should throw if the compression algorithm is not supported.
-Type declaration
Parameters
Returns Promise<Uint8Array>
Settings
Member Visibility
Theme
Type declaration
Parameters
Returns Promise<Uint8Array>
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Type alias Point
An array of two numbers representing a point in 2D space.
-Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Type alias Point
An array of two numbers representing a point in 2D space.
+Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v0.5.0Type alias Tile
A tile, in the format of ZXY.
-Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
s2-pmtiles - v1.0.0Type alias Tile
A tile, in the format of ZXY.
+Settings
Member Visibility
Theme