style: lint style

This commit is contained in:
shihui 2021-11-25 16:11:15 +08:00
parent 0df7d4b6d2
commit eecada672e
1 changed files with 7 additions and 7 deletions

View File

@ -8,22 +8,22 @@ const scene = new Scene({
map: new GaodeMap({
pitch: 60,
style: 'light',
center: [120.7, 23.114887],
zoom: 8,
}),
center: [ 120.7, 23.114887 ],
zoom: 8
})
});
scene.on('loaded', () => {
fetch(
'https://gw.alipayobjects.com/os/bmw-prod/65589ef3-7f1d-440f-ba5d-86b03ee6ba7e.json',
'https://gw.alipayobjects.com/os/bmw-prod/65589ef3-7f1d-440f-ba5d-86b03ee6ba7e.json'
)
.then((res) => res.json())
.then((data) => {
.then(res => res.json())
.then(data => {
const layer = new LineLayer({})
.source(data)
.size(1)
.shape('line')
.style({
vertexHeightScale: 30,
vertexHeightScale: 30
})
.color('#ccc');