an SSL-enabled fork of CDS's AladinLite
This is a copy of AladinLite, a totally awesome telescope imagery viewer developed by the Centre de Données astronomiques de Strasbourg (CDS). I corresponded with them about serving the images over an https protocol, and although they plan on implementing it in the near future, currently, the easy, plug-and-play AladinLite viewer is only available over http. However, they did provide me with links to https images (JSON & human-readable), so I have implemented an SSL version here.
It works just like the original. The CSS and JS files can be found in the /dist
directory, so either host them yourself, or use rawgit CDN. The CSS hasn't been modified, so feel free to use the original.
Modified from the original documentation:
<!-- include Aladin Lite CSS file in the head section of your page -->
<link rel="stylesheet" href="https://cdn.rawgit.com/PirtleShell/AladinLite/master/dist/aladin.min.css" />
<!-- you can skip the following line if your page already integrates the jQuery library -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js" charset="utf-8"></script>
<!-- insert this snippet where you want Aladin Lite viewer to appear and after the loading of jQuery -->
<div id="aladin-lite-div" style="width:400px;height:400px;"></div>
<script type="text/javascript" src="https://cdn.rawgit.com/PirtleShell/AladinLite/master/dist/aladin.min.js" charset="utf-8"></script>
<script type="text/javascript">
var aladin = A.aladin('#aladin-lite-div', {survey: "P/DSS2/color", fov:60});
</script>
Clone this repository and install the node dependencies for building:
git clone https://github.com/PirtleShell/AladinLite.git
cd AladinLite
npm install
Now you can build it by running gulp build
. To live update and compile on changes, just run gulp
.
Compiling the js and css files requires that you have uglifyjs2 and less. These can be installed with npm
:
npm i -g uglify-js less
Then run ./build.sh
. The new files will be replace those in /dist
.
This and the original are licensed under GNU GPLv3. The original license file can be found here and here is the original source code. It is copyrighted by the CDS.
-
Sesame.resolve
. Original uses this url. New live SSL mirror available here through the Laniakean API. -
nph-aladin.pl
which retrieves available surveys. The original list. A live SSL version is available here. -
default surveys in
HpxImageSurvey.js
-
logging? Current logging endpoint. I think it's available over SSL here. Need to confirm.