diff --git a/codemeta.json b/codemeta.json index 31196277..1f1f43e6 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,8 +8,8 @@ "dateModified": "2023-01-31", "issueTracker": "https://github.com/cds-astro/aladin-lite/issues", "name": "Aladin Lite", - "version": "3.3.2", - "softwareVersion": "3.3.2", + "version": "3.3.3-beta", + "softwareVersion": "3.3.3-beta", "description": "An astronomical HiPS visualizer in the browser.", "identifier": "10.5281/zenodo.7638833", "applicationCategory": "Astronomy, Visualization", diff --git a/src/core/Cargo.toml b/src/core/Cargo.toml index b0c8f1b6..81a64827 100644 --- a/src/core/Cargo.toml +++ b/src/core/Cargo.toml @@ -3,7 +3,7 @@ name = "aladin-lite" description = "Aladin Lite v3 introduces a new graphical engine written in Rust with the use of WebGL" license = "BSD-3-Clause" repository = "https://github.com/cds-astro/aladin-lite" -version = "3.3.2" +version = "3.3.3-beta" authors = [ "baumannmatthieu0@gmail.com", "matthieu.baumann@astro.unistra.fr",] edition = "2018" diff --git a/src/js/Aladin.js b/src/js/Aladin.js index 73c1ca42..577bc0c4 100644 --- a/src/js/Aladin.js +++ b/src/js/Aladin.js @@ -1009,7 +1009,6 @@ export let Aladin = (function () { var coo = new Coo(); coo.parse(targetName); // Convert from view coo sys to icrs - const [ra, dec] = this.wasm.viewToICRSCooSys(coo.lon, coo.lat); this.view.pointTo(ra, dec); diff --git a/src/js/View.js b/src/js/View.js index 497adba1..dce90d85 100644 --- a/src/js/View.js +++ b/src/js/View.js @@ -1865,9 +1865,10 @@ export let View = (function () { ra = parseFloat(ra); dec = parseFloat(dec); - if (!ra || !dec) { + if (!Number.isFinite(ra) || !Number.isFinite(dec)) { return; } + this.viewCenter.lon = ra; this.viewCenter.lat = dec; //this.updateLocation({lon: this.viewCenter.lon, lat: this.viewCenter.lat});