antv-l7/README.md

131 lines
2.7 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)
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.
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-21 23:27:01 +08:00
## l7 visualization demos
2019-11-22 12:08:33 +08:00
![l7 demo](https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*SGU-QIZsnyoAAAAAAAAAAABkARQnAQ)
2019-11-21 23:27:01 +08:00
2019-11-28 10:35:30 +08:00
## ✨ Highlight features of L7 2.0
2019-11-28 01:50:46 +08:00
🌏 Data-driven Visualization
Layer visualization API design base Semiology of Graphics.
it supports rich map visualization types for a better insight on data.
🌏High performance rendering with 2D/3D effect
Real-time and dynamic rendering with millions of spatial data.
🌏 Simple and flexible data format:
L7 supports a wide variety of data formats including CSV, JSON, geojson, among others, eliminating the need to run conversions ahead of time.
🌏Multi-basemap:
For global users, Mapbox is easy to be embedded by a simple line of code.
## Getting Started
2019-11-28 10:35:30 +08:00
.
### 📦 Installation
2019-11-21 13:44:32 +08:00
```
2019-11-23 18:49:22 +08:00
npm install @antv/l7@beta
2019-11-21 13:44:32 +08:00
```
2019-11-28 01:50:46 +08:00
### init Map by L7 scene
```javascript
import { Scene } from '@antv/l7';
import { Mapbox } from '@antv/l7-maps';
new Scene({
id: 'map',
map: new Mapbox({
style: 'light',
pitch: 0,
center: [ 107.054293, 35.246265 ],
zoom: 4.056
})
})
```
### add Layer
``` javascript
import { PointLayer } from '@antv/l7';
const pointLayer = new PointLayer()
.source(data)
.shape('circle')
.size('mag', [ 1, 25 ])
.color('mag',['#5B8FF9', '#5CCEA1'])
.style({
opacity: 0.3,
strokeWidth: 1
});
scene.addLayer(pointLayer);
```
## Documentation
[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)
2019-11-28 10:35:30 +08:00
## 🔨 Development
2019-11-21 13:44:32 +08:00
使用 Yarn Workspace 完成依赖安装以及各包之间的 link 工作:
```bash
yarn install
```
开发模式:
```bash
yarn watch
```
运行 Demo基于 Storybook
2019-11-21 13:44:32 +08:00
```bash
yarn storybook
```
## view doc example
```bash
yarn start
2019-11-21 13:44:32 +08:00
```
visit http://localhost:8000/
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).