| 
						
						
							
								
							
						
						
					 | 
					@ -7,6 +7,8 @@ import Header from './heand'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import Footer from './footer'; | 
					 | 
					 | 
					import Footer from './footer'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import ProTable, { TableDropdown } from '@ant-design/pro-table'; | 
					 | 
					 | 
					import ProTable, { TableDropdown } from '@ant-design/pro-table'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					const MAPID = 'screenGis' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					const Example = (props) => { | 
					 | 
					 | 
					const Example = (props) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const { dispatch, actions, user, loading } = props | 
					 | 
					 | 
					    const { dispatch, actions, user, loading } = props | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const [tabKey, setTabKey] = useState('leadership') | 
					 | 
					 | 
					    const [tabKey, setTabKey] = useState('leadership') | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -24,9 +26,8 @@ const Example = (props) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    useEffect(() => { | 
					 | 
					 | 
					    useEffect(() => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        const timer = setTimeout(() => { | 
					 | 
					 | 
					        const timer = setTimeout(() => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            const map = new AMap.Map("amapId", { | 
					 | 
					 | 
					            const map = new AMap.Map(MAPID, { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                //resizeEnable: true,
 | 
					 | 
					 | 
					                //resizeEnable: true,
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
 | 
					 | 
					 | 
					                center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // center: [115.857952, 28.683003],//地图中心点
 | 
					 | 
					 | 
					                // center: [115.857952, 28.683003],//地图中心点
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -54,6 +55,9 @@ const Example = (props) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            amapKeys.forEach(key => { | 
					 | 
					 | 
					            amapKeys.forEach(key => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                localStorage.removeItem(key) | 
					 | 
					 | 
					                localStorage.removeItem(key) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }) | 
					 | 
					 | 
					            }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            map.clearMap(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if (map) map.destroy(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            map = null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            clearTimeout(timer) | 
					 | 
					 | 
					            clearTimeout(timer) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, []) | 
					 | 
					 | 
					    }, []) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -67,7 +71,7 @@ const Example = (props) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    document.body.clientHeight / 1080 | 
					 | 
					 | 
					                    document.body.clientHeight / 1080 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                )})`, */
 | 
					 | 
					 | 
					                )})`, */
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }}> | 
					 | 
					 | 
					            }}> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                <div id='amapId' style={{ position: 'absolute', width: "100%", height: "100%" }}></div> | 
					 | 
					 | 
					                <div id={MAPID} style={{ position: 'absolute', width: "100%", height: "100%" }}></div> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                <div style={{ width: "100%", height: "10%" }}> | 
					 | 
					 | 
					                <div style={{ width: "100%", height: "10%" }}> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    <Header tabChange={tabChange} tabKey={tabKey} dispatch={dispatch} /> | 
					 | 
					 | 
					                    <Header tabChange={tabChange} tabKey={tabKey} dispatch={dispatch} /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                </div> | 
					 | 
					 | 
					                </div> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |