百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

three-tile

> 编程语言
开源

使用3js的轻量级3D平面图. {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢

382 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用3js的轻量级3D平面图. {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢

English | 简体中文

three-tile

A lightweight 3D tile map development framework Documentation | GitHub Repository | Issues

1. Introduction

three-tile is an open-source, lightweight frontend 3D tile framework built on Three.js using TypeScript. It provides 3D terrain models and lets you easily add 3D tile maps to your applications. After dozens of iterations, the framework's features and effects meet production environment requirements and have been validated and applied in multiple projects.

three-tile is more like LOD terrain from game development, but it can use data from map service providers to render maps.

::: warning Disclaimer This framework does not contain any map data. Maps used in examples and demos directly reference third-party data and do not represent the position of this development framework. Developers should comply with relevant regulations and use legal maps. :::

https://sxguojf.github.io/demo/

2. Features

Feature Description
Lightweight Under 70KB (zip: 28KB) after bundling (excluding plugins), easy to integrate
Fast Resource usage optimized to the extreme, low memory footprint, fast rendering, integrated graphics can easily achieve 60fps
Few Dependencies Only one external dependency: threejs , all features self-implemented
Easy to Extend Plugin-based architecture, tile data loading, parsing, modeling, and rendering are all independent from core
Simple to Use Almost no learning curve if you're familiar with threejs

3. Use Cases

1. Add Terrain to Existing Applications

In threejs examples, most simple applications use a plane as ground. If you replace the plane with real terrain, the effect immediately improves.

2. Simple WebGIS

three-tile map models can directly use mainstream tile data sources to render realistic terrain; provides conversion from geographic coordinates (longitude, latitude, altitude) to 3D scene coordinates, allowing map elements (models, labels) to be overlaid at specified geographic locations.

3. Game Development

Fully supports all built-in Three.js controllers. Simply switch controllers to implement first-person, flight, and other game features.

4. Data Visualization

Data visualization scenarios like atmosphere, satellite cloud maps, wind field animations, and volume rendering.

4. Quick Start

Installation

npm

bash
npm i three -S
npm i three-tile -S

Script Tag

xml

Usage

  1. Define map data source
  2. Create map model
  3. Add map model to 3D scene
typescript
import * as THREE from "three";
import * as tt from "three-tile";
import * as plugin from "three-tile/plugin";

// Create map
const map = tt.TileMap.create({
	// Image data source
	imgSource: new plugin.ArcGisSource(),
	// DEM data source
	demSource: new plugin.ArcGisDemSource(),
});
// Rotate map to xz plane
map.rotateX(-Math.PI / 2);

// Initialize viewer
const viewer = new plugin.GLViewer("#map");
// Add map to scene
viewer.scene.add(map);

5. Supported Map Data Sources

Built-in support for mainstream tile map services:

  • ArcGIS
  • Mapbox
  • Bing
  • Google
  • Tianditu (China)
  • Gaode (China)
  • Tencent (China)

Also supports custom tile data source extensions.

6. API Documentation

  • Core Library API - three-tile core library
  • Plugin API - three-tile plugins

7. Applications

Basics

  • Introduction - What is three-tile, features, use cases
  • Quick Start - Installation and basic usage

Examples

Category Examples
Basic Functions Get Mouse Location · Get Loading Info · Set Map Zoom · Custom Map Source
Map Display Fake Earth · Compass · Limit Camera Height · Skybox
Terrain Control Add Mesh · Terrain Scale · Limit Pan · Set Map Bounds
Material Effects Add Shadow · CSS Filter · Add Sky · Add Water
Data Overlay GeoJSON · MVT · WMS Source · CSS2D Labels
Model Loading Add Model · Icon Marker · Logo Marker · White Model
Terrain Effects Mask · Single DEM · Single Image · Create Hole · Polygon Hole
Scene Config Background · Switch Controls · Ground Group · 2D Map
Advanced Non-Map Tile · 3DTiles Rendering · SplatLuma · SplatDrei

Application Examples

Example Description
First Person First-person view navigation
Flight Controls Free flight mode
Walking Ground walking navigation
Satellite Cloud Map 3D cloud map display
Contour Lines Terrain contour lines
Atmosphere Effects Atmospheric rendering effects
GeoJSON 3D GeoJSON 3D building display

8. References

  • https://threejs.org/
  • https://github.com/CesiumGS/cesium
  • https://github.com/mapbox/mapbox-gl-js
  • https://leafletjs.com
  • https://github.com/tentone/geo-three
  • https://github.com/ebeaufay/threedtiles
  • https://github.com/NASA-AMMOS/3DTilesRendererJS
  • https://github.com/wlgys8/GPUDrivenTerrainLearn
  • https://github.com/lijundacom/LeoGPUDriven
  • https://github.com/mapbox/martini
  • https://github.com/visgl/loaders.gl/blob/master/modules/terrain/src/lib/helpers/skirt.ts

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript3d3dtilescesiumgis

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言