style: lint style

This commit is contained in:
shihui 2022-01-24 19:33:21 +08:00
parent 227c38c20a
commit 57188c1cca
4 changed files with 9 additions and 12 deletions

View File

@ -3,4 +3,4 @@ title: 1.x history
order: 9
---
`markdown:docs/api/l7history.zh.md`
`markdown:docs/api/l7history.zh.md`

View File

@ -9,8 +9,7 @@ order: 2
```javascript
import { MaskLayer } from '@antv/l7';
let layer = new MaskLayer()
.source(data);
let layer = new MaskLayer().source(data);
scene.addLayer(layer);
```
@ -27,7 +26,7 @@ layer.shape('fill');
设置颜色值
### size
### size
maskLayer 无 size 不需要设置 size
@ -37,7 +36,7 @@ maskLayer 无 size 不需要设置 size
```javascript
style({
opacity: 0.5
opacity: 0.5,
});
```
@ -69,10 +68,8 @@ const scene = new Scene({
const layer = new RasterLayer({ mask: true });
```
[在线案例](../../../examples/raster/basic#dem)
<img width="60%" style="display: block;margin: 0 auto;" alt="面图层填充图" src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*jhWWS6dhKhYAAAAAAAAAAAAAARQnAQ">
`markdown:docs/common/layer/base.md`

View File

@ -3,4 +3,4 @@ title: Scene
order: 1
---
`markdown:docs/api/scene.zh.md`
`markdown:docs/api/scene.zh.md`

View File

@ -13,11 +13,11 @@ const scene = new Scene({
});
scene.on('loaded', () => {
fetch(
'https://gw.alipayobjects.com/os/basement_prod/d2e0e930-fd44-4fca-8872-c1037b0fee7b.json',
'https://gw.alipayobjects.com/os/basement_prod/d2e0e930-fd44-4fca-8872-c1037b0fee7b.json'
)
.then((res) => res.json())
.then((data) => {
let layer = new MaskLayer({})
.then(res => res.json())
.then(data => {
const layer = new MaskLayer({})
.source(data);
scene.addLayer(layer);