mirror of https://gitee.com/antv-l7/antv-l7
911 B
911 B
title | order |
---|---|
简单线图层 | 4 |
markdown:docs/common/style.md
简单线图层为用户提供了一种大数据量性能更优的选择,能轻松渲染有几十万个节点的线段,但相应的,对比与普通的线图层,简单线图层也丢失了一些其他能力。
使用
import { LineLayer } from '@antv/l7';
const layer = new LineLayer()
.source(data)
.shape('simple')
.size(10) // size 方法不生效 线宽始终为 1px
.color('#f00')
.style(...)
shape
shape 设置成 simple 即可
markdown:docs/api/line_layer/features/linear.zh.md
🌟 简单线图层不支持动画和纹理
markdown:docs/common/layer/base.md