antv-l7/docs/api/layer/polygon_layer/fill.zh.md

25 lines
389 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 填充图
order: 1
---
## 使用
```javascript
import { PolygonLayer } from '@antv/l7'
const layer = new PolygonLayer();
```
### shape
绘制填充图shape为```fill``` 常量不支持数据映射
```javascript
layer.shape('fill');
```
### size
填充图无size不需要设置size
### color
同 [layer#color](../layer/#color)
### style
同 [layer#style](../layer/#style)