mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-17 15:32:55 -08:00
25 lines
613 B
JavaScript
25 lines
613 B
JavaScript
/******************************************************************************
|
|
* Aladin HTML5 project
|
|
*
|
|
* File Location.js
|
|
*
|
|
* Author: Thomas Boch[CDS]
|
|
*
|
|
*****************************************************************************/
|
|
|
|
|
|
Location = function(locationDiv) {
|
|
this.div = $(locationDiv);
|
|
};
|
|
|
|
Location.prototype.update = function(lon, lat, cooFrame) {
|
|
var coo = new Coo(lon, lat, 7);
|
|
if (cooFrame==CooFrameEnum.J2000) {
|
|
this.div.html('α, δ: ' + coo.format('s/'));
|
|
}
|
|
else {
|
|
this.div.html('l, b: ' + coo.format('d/'));
|
|
}
|
|
};
|
|
|