Skip to main content

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:

LogoFormatImport 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.

FormatImport subpath
@loaders.gl/tiles/arrow-table-tile-loader
@loaders.gl/tiles/image-set
@loaders.gl/tiles/mlt
@loaders.gl/tiles/mlt-loader
@loaders.gl/tiles/mlt/bundled
@loaders.gl/tiles/mvt
@loaders.gl/tiles/mvt-geojson-loader
@loaders.gl/tiles/mvt-loader
@loaders.gl/tiles/mvt/api
@loaders.gl/tiles/mvt/bundled
@loaders.gl/tiles/mvt/mvt-worker.js
@loaders.gl/tiles/mvt/tilejson-zod-schema
@loaders.gl/tiles/mvt/tilejson.schema.json
@loaders.gl/tiles/pmtiles
@loaders.gl/tiles/pmtiles/api
@loaders.gl/tiles/pmtiles/bundled
@loaders.gl/tiles/pmtiles/geoarrow
@loaders.gl/tiles/pmtiles/raster
@loaders.gl/tiles/raster-set
@loaders.gl/tiles/terrain
@loaders.gl/tiles/tile-matrix
@loaders.gl/tiles/tileset-2d