mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
bc1806fe02
commit
0270130adb
|
@ -5,7 +5,6 @@ order: 1
|
|||
|
||||
`markdown:docs/common/style.md`
|
||||
|
||||
|
||||
将一组点数据按照等大小的六边形网格进行聚合,一个六边形网格代表网格内所有点的统计值。蜂窝热力图特点以六边形热力图网格布局
|
||||
|
||||
## 使用
|
||||
|
|
|
@ -42,7 +42,6 @@ import { RasterLayer } from '@antv/l7';
|
|||
|
||||
⚠️ `color`, `position` 的长度要相同
|
||||
|
||||
|
||||
[在线案例](../../../examples/raster/basic#light)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue