mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
4e3cb3a1de
commit
60be514ba6
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue