Skip to content

3D Tiles Source

A 3d-tiles source points at a 3D Tiles tileset (a tileset.json hierarchy). Render it with a 3d-tiles layer.

PropertyTypeDefaultDescription
type"3d-tiles"(required)Source type.
urlstring(required)URL of the tileset.json.
crsstring—Coordinate reference system of the content.

Google Photorealistic 3D Tiles from Google Maps Platform are supported. A tile whose content format is not supported is skipped, and the rest of the tileset still renders.

Tile FormatSupport
b3dm (Batched 3D Model)⚠️ glTF 2.0 payloads only
pnts (Point Cloud)⚠️ Part of the feature table, see PNTS attributes
i3dm (Instanced 3D Model)⚠️ Triangle meshes only
cmpt (Composite)❌
External tileset (tileset.json as content)✅

Navara reads only part of the pnts feature table. Point colors are interpreted as sRGB. A tile without colors is drawn in the layer color. Point alpha (from RGBA or CONSTANT_RGBA) applies only when the layer material sets transparent: true; otherwise points are drawn opaque. Translucent points blend without being sorted, so where they overlap, the result can depend on the drawing order.

SemanticSupport
POSITION✅
POSITION_QUANTIZED✅
RTC_CENTER✅
RGB✅
RGBA✅
RGB565✅
CONSTANT_RGBA✅
NORMAL / NORMAL_OCT16P❌
BATCH_ID and the batch table❌
3DTILES_draco_point_compression⚠️ POSITION, RGB, and RGBA only
FeatureDescription
GLB contentTiles using GLB (binary glTF) as the content format.
glTF contentTiles using glTF (JSON, .gltf) as the content format.
GLB POINTS primitivePoint cloud rendering for glTF meshes with mode: POINTS (3D Tiles 1.1 point cloud).
EXT_mesh_featuresFeature identification via the first FeatureId set of each glTF primitive, per vertex (attribute or implicit index) or per texel (feature ID texture).
EXT_structural_metadataAccess to per-feature metadata via property tables embedded in glTF assets. Property textures and property attributes are not read.
EXT_mesh_gpu_instancingInstanced triangle meshes, drawn in one draw call per mesh. Points and lines draw once.
EXT_instance_featuresFeature identification per instance, for picking and styling each instance.
Tileset metadataTileset, tile, content and group metadata, see Metadata.
KHR_draco_mesh_compressionDecoding of Draco-compressed mesh data.
KHR_mesh_quantizationQuantized vertex attributes for compact glTF assets.
EXT_meshopt_compressionDecoding of meshopt-compressed buffers.
FeatureSupport
refine (ADD / REPLACE)✅
Tile transform✅
b3dm RTC_CENTER and glTF CESIUM_RTC✅
data: URI content✅
Multiple contents per tile (contents)✅
Pre-1.0 tilesets (content.url, legacy b3dm headers)✅
viewerRequestVolume❌
asset.gltfUpAxis⚠️ Y (the default) only

Navara reads the metadata of the tileset, tiles, contents and groups, written in the 3D Tiles 1.1 core or in the 1.0 3DTILES_metadata extension, and resolves each value with the tileset schema: normalized, offset and scale are applied, a noData value becomes the property’s default (or null), and an omitted property gets its default.

  • Tile, content and group metadata arrive with each feature set in the layer’s featureCreated event, as content.metadata: { tile?, content?, group? } where content.type is "3d-tiles". Each picked feature carries the same content in the view’s featureClick / featureHover / featureEnter events.
  • Tileset metadata and the schema arrive once per load in the layer’s tilesetLoaded event, and stay readable as layer.tileset.

The schema is read from the root tileset JSON, inline or through schemaUri. As in CesiumJS, every tile resolves against the root tileset’s schema and groups, and those of an external (nested) tileset are ignored. Metadata in implicit tiling subtrees is not read.

const layer = view.addLayer({ type: "3d-tiles", source: tileset });
layer.on("tilesetLoaded", ({ metadata }) => {
console.log("Tileset metadata:", metadata?.properties);
});
view.on("featureClick", (info) => {
const content = info?.content;
if (content?.type === "3d-tiles") {
console.log("Tile metadata:", content.metadata?.tile);
}
});
import ThreeView from "@navaramap/three";
const tileset = view.addSource({
type: "3d-tiles",
url: "https://example.com/tileset.json",
});
view.addLayer({ type: "3d-tiles", source: tileset, model: { opacity: 1.0 } });