diff --git a/src/components/plots/CountryBorders.tsx b/src/components/plots/CountryBorders.tsx index b8622f50..a9e7ae29 100644 --- a/src/components/plots/CountryBorders.tsx +++ b/src/components/plots/CountryBorders.tsx @@ -231,7 +231,9 @@ const CountryBorders = () => { const isPC = plotType == 'point-cloud' const isFlatMap = plotType == "flat" - const depthScale = dataShape[0]/dataShape[2]*timeScale + const timeRatio = Math.max(dataShape[0]/dataShape[2],2) + const depthScale = timeRatio*timeScale + const globalScale = isPC ? dataShape[2]/500 : 1 return( @@ -241,7 +243,7 @@ const CountryBorders = () => { > {coastLines && } {borders && } diff --git a/src/components/plots/Plot.tsx b/src/components/plots/Plot.tsx index 73f8228a..c499bd85 100644 --- a/src/components/plots/Plot.tsx +++ b/src/components/plots/Plot.tsx @@ -306,6 +306,10 @@ const Plot = ({ZarrDS}:{ZarrDS: ZarrDataset}) => { setTextures(updated as THREE.Data3DTexture[] | THREE.DataTexture[]); },[interpPixels]) + useEffect(()=>{ // Rotates flat back when changing away + usePlotStore.setState({rotateFlat: false}) + },[plotType]) + const Nav = useMemo(()=>Navbar,[]) return (