mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
eadbd1397f
commit
3d71d65fa1
|
@ -4,9 +4,9 @@ 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
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
@ -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({
|
||||
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,
|
||||
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