From d635e799f63c32ad86836451ccdf8adf1aeccc3c Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Fri, 1 Nov 2019 13:26:51 +0000 Subject: [PATCH] Fix for whole world globe --- modules/ui/3d.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/3d.js b/modules/ui/3d.js index 8211da09..584b5ed3 100644 --- a/modules/ui/3d.js +++ b/modules/ui/3d.js @@ -260,7 +260,7 @@ async function updateGlobeTexure(addMesh) { const mapHeight = rn(mapCoordinates.latT / 180 * height); const mapWidth = world ? mapHeight * 2 : rn(graphWidth / graphHeight * mapHeight); const dy = world ? 0 : (90 - mapCoordinates.latN) / 180 * height; - const dx = mapWidth / 4; + const dx = world ? 0 : mapWidth / 4; // draw map on canvas const ctx = document.createElement("canvas").getContext("2d"); @@ -331,4 +331,4 @@ function OrbitControls(camera, domElement) { return {create, redraw, update, stop, options, setScale, setLightness, setSun, setRotation, toggleSky, setResolution, setColors, saveScreenshot}; -}))); \ No newline at end of file +})));