maptalks/maptalks.js hiện có 4.5k sao trên GitHub, viết chủ yếu bằng HTML. A light and plugable JavaScript library for integrated 2D/3D maps.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
maptalks is upgrading to maptalks-gl, a webgl and webgpu driven 2D/3D map engine.
If you are looking for the old maptalks source codes, it has moved to packages/maptalks as a submodule.
About
maptalks-gl will be a pure WebGL driven map engine with performance and rich features in 3D. maptalks-gl is in active development now, and will be officially published in few months.
With consistent API upgrade, you can easily migrate from legacy maptalks to maptalks-gl. (TBD)
If you are interested in what is going on, please refer to the previous releases notes of maptalks-gl.
Features
Vector Tile format support
3DTiles format support
GLTF format support
Magnificant performance enhancement by WebGL
Rich 3D analysis functions
Traffic simulation animations
Usage
Install
npm i maptalks-gl
#or
yarn add maptalks-gl
#or
pnpm i maptalks-gl
ESM
import {
Map,
GroupGLLayer,
VectorTileLayer,
GLTFMarker,
GLTFLayer,
PolygonLayer
} from 'maptalks-gl';
const map = new Map('map', {
center: [0, 0],
zoom: 2
});
const vtLayer = new VectorTileLayer('vt', {
urlTemplate: 'http://tile.maptalks.com/test/planet-single/{z}/{x}/{y}.mvt'
});
const groupLayer = new GroupGLLayer('group', [vtLayer]).addTo(map);
const gltfLayer = new GLTFLayer('gltflayer');
groupLayer.addLayer(gltfLayer);
const polygonLayer = new PolygonLayer('polygonlayer');
groupLayer.addLayer(polygonLayer);
//other layers
CDN
You can also reference umd-formatted packages via CDN, note that all exported variables under the gl system are automatically mounted in the maptalks namespace.
<script type="text/javascript" src="https://unpkg.com/maptalks-gl/dist/maptalks-gl.js"></script>
<script type="text/javascript">
const map = new maptalks.Map('map', {
center: [0, 0],
zoom: 2
});
const vtLayer = new maptalks.VectorTileLayer('vt', {
urlTemplate: 'http://tile.maptalks.com/test/planet-single/{z}/{x}/{y}.mvt'
});
const groupLayer = new maptalks.GroupGLLayer('group', [vtLayer]).addTo(map);
const gltfLayer = new maptalks.GLTFLayer('gltflayer');
groupLayer.addLayer(gltfLayer)
const polygonLayer = new maptalks.PolygonLayer('polygonlayer');
groupLayer.addLayer(polygonLayer);
//other layers
</script>
Optional transcoders
If you need to introduce optional draco, ktx2 and other gl format decoding plugins, just introduce the decoding plugins after introducing the summary package as before:
reshader.gl A regl-based implementation of the 3D rendering interface, including renderer, scene, mesh, material and other commonly used rendering base classes and predefined rendering materials, such as PBR.
Map
maptalks maptalks library source codes.
Layers
gl WebGL base layer functionality, including GroupGLLayer, terrain, post-processing and various 3D mask implementations.
layer-3dtiles Implementation of the 3dtiles layer (Geo3DTilesLayer).
layer-gltf Implementation of gltf layer (GLTFLayer/GLTFMarker).
layer-video video layer (VideoLayer/VideoSurface) implementation
Vector tiles
vt-plugin Interface definition for the vector tile rendering plugin.
analysis Implementation of various 3D analysis functions.
traffic Implementation of traffic simulation.
transcoders
transcoders.crn crn format parsing library
transcoders.draco draco format parser library
transcoders.ktx ktx2 compressed texture format parser library.
Installation and compilation
node environment
The current minimum node environment is 18.16.1, if you don't meet the minimum node version requirement, you can use nvm / fnm to manage the node version.
If you need to debug the code base in watch mode, and the target of the compilation contains the source code, run the following command in the root folder of package you are debugging:
pnpm run dev
Test
The project uses karma or electron-mocha (vt vs. layer-3dtiles) as the test framework, and the test cases are written based on mocha syntax.
Run a full test of the project
Run npm test under each project.
Run the tests for the specified use case
If the project is based on electron-mocha, run the
pnpm run tdd -- -g “spec keywords”
If the project is based on karma, you need to modify the test source code to specify the use cases to run via the only method in mocha, e.g..
maptalks/maptalks.js thuộc nhóm Frontend trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về maptalks/maptalks.js ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/maptalks/maptalks.js là nguồn chính thức.
maptalks/maptalks.js có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho maptalks/maptalks.js. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
maptalks/maptalks.js có trang demo không?
Dự án có trang chủ ở https://maptalks.org. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
maptalks/maptalks.js là gì?
maptalks/maptalks.js (maptalks/maptalks.js) là dự án HTML trên GitHub. Theo mô tả gốc: A light and plugable JavaScript library for integrated 2D/3D maps.
Vì sao maptalks/maptalks.js được xếp vào nhóm Frontend?
TopGit xếp maptalks/maptalks.js vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "gis", "javascript", "map"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc maptalks.js có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về maptalks.js.