From 0270130adba349b1e989d75f5e7af7fcb790ad0d Mon Sep 17 00:00:00 2001 From: shihui Date: Wed, 5 Jan 2022 17:01:12 +0800 Subject: [PATCH] style: lint style --- docs/api/heatmap_layer/hexagon.zh.md | 1 - docs/api/raster/raster_layer.zh.md | 1 - examples/gallery/animate/demo/route_line.js | 30 ++++++++++----------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/docs/api/heatmap_layer/hexagon.zh.md b/docs/api/heatmap_layer/hexagon.zh.md index 68331a7c01..8468798e88 100644 --- a/docs/api/heatmap_layer/hexagon.zh.md +++ b/docs/api/heatmap_layer/hexagon.zh.md @@ -5,7 +5,6 @@ order: 1 `markdown:docs/common/style.md` - 将一组点数据按照等大小的六边形网格进行聚合,一个六边形网格代表网格内所有点的统计值。蜂窝热力图特点以六边形热力图网格布局 ## 使用 diff --git a/docs/api/raster/raster_layer.zh.md b/docs/api/raster/raster_layer.zh.md index 633587161a..7300c5e4cb 100644 --- a/docs/api/raster/raster_layer.zh.md +++ b/docs/api/raster/raster_layer.zh.md @@ -42,7 +42,6 @@ import { RasterLayer } from '@antv/l7'; ⚠️ `color`, `position` 的长度要相同 - [在线案例](../../../examples/raster/basic#light) `markdown:docs/common/layer/base.md` diff --git a/examples/gallery/animate/demo/route_line.js b/examples/gallery/animate/demo/route_line.js index eb33e62589..172048d4de 100644 --- a/examples/gallery/animate/demo/route_line.js +++ b/examples/gallery/animate/demo/route_line.js @@ -16,7 +16,7 @@ const scene = new Scene({ const originData = { // 设置经纬度起点和终点数据 lng1: 116.5883553580003, lat1: 40.07680509701226, - lng2: 55.7508, //2.663131,12.304181 + lng2: 55.7508, // 2.663131,12.304181 lat2: 37.617255 }; @@ -51,20 +51,20 @@ scene.on('loaded', () => { scene.addLayer(worldLine); const dotPoint = new PointLayer() - .source(data, { - parser: { - type: 'json', - x: 'lng2', - y: 'lat2' - } - }) - .shape('circle') - .color('#ffed11') - .animate(true) - .size(40) - .style({ - opacity: 1.0 - }); + .source(data, { + parser: { + type: 'json', + x: 'lng2', + y: 'lat2' + } + }) + .shape('circle') + .color('#ffed11') + .animate(true) + .size(40) + .style({ + opacity: 1.0 + }); scene.addLayer(dotPoint);