@tangram.gl/tangram-renderer
v0.0.1
Published
Tangram vector-tile scene renderer powered by luma.gl
Readme
@tangram.gl/tangram-renderer
Tangram scene rendering powered by luma.gl, with WebGL 2 and WebGPU host paths. The renderer loads vector/raster data, evaluates Tangram styles, manages tiles and labels, and submits scene GPU work. It has no deck.gl or Leaflet dependency.
Install the published package with npm install @tangram.gl/tangram-renderer.
To build from the repository root:
yarn install --immutable
yarn build:modulesEntries
// Custom host: no classic camera factory or Leaflet integration.
import {Renderer, HostFrame} from '@tangram.gl/tangram-renderer/core';
// Standalone compatibility API with classic scene cameras.
import Tangram from '@tangram.gl/tangram-renderer';
// Optional validation; not included by importing the renderer.
import {TangramStyleSheetSchema} from '@tangram.gl/tangram-renderer/style-schema';The root preserves the default Tangram object and named Scene,
ClassicWebGLRenderer/Renderer, HostFrame, and LumaDeviceRenderer exports.
For deck.gl applications, use TangramLayer from @tangram.gl/tangram-layers.
The classic Leaflet adapter is example code under examples/classic.
Builds generate debug/minified ES modules, the core/package entries, declarations,
style schemas and workers. The main scene worker is embedded as a Blob;
loaders.gl and projected-basemap sidecars must be served separately when enabled.
No classic-script UMD bundles are produced, and dist/ is not committed.
Documentation and support
Chromium is the automated browser/GPU test runtime. WebGPU requires browser
support; custom legacy GLSL effects are not automatically supported on that path.
The original tangram npm package and
upstream documentation describe a separate
release, not this workspace's compatibility guarantees.
Tangram was created by Brett Camper and Mapzen. This fork preserves their MIT licensed work and extends it with vis.gl integration. Tile and imagery licenses are separate; the host must display source attribution.
