diff --git a/docs/api/l7history.en.md b/docs/api/l7history.en.md index c403f0678d..0d6c27fbe2 100644 --- a/docs/api/l7history.en.md +++ b/docs/api/l7history.en.md @@ -3,4 +3,4 @@ title: 1.x history order: 9 --- -`markdown:docs/api/l7history.zh.md` \ No newline at end of file +`markdown:docs/api/l7history.zh.md` diff --git a/docs/api/polygon_layer/mask.zh.md b/docs/api/polygon_layer/mask.zh.md index 09c2df5c85..90e283f82f 100644 --- a/docs/api/polygon_layer/mask.zh.md +++ b/docs/api/polygon_layer/mask.zh.md @@ -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) 面图层填充图 - `markdown:docs/common/layer/base.md` diff --git a/docs/api/scene.en.md b/docs/api/scene.en.md index 3d13a9e7c2..7b18bc4603 100644 --- a/docs/api/scene.en.md +++ b/docs/api/scene.en.md @@ -3,4 +3,4 @@ title: Scene order: 1 --- -`markdown:docs/api/scene.zh.md` \ No newline at end of file +`markdown:docs/api/scene.zh.md` diff --git a/examples/raster/basic/demo/dem.js b/examples/raster/basic/demo/dem.js index f9f4caf7f5..50c70fbd42 100644 --- a/examples/raster/basic/demo/dem.js +++ b/examples/raster/basic/demo/dem.js @@ -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);