From e5fa43b44ebc852e3aeb522c4eab2c20cb95dd7a Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Thu, 31 Aug 2023 11:48:30 +0200 Subject: [PATCH] =?UTF-8?q?fix=20getFov=20that=20had=20a=20limitation=20to?= =?UTF-8?q?=20180=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/Aladin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/Aladin.js b/src/js/Aladin.js index 662128d6..1a6a2915 100644 --- a/src/js/Aladin.js +++ b/src/js/Aladin.js @@ -1593,9 +1593,8 @@ export let Aladin = (function () { var fovX = this.view.fov; var s = this.getSize(); var fovY = s[1] / s[0] * fovX; - // TODO : take into account AITOFF projection where fov can be larger than 180 - fovX = Math.min(fovX, 180); - fovY = Math.min(fovY, 180); + fovX = Math.min(fovX); + fovY = Math.min(fovY); return [fovX, fovY]; };