From 87cc5b3ab42cba244bbe50dfc8ed486e31463027 Mon Sep 17 00:00:00 2001 From: sebsteinig Date: Fri, 13 Sep 2024 13:51:43 +0100 Subject: [PATCH] remove debugging log statements --- air-quality-ui/public/all_colormaps.png | Bin 1436 -> 0 bytes .../src/components/globe/CameraSettings.tsx | 2 -- .../src/components/globe/SurfaceLayer.tsx | 1 - .../src/components/globe/useDataTextures.tsx | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 air-quality-ui/public/all_colormaps.png diff --git a/air-quality-ui/public/all_colormaps.png b/air-quality-ui/public/all_colormaps.png deleted file mode 100644 index ea79254290bda2f44b11b2f5841f16013be9793e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1436 zcmV;N1!MY&P)V>bE;TMPEFfrfbZ~PzFE4FjbZ~5MbZlv2E^l&Y zFDf=4MF0Q*32;bRa{vGjVE_ORVF9Q=r)dBH1qn$+K~#90RgKGT+|~hxze670L~_U( zX-0NzNsg6xks@x;tb#6zZoBRi^d-gyT%y?CLLf8 z31@AFsqRSg4?N3m*p)Zjs+!xmWhWbCJW3orFq)Q^Qu5D0@HkR@camY;BQXt|$-GC@@x8<0_L5J#E7Dx!^*LhPA}4Di9M6&MubBs*)#%_&F1c{XZJ$;q z4AMt+wZI*rY%dv=VbjgT zwZQQmwCB+K7G>~+E}yXvA&)*>vU>lT@87+pes^H^ZsKii^G3|P9}O~{cO)hvw3eK? z6Sm{xdk!jc_^=YB8+dZM;Npir5w3lbjm=lfCD&=p({CJ}{_ucr&#(CHfx>m^4w?JET#-+3p4lW$J6Yjf)gY4MbJv&A+J=2aFX=_q3BE^7h zX^bUMw#3*T+6Hag$f{FJbx%fTh>{;EgHIfj9sBixohrCf19!?}rvmP}fPLdr zG!k7~$OhcnU{^MxwwN1%-1R>*^cj7hGxP&P=R$Q#SOv&x!?GH=tTk<8XgWjP87gHc zyP2xjpHYTN%~Z;v9zm{^gK1pm(nn_@bEcUxfzDlqEMPcJbh)4@ZK_66wvxQF$p?$$ zWXNYtHjj9-!qzQ9H^`UK6@^%kyAj7Y9e7IMDv8@W$iYQU9@2PN zGQbLaTHzyG=Z_5bB{wGz$u|>qs<0OWK{yeHGeJ1xhu}p9FVy(qL>LVuQOD+_;S0ax z$`xEV2@l2%>tchjufI38|A4@~h`Rhj#IB@8RSHZ q9Bl3 = ({ }) => { useEffect(() => { if (cameraControlsRef.current) { - console.log('render camera settings') - console.log(globeState) const controls = cameraControlsRef.current if (globeState) { diff --git a/air-quality-ui/src/components/globe/SurfaceLayer.tsx b/air-quality-ui/src/components/globe/SurfaceLayer.tsx index 07f8cc36..d3a199bf 100644 --- a/air-quality-ui/src/components/globe/SurfaceLayer.tsx +++ b/air-quality-ui/src/components/globe/SurfaceLayer.tsx @@ -91,7 +91,6 @@ const SurfaceLayer = memo( ? 6 : undefined materialRef.current.uniforms.uVariableIndex.value = variableIndex - console.log(variableIndex) const windowIndexRef = useRef(0) diff --git a/air-quality-ui/src/components/globe/useDataTextures.tsx b/air-quality-ui/src/components/globe/useDataTextures.tsx index de1b4eff..c9c6a860 100644 --- a/air-quality-ui/src/components/globe/useDataTextures.tsx +++ b/air-quality-ui/src/components/globe/useDataTextures.tsx @@ -52,8 +52,8 @@ const createCanvasTexturesFromImages = async ( img.crossOrigin = 'Anonymous' img.onload = onLoadImage img.onerror = (error) => { - console.error(`Failed to load image: ${url}`, error) - reject(new Error(`Failed to load image: ${url}`)) + console.error(`Failed to load data texture: ${url}`, error) + reject(new Error(`Failed to load data texture: ${url}`)) } img.src = url images.push(img)