2D tiles
Import Tileset2D, ImageSet, and RasterSet from the tileset, image-set, and raster-set subpaths.
These APIs select, request, and cache 2D tiles independently of a renderer.
import {Tileset2D} from '@loaders.gl/tiles/tileset-2d';
import {RasterSet} from '@loaders.gl/tiles/raster-set';
Import format loaders and writers from separate subpaths:
| Logo | Format | Import path |
|---|---|---|
| — | MapLibre Tile | @loaders.gl/tiles/mlt |
| — | Mapbox Vector Tile and TileJSON | @loaders.gl/tiles/mvt |
| — | PMTiles archive | @loaders.gl/tiles/pmtiles |
Install @loaders.gl/tiles once; the subpaths are not separate npm packages.
For 3D Tiles and I3S, use the 3D tiles module.
The root still reexports Tileset3D, TILE_TYPE, TILESET_TYPE, and
LOD_METRIC_TYPE for deck.gl 9 compatibility. These deprecated exports will
be removed after deck.gl imports the 3D module directly.
See the Tileset2D API
and RasterSet API.
For shared terrain height fields, see the experimental TerrainSource.
For explicit native-CRS frames, see TileMatrix selection and shared runtime traversal. Viewport conversion and projected rendering remain application responsibilities.
Sources and credits
See the package source and license inventory and the project-wide Attributions and Credits.
Format guides
Package exports
All exported subpaths (22)
These are the package's public exports, including format entry points, parsers, writers, sources, and worker assets.
