mirror of https://gitee.com/antv-l7/antv-l7
b28e38c760
* chore: 添加dumi 配置 * chore: 添加dumi 配置 * chore: 更新build 命令 * chore: add lib test * chore: 重构site 文档 * chore: script * chore: 测试用例 * chore: 测试用例 * chore: tsc 设置 * chore: site command * fix: tslint error * chore: react 版本依赖 * chore: tsconfig * chore: rm doc-dist * fix: 版本统一 * chore: 更新 gl 版本依赖 Co-authored-by: YiQianYao <42212176+2912401452@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
.fatherrc.ts | ||
.gitignore | ||
CHANGELOG.md | ||
README.md | ||
package.json | ||
tsconfig.build.json |
README.md
L7's Collection of Layers
Installation
yarn add @antv/l7-layers
Getting Started
Use built-in layers directly:
import { PointLayer } from '@antv/l7-layers';
const layer = new PointLayer({
// ...initialization options
});
Create a custom layer with the help of BaseLayer
:
import { BaseLayer } from '@antv/l7-layers';
class MyCustomLayer extends BaseLayer {
// ...override methods
}
const layer = new MyCustomLayer({
// ...initialization options
});
Current Built-in Layers
- PointLayer
- PolygonLayer
- LineLayer
- HeatmapLayer
- RasterLayer