Go to file
YiQianYao 6a04210de6
feat: 渲染流程异步改造、部分支持 worker (#1224)
* feat: 去处事件节流

* feat: 创建图层流程改造 + worker 功能验证

* style: lint style

* feat: 修改 worker 引入

* feat: 调整 worker 的拼接

* style: lint style

* feat: 修改 source 构建流程为异步

* style: lint style

* feat: 在点图层中去除 global 的耦合

* style: lint style

* fix: 修复更新 style 的同时更新了 option 带来的问题

* style: lint style

* feat: 拆除 arc3d 地球模式和普通模式的耦合

* style: lint style

* feat: 修改 worker

* style: lint style

* feat: 优化图层创建渲染流程

* style: lint style

* Merge branch 'workspace' into tileDemo

* style: style lint

* feat: 改在点图层的创建流程

* style: lint style

* style: lint style

* chore: worker helper (#1241)

* chore: worker helper

* chore: 修改注册流程

* chore: 修改打包方式

* chore: 集成打包环境

* style: lint style

* feat: add worker pool failed

* style: lint style

* style: lint style

* feat: 更新 worker 的使用

* chore: 更新 scripts 标签 (#1242)

* feat: remove utils triangulation

* feat: 完成 pointLayer/earthLayer 的异步改造

* style: lint style

* style: lint style

* style: lint style

* chore: 修改 worker 执行函数 (#1246)

* chore: 修改 worker 执行函数

* chore: remove console

* feat: 完成线图层和线图层的异步创建流程改造

* style: lint style

* style: lint style

* feat: 完成 polygon 创建流程的异步改造

* style: lint style

* feat: 完成 heatmap 创建流程的异步改造

* style: lint style

* feat: 完成 citybuildingLayer 图层创建的异步改造

* style: lint style

* feat: 完成 imageLayer 创建异步改造

* style: lint style

* feat: 完成 ImageLayer/RasterLayer 创建的异步改造

* style: lint style

* feat: 完成 geometryLayer 创建的异步改造

* style: lint style

* feat: 完成 WindLayer 创建的异步改造

* style: lint style

* feat: 完成 tileLayer 瓦片图层创建图层的异步改造

* style: lint style

* feat: 调整 worker 调用的参数和 worker 代码的位置

* style: lint style

* chore: 调整 worker 代码结构

* style: lint style

* feat: 梳理完善 layer 的 modelName

* style: lint style

* chore: 调整部分 modeName 的命名

* feat: 线图层的 lineModel 支持 worker 计算

* style: lint style

* feat: 完善 source 异步改造,增加测试

* style: lint style

* feat: 支持 polygonFill 的 worker 计算

* style: lint style

* feat: tile point/line/polygon 支持 worker 计算

* style: lint style

* chore: 调整 worker 目录结构

* style: lint style

* chore: 修改 worker 打包路径

* feat: 增加 ISrource 时间的类型定义

* chore: change function getPureDescriptors -> getDescriptorsWithOutFunc

* feat: 完善类型定义,去除额外 worker 代码

* chore: worker 注册放到 utils 里面 (#1253)

* chore: 代码清理

* style: lint style

* fix: 修复 encodeData 可能的空值

* feat: 地球模式的点、线图层兼容写法

* style: lint style

* feat: 完成对 dataImage 的异步改造

* fix: 修复 demo 中对时序数据的使用

* style: lint style

* fix: 修复点图层文字重新布局未重绘问题

* fix: 修复 pointLayer fillImage 失效

* style: lint style

* chore: 在官网 demo 中去除 multipass

* chore: 调整官网 demo 效果

* style: lint style

* chore: 调整官网 demo

* style: lint style

* fix: 修复 layerModel 使用的报错

* chore: update l7plot version

Co-authored-by: lvisei <yunji.me@outlook.com>
2022-08-02 19:05:27 +08:00
.github Fix cluster issue (#1228) 2022-07-12 19:25:36 +08:00
.storybook feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
.vscode feat: 样式数据映射 1.0 2021-06-21 11:13:18 +08:00
build feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
demos feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
dev-docs Shihui dev (#818) 2021-11-01 21:13:19 +08:00
docs docs: 更新文档 (#1250) 2022-07-22 10:11:12 +08:00
examples feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
jest refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
packages feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
scripts ci: 新增 release label action (#1097) 2022-05-06 20:17:51 +08:00
site docs: 更新文档 (#1250) 2022-07-22 10:11:12 +08:00
stories feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
.editorconfig refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
.eslintignore feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
.eslintrc chore(package): update babel-eslint version 2020-05-19 14:15:34 +08:00
.gitignore ci: 新增 release label action (#1097) 2022-05-06 20:17:51 +08:00
.gitleaks.toml chore: add gitleaks 2020-04-21 11:28:10 +08:00
.prettierrc refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
.stylelintrc refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
.travis.yml Merge branch 'master' into draw_doc 2020-04-21 15:27:03 +08:00
.yarnrc chore: add .yarnrc 2019-11-22 20:18:33 +08:00
CHANGELOG.md chore: publish 2020-04-10 19:43:19 +08:00
LICENSE.md chore: update version 2.9.8 -> 2.9.9 (#1214) 2022-07-01 13:02:15 +08:00
README.en-US.md fix: 1. L7Draw 对应 Github 和 文档地址变更 (#1215) 2022-07-01 14:34:21 +08:00
README.md fix: 1. L7Draw 对应 Github 和 文档地址变更 (#1215) 2022-07-01 14:34:21 +08:00
babel.config.js feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
commitlint.config.js docs(layer): add layer docs 2019-11-20 20:44:08 +08:00
gatsby-browser.js feat: merge workspace (tile) (#1204) 2022-06-30 11:44:46 +08:00
gatsby-config.js fix: 1. L7Draw 对应 Github 和 文档地址变更 (#1215) 2022-07-01 14:34:21 +08:00
gatsby-node.js Feat dipper demo (#820) 2021-11-08 19:49:43 +08:00
jest.config.js chore(boundry): rename distict->boundry 测试用例不识别 2020-05-27 20:34:39 +08:00
lerna.json chore: update version 2.9.17 -> 2.9.18 fix bug (#1261) 2022-07-29 14:26:05 +08:00
package.json feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
tsconfig.build.json chore: 更新打包配置 2021-02-28 12:20:46 +08:00
tsconfig.json feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
tslint.json feat: 渲染流程异步改造、部分支持 worker (#1224) 2022-08-02 19:05:27 +08:00
tslint.prod.json fix(scene): 高清方案DPR 2021-01-12 11:36:52 +08:00
typings.d.ts style: add declare 2022-03-23 16:14:09 +08:00

README.en-US.md

L7

. travis ci 最近提交

Large-scale WebGL-powered Geospatial data visualization analysis framework.

中文 README

GitHub

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

website

🌄 L7 visualization demos

L7 demo

🌟 Highlight features of L7 2.0

  • 🌏 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

📦 Installation

npm install @antv/l7

Init Map by L7 scene

import { Scene } from '@antv/l7';
import { Mapbox } from '@antv/l7-maps';

const scene = new Scene({
  id: 'map',
  map: new Mapbox({
    style: 'light',
    pitch: 0,
    center: [107.054293, 35.246265],
    zoom: 4.056,
  }),
});

Add Layer

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

License

MIT license.