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 +})));