Go to file
YiQianYao 4ca8628d64
Shihui dev (#833)
* feat: 增加小程序环境判断、替换 regl -> l7regl

* style: code style

* feat(新增工程配置): 新增小程序工程配置

* feat: 支持小程序环境中传入 canvas 实例用于渲染、兼容 L7 原有代码

* style: code style

* feat: 小程序不需要对 classList 操作(真机也没有 classList 属性)

* style: code style

* feat: 对 docStyle、devicePixelRatio 以及部分 dom 的兼容

* style: code style

* feat: 小程序兼容 window.perframce.now requestAnimationFrame

* feat: 新增工程配置

* feat: 新增工程配置

* feat: 兼容动画减弱以及部分的 dom 处理

* style: code style

* feat: 替换 mapbox/tiny-sdf -> l7-tiny-sdf

* style: code style

* feat: 兼容操作

* style: code style

* style: demo code

* feat: change version

* feat: mini code

* feat: 小程序兼容

* feat: 合并mini-adapter

* feat: 合并mini-adapter

* feat: 新增tag

* feat: 增加 imageData 兼容

* style: code style by lint

* feat: 修改版本号

* feat: 新增mini6 beta版本

* feat: 去除原adapter

* feat: 修改版本号

* feat: 升级版本

* feat: 修改版本引用

* style: code style

* feat: 小程序兼容requestAnimationFrame

* feat: 小程序兼容requestAnimationFrame

* style: maps -> mini

* feat: update mini version

* feat: 修改 webgl 扩展名称的大小写、使之可以与 l7regl 配合,兼容小程序环境

* feat: 用适配的 requestAnimateFrame 替换 setInterval

* feat: 修改 L7 - mini 版本、修改 adapter 中 screen、devicePixelRadio 关于 isMini 的取值

* feat: 修复小程序环境中 getMapTouches 的取值

* feat: 地图联动部分改造

* feat: 增加地图联动

* feat: 修复新增小程序地图联动

* feat: 增加小程序地图联动

* style: lint style

* style: handle merge conflict

* feat: 增加有无底图模式的参数控制、修复与小程序地图联动时的 bug

* style: lint style

* feat: 扩展小程序地图联动传递参数

* style: lint style

* chore: update L7Mini version 2.5.8 - mini16 -> 2.5.8 - mini17

* feat: 增加小程序可视化交互注册监听时上下文绑定

* style: lint style

* chore: update L7Mini version 2.5.8mini17 -> 2.5.8mini18

* chore: update L7Mini version 2.5.8mini18 -> 2.5.8mini19

* chore: update L7Mini version 2.5.8mini20 -> 2.5.8mini21

* feat: add performance demo

* style: lint style

* style: lint style

* feat: add getModelMatrix into viewport

* feat: 新增地球模式 (初步构建)

* feat: 完善地球交互

* style: lint style

* feat: 调整地球图层缩放的方向

* style: lint style

* feat: 增加地球模式的 pointLayer/fill 图层

* style: lint style

* feat: 增加地球、太阳的简单运动系统,优化部分代码结构

* fix: 修复时间点击出错

* style: lint style

* fix: 修复地图 panBy 方法参数错误

* style: lint style

* feat: pointLayer/cylinder 圆柱兼容地球模式

* style: lint style

* feat: 修复 pointLayer/fill 在拾取是破面严重的情况

* style: lint style

* feat: 增加 arc 弧度调节

* feat: 增加 lineLayer/arc3d 兼容地球模式

* style: lint style

* feat: 增加地球图层 - 大气层

* style: lint style

* feat: 增加设置可视化层背景色的能力

* style: lint style

* feat: 增加地球外发光效果

* style: lint style

* feat: 允许用户不使用 layer 的 source 方法 - 地球模式下光晕图层不需要传数据

* style: lint style

* feat: 调整光晕的 shader 计算

* feat: 调整地球大气层的渲染层级

* style: lint style

* feat: 调整案例

* style: lint style

* feat: 增加地球图层的默认参数、调整部分代码

* style: lint style

* feat: imageTile developinging

* style: lint style

* feat: 新增图片瓦片地图

* fix: 修复 amap2 新增样式导致的 marker 失效

* feat: 修复 amap2 的 amap-maps 新增 z-index=0; 引发的marker 显示层级失效

* feat: amap2 的 amap-maps 新增 z-index=0; 样式,让 marker 中 zIndex 失效

* style: lint style

* feat: 补全瓦片地图中的类型引用

* style: lint style

* feat: 取消 earthmap 的 hash 模块

* feat: 调整 L7Mini 版本

* feat: 合并图片瓦片图层

* feat: 增加 imageLayer 的对小程序的兼容

* style: lint style

* feat: 修改小程序分支版本

* feat: 更新 l7regl 依赖(补充对支付宝小程序 image 对象的类型判断)

* feat: 增加 demo

* style: lint style

* feat: 修复 varying 传递 float 总数在部分终端设备 ios13 上突破限制的问题

* feat: add stoty demo

* style: lint style

* feat: 调整 aspace demo

* feat: 调整 aspace demo

* style: lint style

* feat: 调整 demo

* feat: 补充依赖

* feat: 新增 arcmini layer,增加拖拽时的拾取优化(地图拖拽时取消拾取)

* feat: 增加注释

* feat: 剔除地图拖拽时多余的 shader 计算

* style: lint style

* feat: 暂时取消拖拽时 shader 的过滤处理

* style: lint style

* feat: 合并 mi nimini

* feat: add l7hammerjs

* feat: 增加 l7hammerjs 声明

* feat: update version

* feat: merge shihui_dev

* feat: 去除多余依赖

* feat: 小程序合并 master 无报错版本

* feat: 修改 demo

* style: lint style

* feat: change l7hammerjs

* feat: remove test hammerjs

* chore: update verison and get enable branch 2.5.37-mini19

* chore: update version 2.5.37-mini19 -> 2.5.37-mini20 enabled

* feat: 去除 hammerjs 的类型定义 - l7hammerjs

* style: lint style

* feat: 增加类型定义 @antv/l7-maps/lib/map/

* feat: 调整类型定义

* feat: 调整类型定义文件

* feat: change typing

* feat: 增加图层渲染列表 layerList 更新图层渲染排序计算 去除夺取 renderTest

* style: lint style

* feat: 修复一些小程序合并/imageTile 的问题

* style: lint style

* feat: 补全漏写的 updateLayerRenderList 排序

* feat: 完善站点构建 增加 @antv/l7-maps/lib/map 的引用

* feat: 增加瓦片地图缩放限制 zoom < 2

* feat: sceneService 小程序适配 window -> $window

* style: lint style

* feat: 修复 map 在大比例尺地图下精度丢失的问题、更新l7regl、l7eval5 Float64Array

* style: lint style

* feat: 修复 scene.destroy 在小程序模式下的不兼容

* feat: 修复 scene.destroy 小程序兼容失败

* feat: 适配 utils 中 global

Co-authored-by: zhongwu <xingya.sxy@alibaba-inc.com>
2021-11-10 21:45:13 +08:00
.github [push, pull_request_target] => pull_request 2021-02-19 11:12:15 +08:00
.storybook feat: centet 增加padding 功能 2021-04-06 18:00:53 +08:00
.vscode feat: 样式数据映射 1.0 2021-06-21 11:13:18 +08:00
build Shihui dev (#819) 2021-11-02 18:03:12 +08:00
demos fix: site react example 2020-03-08 15:40:22 +08:00
dev-docs Shihui dev (#818) 2021-11-01 21:13:19 +08:00
docs fix: lint 2021-11-01 20:44:04 +08:00
examples Fix docs (#817) 2021-11-01 20:25:13 +08:00
jest refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
packages Shihui dev (#833) 2021-11-10 21:45:13 +08:00
site Feat dipper demo (#820) 2021-11-08 19:49:43 +08:00
stories Shihui dev (#826) 2021-11-08 19:51:38 +08:00
.editorconfig refactor: refactor with monorep architecture 2019-10-08 20:15:52 +08:00
.eslintrc chore(package): update babel-eslint version 2020-05-19 14:15:34 +08:00
.gitignore feat: 新增Control position:topcenter、bottomcenter、leftcenter、rightcenter 2021-09-24 10:46:56 +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 docs: update add prettier readme 2019-12-08 11:41:52 +08:00
README.en-US.md docs: set default lang is zh (#783) 2021-10-11 14:19:23 +08:00
README.md docs: set default lang is zh (#783) 2021-10-11 14:19:23 +08:00
babel.config.js fix: 错误文字 2021-08-23 19:15:21 +08:00
beta.sh Shihui dev (#826) 2021-11-08 19:51:38 +08:00
commitlint.config.js docs(layer): add layer docs 2019-11-20 20:44:08 +08:00
gatsby-browser.js Shihui dev (#826) 2021-11-08 19:51:38 +08:00
gatsby-config.js Feat dipper demo (#820) 2021-11-08 19:49:43 +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
latest.sh Shihui dev (#818) 2021-11-01 21:13:19 +08:00
lerna.json chore: update version 2.5.48 -> 2.5.49 2021-11-10 14:07:17 +08:00
mini.sh Shihui dev (#818) 2021-11-01 21:13:19 +08:00
package.json chore: replace `node-sass` by `sass` (#829) 2021-11-09 19:56:24 +08:00
publish.sh Shihui dev (#818) 2021-11-01 21:13:19 +08:00
tsconfig.build.json fix: rm three lib 2021-02-26 16:21:04 +08:00
tsconfig.json Shihui dev (#826) 2021-11-08 19:51:38 +08:00
tslint.json chore: 移除loggerservice 2021-08-05 17:29:13 +08:00
tslint.prod.json fix(scene): 高清方案DPR 2021-01-12 11:36:52 +08:00
typings.d.ts feat: add .d.ts 2021-07-12 21:20:15 +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

🌄 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.