mirror of https://gitee.com/antv-l7/antv-l7
fix: 删除react Scene组件错误代码
This commit is contained in:
parent
5149e59cd0
commit
acfa2dec33
|
@ -37,14 +37,6 @@ export default React.memo((props: IMapSceneConig) => {
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// 更新地图
|
|
||||||
useEffect(() => {
|
|
||||||
if (!scene) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
scene.setMapStyle(style);
|
|
||||||
}, [style]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SceneContext.Provider value={scene}>
|
<SceneContext.Provider value={scene}>
|
||||||
{createElement(
|
{createElement(
|
||||||
|
|
Loading…
Reference in New Issue