diff --git a/docs/api/layer/layer.en.md b/docs/api/layer/layer.en.md index 3953d4d5ce..54aabf1e2b 100644 --- a/docs/api/layer/layer.en.md +++ b/docs/api/layer/layer.en.md @@ -10,7 +10,12 @@ L7 Layer 接口设计遵循图形语法,所有图层都继承于该基类。 语法示例 ```javascript -const layer = new Layer(option).source().color().size().shape().style(); +const layer = new Layer(option) + .source() + .color() + .size() + .shape() + .style(); scene.addLayer(layer); ``` @@ -78,7 +83,7 @@ layer.source(data, { transforms: [ { type: 'map', - callback: function (item) { + callback: function(item) { const [x, y] = item.coordinates; item.lat = item.lat * 1; item.lng = item.lng * 1; diff --git a/docs/api/layer/layer.zh.md b/docs/api/layer/layer.zh.md index 0003c027d6..e0bf8abf2f 100644 --- a/docs/api/layer/layer.zh.md +++ b/docs/api/layer/layer.zh.md @@ -10,7 +10,12 @@ L7 Layer 接口设计遵循图形语法,所有图层都继承于该基类。 语法示例 ```javascript -const layer = new Layer(option).source().color().size().shape().style(); +const layer = new Layer(option) + .source() + .color() + .size() + .shape() + .style(); scene.addLayer(layer); ``` @@ -82,7 +87,7 @@ layer.source(data, { transforms: [ { type: 'map', - callback: function (item) { + callback: function(item) { const [x, y] = item.coordinates; item.lat = item.lat * 1; item.lng = item.lng * 1; diff --git a/packages/maps/package.json b/packages/maps/package.json index 2682b1d6ca..d4ff31d3ab 100644 --- a/packages/maps/package.json +++ b/packages/maps/package.json @@ -29,7 +29,6 @@ "@antv/l7-utils": "^2.2.12", "@babel/runtime": "^7.7.7", "@types/amap-js-api": "^1.4.6", - "antd": "4.2.5", "gl-matrix": "^3.1.0", "inversify": "^5.0.1", "mapbox-gl": "^1.2.1", diff --git a/stories/Components/components/Zoom.tsx b/stories/Components/components/Zoom.tsx index 4bd12be5bb..372383b75e 100644 --- a/stories/Components/components/Zoom.tsx +++ b/stories/Components/components/Zoom.tsx @@ -30,9 +30,14 @@ export default class ZoomComponent extends React.Component { this.scene = scene; const layer = new PolygonLayer({}); - layer.source(data).color('#fff').shape('name', 'text').size(16).style({ - opacity: 1.0, - }); + layer + .source(data) + .color('#fff') + .shape('name', 'text') + .size(16) + .style({ + opacity: 1.0, + }); scene.addLayer(layer); const zoomControl = new Zoom({ position: 'bottomright',