禁止从3d切换为影像图

qzc-dev
秦子超 2025-09-12 13:34:31 +08:00
parent 77683fd7df
commit 21a8ae8922
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ export default function Btn({showPanels,setShowPanels}) {
}
//影像图btn
const yxtBtn = () =>{
if(mode==='3d'){
return
}
dispatch.map.setMode('2d');
dispatch.map.setLayerVisible({ ['OfflineMap']: false });
dispatch.map.setLayerVisible({ ['SatelliteImage']: true });