style: lint style

This commit is contained in:
shihui 2022-01-05 17:01:12 +08:00
parent bc1806fe02
commit 0270130adb
3 changed files with 15 additions and 17 deletions

View File

@ -5,7 +5,6 @@ order: 1
`markdown:docs/common/style.md`
将一组点数据按照等大小的六边形网格进行聚合,一个六边形网格代表网格内所有点的统计值。蜂窝热力图特点以六边形热力图网格布局
## 使用

View File

@ -42,7 +42,6 @@ import { RasterLayer } from '@antv/l7';
⚠️ `color`, `position` 的长度要相同
[在线案例](../../../examples/raster/basic#light)
`markdown:docs/common/layer/base.md`

View File

@ -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);