2021-10-11 14:19:23 +08:00
|
|
|
|
## L7 地理空间数据可视分析引擎
|
2021-04-25 20:10:55 +08:00
|
|
|
|
|
2019-11-23 18:48:59 +08:00
|
|
|
|
[![travis ci](https://travis-ci.com/antvis/L7.svg?branch=master)](https://travis-ci.com/antvis/L7) [![](https://flat.badgen.net/npm/v/@antv/l7?icon=npm)](https://www.npmjs.com/package/@antv/l7) ![最近提交](https://badgen.net/github/last-commit/antvis/L7)
|
2019-11-21 13:44:32 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
[README](./README.en-US.md)
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2020-01-15 15:59:00 +08:00
|
|
|
|
[GitHub](https://github.com/antvis/L7)
|
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
```bash
|
|
|
|
|
git clone https://github.com/antvis/L7 --depth=1
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
L7 是由蚂蚁金服 AntV 数据可视化团队推出的基于 WebGL 的开源大规模地理空间数据可视分析开发框架。L7 中的 L 代表 Location,7 代表世界七大洲,寓意能为全球位置数据提供可视分析的能力。L7 专注数据可视化化表达,通过颜色、大小、纹理,方向,体积等视觉变量设置实现从数据到信息清晰,有效的表达。
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2022-03-07 11:30:41 +08:00
|
|
|
|
[官网地址](https://l7.antv.vision/zh)
|
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
L7 能够满足常见的地图图表,BI 系统的可视化分析、以及 GIS,交通,电力,国土,农业,城市等领域的空间信息管理,分析等应用系统开发需求。
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
![L7 demo](https://gw.alipayobjects.com/mdn/rms_855bab/afts/img/A*S-73QpO8d0YAAAAAAAAAAABkARQnAQ)
|
2019-11-21 23:27:01 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
## 🌟 核心特性
|
2020-01-11 20:48:57 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
🌏 数据驱动可视化展示
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
数据驱动,灵活数据映射,从数到形,支持丰富的地图可视化类型,更好洞察数据。
|
2019-12-08 11:41:52 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
🌏 2D,3D 一体化的海量数据高性能渲染
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
海量空间数据实时,可交互,动态渲染,
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
🌏 简单灵活的数据接入
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
支持 CSV,JSON,GeoJSON 等数据格式接入,可以根据需求自定义数据格式,无需复杂的空间数据转换。
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
🌏 多地图底图支持,支持离线内网部署
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
屏蔽不同底图之间的差异,用户只需要关注数据层表达,交互。高德地图国内合法合规的地理底图,Mapbox 满足国际化业务需求。
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
## 🌈 支持丰富的图表类型
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
#### 点图层
|
2019-11-28 00:26:09 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
- 气泡图
|
|
|
|
|
- 散点图
|
|
|
|
|
- 符号地图
|
|
|
|
|
- 3D 柱状地图
|
|
|
|
|
- 聚合地图
|
|
|
|
|
- 复合图表地图
|
|
|
|
|
- 自定义 Marker
|
2019-11-21 13:44:32 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
#### 线图层
|
|
|
|
|
|
|
|
|
|
- 路径地图
|
|
|
|
|
- 弧线,支持 2D 弧线、3D 弧线以及大圆航线
|
|
|
|
|
- 等值线
|
|
|
|
|
|
|
|
|
|
#### 面图层
|
|
|
|
|
|
|
|
|
|
- 填充图
|
|
|
|
|
- 3D 填充图
|
|
|
|
|
|
|
|
|
|
#### 热力图
|
|
|
|
|
|
|
|
|
|
- 经典热力图
|
|
|
|
|
- 蜂窝热力图
|
|
|
|
|
- 网格热力图
|
|
|
|
|
|
|
|
|
|
#### 栅格地图
|
|
|
|
|
|
|
|
|
|
- 图片
|
|
|
|
|
- Raster
|
|
|
|
|
|
|
|
|
|
## 📦 如何使用
|
|
|
|
|
|
|
|
|
|
### 安装
|
|
|
|
|
|
|
|
|
|
```bash
|
2020-02-02 22:15:21 +08:00
|
|
|
|
npm install @antv/l7
|
2019-11-21 13:44:32 +08:00
|
|
|
|
```
|
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
### 初始化地图
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
import { Scene } from '@antv/l7';
|
|
|
|
|
import { Mapbox } from '@antv/l7-maps';
|
2019-12-04 12:00:47 +08:00
|
|
|
|
|
|
|
|
|
const scene = new Scene({
|
2019-11-28 01:50:46 +08:00
|
|
|
|
id: 'map',
|
|
|
|
|
map: new Mapbox({
|
|
|
|
|
style: 'light',
|
|
|
|
|
pitch: 0,
|
2019-12-08 11:41:52 +08:00
|
|
|
|
center: [107.054293, 35.246265],
|
|
|
|
|
zoom: 4.056,
|
2019-12-04 12:00:47 +08:00
|
|
|
|
}),
|
|
|
|
|
});
|
2019-11-28 01:50:46 +08:00
|
|
|
|
```
|
2019-12-04 12:00:47 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
### 添加图层
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2019-12-04 12:00:47 +08:00
|
|
|
|
```javascript
|
2019-11-28 01:50:46 +08:00
|
|
|
|
import { PointLayer } from '@antv/l7';
|
|
|
|
|
|
2019-12-04 12:00:47 +08:00
|
|
|
|
const pointLayer = new PointLayer()
|
|
|
|
|
.source(data)
|
|
|
|
|
.shape('circle')
|
2019-12-08 11:41:52 +08:00
|
|
|
|
.size('mag', [1, 25])
|
|
|
|
|
.color('mag', ['#5B8FF9', '#5CCEA1'])
|
2019-12-04 12:00:47 +08:00
|
|
|
|
.style({
|
|
|
|
|
opacity: 0.3,
|
|
|
|
|
strokeWidth: 1,
|
|
|
|
|
});
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2019-12-04 12:00:47 +08:00
|
|
|
|
scene.addLayer(pointLayer);
|
2019-11-28 01:50:46 +08:00
|
|
|
|
```
|
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
## :memo: 文档
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-10-11 14:19:23 +08:00
|
|
|
|
- [开始使用](https://l7.antv.vision/en/docs/api/l7)
|
|
|
|
|
- [教程](https://l7.antv.vision/en/docs/tutorial/quickstart)
|
|
|
|
|
- [文档](https://l7.antv.vision/en/docs/api/l7)
|
|
|
|
|
- [示例](https://l7.antv.vision/en/examples/gallery/basic)
|
|
|
|
|
- [贡献](./.github/CONTRIBUTING.md)
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
2021-04-14 00:39:07 +08:00
|
|
|
|
## 🔗 Links
|
2021-04-09 15:48:58 +08:00
|
|
|
|
|
2022-01-14 18:39:15 +08:00
|
|
|
|
- [L7Plot](https://github.com/antvis/L7Plot)
|
2021-04-09 15:48:58 +08:00
|
|
|
|
- [L7 React](https://github.com/antvis/L7-React)
|
|
|
|
|
- [L7 Boundary](https://github.com/antvis/L7-boundary)
|
2022-07-01 14:34:21 +08:00
|
|
|
|
- [L7Draw](https://github.com/antvis/L7Draw)
|
2021-04-09 15:48:58 +08:00
|
|
|
|
|
2019-11-28 10:35:30 +08:00
|
|
|
|
## ✅ License
|
2019-11-28 01:50:46 +08:00
|
|
|
|
|
|
|
|
|
[MIT license](./LICENSE).
|