fix: Add route-station link area
				
					
				
			This commit is contained in:
		| @@ -56,12 +56,12 @@ export function RightSidebar() { | ||||
|     setMapRotation(rotationDegrees); | ||||
|   }, [rotationDegrees]); | ||||
|  | ||||
|   useEffect(() => { | ||||
|     const center = screenCenter ?? { x: 0, y: 0 }; | ||||
|     const localCenter = screenToLocal(center.x, center.y); | ||||
|     const coordinates = localToCoordinates(localCenter.x, localCenter.y); | ||||
|     setLocalCenter({ x: coordinates.latitude, y: coordinates.longitude }); | ||||
|   }, [position]); | ||||
|   // useEffect(() => { | ||||
|   //   const center = screenCenter ?? { x: 0, y: 0 }; | ||||
|   //   const localCenter = screenToLocal(center.x, center.y); | ||||
|   //   const coordinates = localToCoordinates(localCenter.x, localCenter.y); | ||||
|   //   setLocalCenter({ x: coordinates.latitude, y: coordinates.longitude }); | ||||
|   // }, [position]); | ||||
|  | ||||
|   useEffect(() => { | ||||
|     setMapCenter(localCenter.x, localCenter.y); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user