mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
eadbd1397f
commit
3d71d65fa1
|
@ -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());
|
||||
});
|
||||
|
|
|
@ -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<ype=11',
|
||||
zIndex: 100,
|
||||
});
|
||||
scene.getMapService().map.add(xyzTileLayer);
|
||||
zIndex: 100
|
||||
});
|
||||
scene.getMapService().map.add(xyzTileLayer);
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue