style: lint style

This commit is contained in:
2912401452 2022-04-07 18:42:45 +08:00
parent eadbd1397f
commit 3d71d65fa1
4 changed files with 13 additions and 13 deletions

View File

@ -4,13 +4,13 @@ import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
id: 'map',
map: new GaodeMap({
center: [105, 30],
center: [ 105, 30 ],
pitch: 0,
zoom: 2,
zoom: 2
})
});
scene.on('loaded', () => {
scene.getMapService().map.add(new window.AMap.TileLayer.Satellite());
scene.getMapService().map.add(new window.AMap.TileLayer.Satellite());
});

View File

@ -4,17 +4,17 @@ import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
id: 'map',
map: new GaodeMap({
center: [105, 30],
center: [ 105, 30 ],
pitch: 0,
zoom: 2,
zoom: 2
})
});
scene.on('loaded', () => {
var xyzTileLayer = new window.AMap.TileLayer({
getTileUrl:
const xyzTileLayer = new window.AMap.TileLayer({
getTileUrl:
'https://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?x=[x]&y=[y]&z=[z]&size=1&scl=1&style=8&ltype=11',
zIndex: 100,
});
scene.getMapService().map.add(xyzTileLayer);
zIndex: 100
});
scene.getMapService().map.add(xyzTileLayer);
});

View File

@ -23,7 +23,7 @@ export function updateShape(
typeof currentShape === 'string' &&
lastShape !== currentShape
) {
if(layer.type === 'PointLayer') {
if (layer.type === 'PointLayer') {
layer.dataState.dataSourceNeedUpdate = true;
return;
}

View File

@ -113,9 +113,9 @@ export default class GaodeMapComponent extends React.Component {
// .active({ color: '#00f' });
setTimeout(() => {
layer.shape('triangleColumn')
layer.shape('triangleColumn');
scene.render();
}, 2000)
}, 2000);
this.scene = scene;