style: lint style

This commit is contained in:
2912401452 2022-04-08 18:04:44 +08:00
parent db3511b149
commit 2f78e56343
1 changed files with 19 additions and 19 deletions

View File

@ -74,7 +74,7 @@ const imageLayer = new PointLayer()
.shape('name', ['00', '01', '02'])
.style({
rotation: 0,
layerType: 'fillImage'
layerType: 'fillImage',
})
.active({
color: '#0ff',
@ -103,27 +103,27 @@ function rotate() {
[在线案例](/zh/examples/point/image#fillimage)
- rotate 方法
符号图的 fillimage 模式支持 rotate 方法根据数据映射旋转角度。
🌟 记得要把 style 中的 rotation 设为 0
符号图的 fillimage 模式支持 rotate 方法根据数据映射旋转角度。
🌟 记得要把 style 中的 rotation 设为 0
```javascript
const imageLayer = new PointLayer()
.source(data)
.shape('wind', wind => {
if (wind === 'up') {
return 'arrBlue';
}
return 'arrRed';
})
.rotate('r', r => Math.PI * r)
.size(15)
.style({
rotation: 0,
layerType: 'fillImage'
});
scene.addLayer(imageLayer);
const imageLayer = new PointLayer()
.source(data)
.shape('wind', (wind) => {
if (wind === 'up') {
return 'arrBlue';
}
return 'arrRed';
})
.rotate('r', (r) => Math.PI * r)
.size(15)
.style({
rotation: 0,
layerType: 'fillImage',
});
scene.addLayer(imageLayer);
```
[在线案例](/zh/examples/point/image#monsoon)
`markdown:docs/common/layer/base.md`