antv-l7/README.md

92 lines
2.5 KiB
Markdown
Raw Normal View History

2019-11-22 18:23:55 +08:00
# L7
2019-11-21 13:44:32 +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
2019-11-22 18:23:55 +08:00
Large-scale WebGL-powered Geospatial data visualization analysis framework.
2019-11-21 13:44:32 +08:00
2019-11-28 01:50:46 +08:00
[中文 README](./README.zh-CN.md)
2020-01-15 15:59:00 +08:00
[GitHub](https://github.com/antvis/L7)
2019-11-28 01:50:46 +08:00
Powered by WebGL, the rendering technology of L7 supports fast and efficient rendering of big data, 2D/3D rendering, possible through calculation and analysis of spatial data by GPU Parallel Compu-ting.
2019-12-08 11:41:52 +08:00
L7 focuses on geographic data expressivenessinteraction and design of geographic visualization layers. The basemaps on the platform are powered by third-party services
2019-11-28 01:50:46 +08:00
## 🌄 l7 visualization demos
2019-11-21 23:27:01 +08:00
2020-01-11 23:03:33 +08:00
![l7 demo](https://gw.alipayobjects.com/mdn/rms_855bab/afts/img/A*S-73QpO8d0YAAAAAAAAAAABkARQnAQ)
2020-01-11 20:48:57 +08:00
## 🌟 Highlight features of L7 2.0
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
- 🌏 Data-driven Visualization
2019-12-08 11:41:52 +08:00
2019-11-29 12:33:37 +08:00
Layer visualization API design base Semiology of Graphics.
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
It supports rich map visualization types for a better insight on data.
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
- 🌏 High performance rendering with 2D/3D effect
2019-11-28 01:50:46 +08:00
Real-time and dynamic rendering with millions of spatial data.
2019-11-29 12:33:37 +08:00
- 🌏 Simple and flexible data format
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
L7 supports a wide variety of data formats including CSV, JSON, geojson, among others, eliminating the need to run conversions ahead of time.
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
- 🌏 Multi-basemap
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
For global users, Mapbox is easy to be embedded by a simple line of code.
2019-11-28 01:50:46 +08:00
## Getting Started
2019-11-29 12:33:37 +08:00
### 📦 Installation
2019-11-21 13:44:32 +08:00
```
2020-02-02 22:15:21 +08:00
npm install @antv/l7
2019-11-21 13:44:32 +08:00
```
2019-11-29 12:33:37 +08:00
### Init Map by L7 scene
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
2019-11-29 12:33:37 +08:00
### Add Layer
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
```
2019-11-29 12:33:37 +08:00
## :memo: Documentation
2019-11-28 01:50:46 +08:00
2019-11-29 12:33:37 +08:00
- [Getting started with L7](https://l7.antv.vision/en/docs/api/l7)
- [Tutorials](https://l7.antv.vision/en/docs/tutorial/quickstart)
- [API documentation](https://l7.antv.vision/en/docs/api/l7)
- [Examples](https://l7.antv.vision/en/examples/gallery/basic)
- [Contributor documentation](./.github/CONTRIBUTING.md)
2019-11-28 01:50:46 +08:00
2019-11-28 10:35:30 +08:00
## ✅ License
2019-11-28 01:50:46 +08:00
[MIT license](./LICENSE).