style: lint style

This commit is contained in:
2912401452 2021-12-28 11:00:51 +08:00
parent 4e3cb3a1de
commit 60be514ba6
2 changed files with 4 additions and 5 deletions

View File

@ -409,8 +409,8 @@ export default class Scene extends EventEmitter implements ISceneService {
setTimeout(() => {
// Tip: 把这一部分销毁放到写下一个事件循环中执行,兼容 L7React 中 scene 和 layer 同时销毁的情况
this.rendererService.destroy();
})
});
this.map.destroy();
this.interactionService.destroy();

View File

@ -100,7 +100,7 @@ export default React.memo(function Map() {
return (
<>
{showScene && (
{showScene && (
<AMapScene
map={{
center: [110.19382669582967, 50.258134],
@ -119,8 +119,7 @@ export default React.memo(function Map() {
setTimeout(() => {
// scene.removeAllLayer()
// scene.destroy()
}, 3000)
}, 3000);
// setTimeout(() => scene.destroy(), 5000)
}}
>